Management user interface, virsh
installation, as well as VM
have already been covered in the previous lessons.
Command virsh is a CLI alternative to the GUI based
It can be used, for example, to see the list of running VMs:
List of all the VMs:
Start a VM, kvm1 for example:
To be able to shutdown a VM through virsh, service acpid needs to be installed and running on the VM.
acpid stands for Advanced Configuration and Power Interface event daemon.
Login to the VM, kvm1, through virt-manager and install acpid:
Logout and try to shutdown it through virsh
Verify that it is down
Start the VM again
For to be able to access console on the VM, we need to enable ttyS0 service
on the VM.
Login to the VM, kvm1, through virt-manager,
then edit file /etc/default/grub, where you assigne values to
GRUB_CMDLINE_LINUX_DEFAULT, and GRUB_TERMINAL as follows
It should show the service running. Logout from the VM.
Try to login to the VM console through virsh:
To exit from the console, press ^]