Home > sysadmin > Install libguestfs-tools and add serial console access to your vm

Install libguestfs-tools and add serial console access to your vm

To add serial access to your vm, with Debian/Ubuntu apt-get install libguestfs-tools.
Then with vm shutdown, execute the following:

root:~# guestmount -d vmname -i /mnt
root:~# ln -s /mnt/lib/systemd/system/getty@.service /mnt/etc/systemd/system
/getty.target.wants/getty@ttyS0.service
root:~# umount /mnt

Reboot your vm and you should have serial console access.

Categories: sysadmin
  1. No comments yet.
  1. No trackbacks yet.

Leave a comment