Installing Kali Linux as Guest OS in KVM Hypervisor

Erik Skultety eskultet at redhat.com
Thu Dec 3 15:24:36 UTC 2020


On Tue, Dec 01, 2020 at 06:15:55PM +0100, Michal Privoznik wrote:
> 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

Exactly, --extra-args is just for convenience of not having to edit the kernel
cmdline manually when the serial console/GUI window opens with grub.

Erik




More information about the libvirt-users mailing list