Installing Kali Linux as Guest OS in KVM Hypervisor

Michal Privoznik mprivozn at redhat.com
Tue Dec 1 17:15:55 UTC 2020


On 12/1/20 5:28 PM, Kaushal Shriyan wrote:
> Hi,
> 
> I have run the below command to install Kali Linux using
> linux-2020.4-installer-amd64.iso from https://www.kali.org/downloads/
> 
> #virt-install --name kalilinux --memory 4096 --vcpus=2
> --location=/linuxkvmaddgbdisk/kali-linux-2020.4-installer-amd64.iso,kernel=install.amd/gtk/vmlinuz,initrd=install.amd/gtk/initrd.gz
> --network=bridge:br0 --os-type=linux --os-variant=debian9 --graphics=none
> --extra-args "console=ttyS0" -v --disk
> path=/linuxkvmaddgbdisk/kalilinux.img,size=50
> 
> I am not able to get the root login prompt when I run the below command to
> set IP and hostname for the guest OS. Am I missing any parameters from the
> above virt-install command to install Kali Linux as Guest OS in KVM
> Hypervisor?
> 

Just a hunch, maybe --extra-args work only for installation and are not 
persistent? I guess installer doesn't persist kernel cmd line passed in 
installation phase (why would it anyway?). I guess you need to configure 
grub so that it appends the argument or configure /etc/initttab and 
uncomment line that enables getty for ttyS0 console.

Michal




More information about the libvirt-users mailing list