iDontWantToWork.com

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

Send your bright ideas to Curt.

How to enable Kali serial console for KVM and virsh

by | May 4, 2016 | 0 comments

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:

GRUB_CMDLINE_LINUX_DEFAULT=”console=ttyS0,19200n8″

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,

-Curt

Share this: