RE: Installing Kali Linux (kali-linux-2022.4-installer-amd64.iso) using KVM virt-install tool

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


Hi, this problem is very interesting….


I have a Mac Pro M1 and could not find virt-install (not sure it’s available on this distro) so I have to install my images by first creating the xml file describing the hardware of the qemu VM, inside of there I specify the CDROM and point it to the image. I have been trying to get kali to work for a few weeks and I was running into a very similar issue.


My installation would start and ask for the language and the keyboard and then say it was verifying the install media and then die, saying the media cannot be found. I tried everything possible but could not get passed this. Finally I switched to the console during installation and noticed that the image was not mounted into /cdrom !! so looking deeper into it there are 2 partitions (and corresponding  images one is EFIboot, and the other is the full distro) that get mounted


/dev/vdb1 on /media


This was there and working which is how I got the initial install menu etc. and then there was..


/dev/vdb2 on /cdrom


This was not mounted but totally available..strange! I manually mounted this and went back into the installer and just did a continue….and then just like magic…the entire distro installed without any issues.


I’m not sure if this is exactly what your problem is but it sounds very similar, and I just went through this on Sunday.


Hope this may help you.





From: libvirt-users <libvirt-users-bounces@xxxxxxxxxx> On Behalf Of Kaushal Shriyan
Sent: Tuesday, February 7, 2023 10:32 AM
To: libvirt-users@xxxxxxxxxx
Subject: Installing Kali Linux (kali-linux-2022.4-installer-amd64.iso) using KVM virt-install tool




I am trying to install kali-linux-2022.4-installer-amd64.iso ( 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-2022.4-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-2022.4-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 y


#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-2022.4-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


# osinfo-query os | grep -i debian

 debian1.1            | Debian GNU/Linux 1.1                               | 1.1      |
 debian1.2            | Debian GNU/Linux 1.2                               | 1.2      |
 debian1.3            | Debian GNU/Linux 1.3                               | 1.3      |
 debian10             | Debian 10                                          | 10       |
 debian11             | Debian 11                                          | 11       |
 debian2.0            | Debian GNU/Linux 2.0                               | 2.0      |
 debian2.1            | Debian GNU/Linux 2.1                               | 2.1      |
 debian2.2            | Debian GNU/Linux 2.2                               | 2.2      |
 debian3              | Debian GNU/Linux 3.0                               | 3.0      |
 debian3.1            | Debian GNU/Linux 3.1                               | 3.1      |
 debian4              | Debian GNU/Linux 4.0                               | 4.0      |
 debian5              | Debian GNU/Linux 5.0                               | 5.0      |
 debian6              | Debian 6.0                                         | 6.0      |
 debian7              | Debian 7                                           | 7        |
 debian8              | Debian 8                                           | 8        |
 debian9              | Debian 9                                           | 9        |
 debiantesting        | Debian testing                                     | testing  |


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,



The information contained in this email message is intended only for use of the individual or entity named above. If the reader of this message is not the intended recipient, or the employee or agent responsible to deliver it to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please immediately notify us by email, postmaster@xxxxxxxx, and destroy the original message. Thank you.

[Index of Archives]     [Virt Tools]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]

  Powered by Linux