KVM/Archipel enable ttyconsole on guest vm with virsh

24 sec read

Debian Jessie Guest VM

+ Enable and start serial console

systemctl enable [email protected]
systemctl start [email protected]

+ Check status

systemctl list-units | grep getty@

you’ll see like this:

[email protected]                                                                  loaded active running   Getty on tty1
[email protected]                                                          loaded active running   Serial Getty on ttyS0

Host server

+ Shutdown the guest vm

virsh shutdown vm-name

+ Enable serial tty console on guest vm

virsh edit vm-name

Add the config after </interface> section, like this:



  


  

+ define the config file

virsh define /path/to/vm-name.xml

+ Start the vm with tty console

virsh start vm-name

Access KVM Guest VM via virsh tty console

virsh console vm-name

Reset root password on CentOS 7

Edit boot menu on-the-go 0. reboot the CentOS 7 and press ESC when GRUB menu show up on the screen and press “e”1. find...
Sysadmin.ID
18 sec read

Leave a Reply

Your email address will not be published. Required fields are marked *