On Tue, Feb 7, 2023 at 10:32 AM Kaushal Shriyan <kaushalshriyan@xxxxxxxxx> wrote: > > Hi, > > I am trying to install kali-linux-2022.4-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-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 > That is very similar to what I use. Have you tried without extra-args, maybe setting vnc for now? > # osinfo-query os | grep -i debian > debian1.1 | Debian GNU/Linux 1.1 | 1.1 | http://debian.org/debian/1.1 > debian1.2 | Debian GNU/Linux 1.2 | 1.2 | http://debian.org/debian/1.2 > debian1.3 | Debian GNU/Linux 1.3 | 1.3 | http://debian.org/debian/1.3 > debian10 | Debian 10 | 10 | http://debian.org/debian/10 > debian11 | Debian 11 | 11 | http://debian.org/debian/11 > debian2.0 | Debian GNU/Linux 2.0 | 2.0 | http://debian.org/debian/2.0 > debian2.1 | Debian GNU/Linux 2.1 | 2.1 | http://debian.org/debian/2.1 > debian2.2 | Debian GNU/Linux 2.2 | 2.2 | http://debian.org/debian/2.2 > debian3 | Debian GNU/Linux 3.0 | 3.0 | http://debian.org/debian/3 > debian3.1 | Debian GNU/Linux 3.1 | 3.1 | http://debian.org/debian/3.1 > debian4 | Debian GNU/Linux 4.0 | 4.0 | http://debian.org/debian/4 > debian5 | Debian GNU/Linux 5.0 | 5.0 | http://debian.org/debian/5 > debian6 | Debian 6.0 | 6.0 | http://debian.org/debian/6 > debian7 | Debian 7 | 7 | http://debian.org/debian/7 > debian8 | Debian 8 | 8 | http://debian.org/debian/8 > debian9 | Debian 9 | 9 | http://debian.org/debian/9 > debiantesting | Debian testing | testing | http://debian.org/debian/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, > > Kaushal