How to enable Kali serial console for KVM and virsh

There has to be a better way to make a living.
I will find it.

Send your bright ideas to Curt.

Use Kali?
Use KVM?
Want to know how to enable serial console in Kali so that you can use “virsh console”?

If so, then from within your Kali guest:

root@Kali:~# vi /etc/default/grub

Change the GRUB_CMDLINE_LINUX_DEFAULT key to the following:


root@Kali:~# update-grub
root@Kali:~# reboot

Now from your KVM host:

[root@host root]# virsh console Kali
Connected to domain Kali
Escape character is ^] <--- Hit ENTER
Kali GNU/Linux Rolling Kali ttyS0
Kali login:

Hold down the CTRL key and hit the right square bracket “]” to exit the console.

Rock on,