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

How to install NextCloud in Ubuntu 22.04

What’s NextCloud Nextcloud is an open-source software suite that offers a secure, self-hosted alternative to popular cloud storage and productivity platforms. With a focus...
sysadmin.id
8 min read

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....
sysadmin.id
18 sec read

Free ext4 reserved blocks with tune2fs

Check disk usage df -h Filesystem Size Used Avail Use% Mounted on /dev/vda1 95G 82G 7.9G 92% / Check size of Reserved block count...
sysadmin.id
19 sec read