Access A Virtual Machines Console
General Information
You might not have access to a GUI, always learn the CLI methods too.
GUI Method
From GUI Desktop on the system running KVM
- Applications > System Tools > Virtual Machine Manager
- Double click on running virtual machine to open console
CLI Method
On the Virtual Machine
- Edit the grub default config file
vim /etc/default/grub
- Append “console=ttyS0” to the end of “GRUB_CMDLINE_LINUX” variable
GRUB_CMDLINE_LINUX="rd.lvm.lv=centos/root rd.lvm.lv=centos/swap rhgb quiet console=ttyS0"
- Reboot the virtual machine
On the KVM system
- Connect to the virtual machine's console
virsh console myserver1.example.com