Installing Kali Linux using KVM virt-install tool

Kaushal Shriyan kaushalshriyan at gmail.com
Wed Aug 5 01:27:11 UTC 2020


Hi,

I am trying to install kali-linux-2020.2-installer-amd64.iso (
https://www.kali.org/downloads/) using KVM virt-install tool

#virt-install --name=kalilinux --file=/linuxkvmaddgbdisk/kalilinux.img
--file-size=50 --nonsparse --vcpu=2 --ram=4096 --network=bridge:br0
--os-type=linux --os-variant=debian9 --graphics none
--location=/linuxkvmaddgbdisk/kali-linux-2020.2-installer-amd64.iso
--extra-args="console=ttyS0

Starting install...
Retrieving file .treeinfo...

                              |    0 B  00:00:00
Retrieving file content...

                              |    0 B  00:00:00
Retrieving file info...

                             |  104 B  00:00:00
Retrieving file info...

                             |  104 B  00:00:00
Retrieving file info...

                             |  104 B  00:00:00
ERROR    Could not find an installable distribution at
'/linuxkvmaddgbdisk/kali-linux-2020.2-installer-amd64.iso': The URL could
not be accessed, maybe you mistyped?

The location must be the root directory of an install tree.
See virt-install man page for various distro examples.
Domain installation does not appear to have been successful.
If it was, you can restart your domain by running:
  virsh --connect qemu:///system start kalilinux
otherwise, please restart your installation.


#virt-install --name=kalilinux --file=/linuxkvmaddgbdisk/kalilinux.img
--file-size=50 --nonsparse --vcpu=2 --ram=4096 --network=bridge:br0
--os-type=linux --os-variant=debian9 --graphics none
--cdrom=/linuxkvmaddgbdisk/kali-linux-2020.2-installer-amd64.iso
--extra-args="console=ttyS0"
ERROR    --extra-args only work if specified with --location. See the man
page for examples of using --location with CDROM media

I did not find kali OS details to provide an option for* --os-variant=  * When
I ran osinfo-query os | grep kali it did not return anything.
Any help will be highly appreciated and I look forward to hearing from you.
Thanks in advance.

Best Regards,

Kaushal
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20200805/f0a79ed9/attachment.htm>


More information about the libvirt-users mailing list