Re: libvirt python console

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 4/12/20 7:18 PM, PunkGeek wrote:
Hello,
I see this example about VM console serial, Which I could connect to the guest VM successfully.
however, I could not understand how to send commands to the guest VM?
https://github.com/libvirt/libvirt-python/blob/master/examples/consolecallback.py
Best regards

The example is basically what 'virsh console' does. This simply opens serial console to virtual machine. But then you need to enable agetty for the serial console. In systemd distributions it's sufficient to append 'console=ttyS0' to kernel cmd line and systemd should do the rest automagically.

Michal




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux