Linux

KVM/Archipel enable ttyconsole on guest vm with virsh

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

You might be interested in learning more about related technologies and concepts that enhance your understanding of KVM and virtualization. For instance, speaking of *virtualization technology*, you might find it insightful to explore the Wikipedia article on Virtualization. Additionally, if you’re curious about *Linux-based systems*, you can check out the Wikipedia page on Linux, which delves into its architecture and various distributions. Lastly, understanding *serial console management* could be beneficial, so be sure to read the Wikipedia article on Serial Console to gain deeper insights into its functionality and applications in managing virtual machines.

Hi, I’m Sysadmin.ID

Leave a Reply

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