Kaushal Shriyan
2023-Feb-07 15:31 UTC
Installing Kali Linux (kali-linux-2022.4-installer-amd64.iso) using KVM virt-install tool
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 # 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20230207/e5b05e9f/attachment.htm>
Mauricio Tavares
2023-Feb-07 15:47 UTC
Installing Kali Linux (kali-linux-2022.4-installer-amd64.iso) using KVM virt-install tool
On Tue, Feb 7, 2023 at 10:32 AM Kaushal Shriyan <kaushalshriyan at gmail.com> 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
Kotsakis, Stephanos
2023-Feb-07 15:47 UTC
Installing Kali Linux (kali-linux-2022.4-installer-amd64.iso) using KVM virt-install tool
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. -s From: libvirt-users <libvirt-users-bounces at redhat.com> On Behalf Of Kaushal Shriyan Sent: Tuesday, February 7, 2023 10:32 AM To: libvirt-users at redhat.com Subject: Installing Kali Linux (kali-linux-2022.4-installer-amd64.iso) using KVM virt-install tool 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 # 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 ________________________________ 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 at weil.com, and destroy the original message. Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20230207/8b88d634/attachment-0001.htm>
Gianluca Cecchi
2023-Feb-07 16:29 UTC
Installing Kali Linux (kali-linux-2022.4-installer-amd64.iso) using KVM virt-install tool
On Tue, Feb 7, 2023 at 4:32 PM Kaushal Shriyan <kaushalshriyan at gmail.com> 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? > >Hi, possibly it depends on having System ID empty on image: [root at tekkapc ~]# osinfo-detect /linuxkvmaddgbdisk/kali-linux-2022.4-installer-amd64.iso Media is bootable. [root at tekkapc ~]# isoinfo -d -i /linuxkvmaddgbdisk/kali-linux-2022.4-installer-amd64.iso CD-ROM is in ISO 9660 format System id: Volume id: Kali Linux amd64 1 Anyway on my Fedora 36 it seems it works this way (note I put 20 as a disk size and virbr0 as a bridge... do not simply copy; see also the warnings): # mount -o loop /linuxkvmaddgbdisk/kali-linux-2022.4-installer-amd64.iso /mnt/ # virt-install --name=kalilinux --file=/linuxkvmaddgbdisk/kalilinux.img --file-size=20 --nonsparse --vcpu=2 --ram=4096 --network=bridge:virbr0 --os-type=linux --os-variant=debian11 --graphics none --cdrom=/linuxkvmaddgbdisk/kali-linux-2022.4-installer-amd64.iso --boot kernel=/mnt/install.amd/vmlinuz,initrd=/mnt/install.amd/initrd.gz,kernel_args="console=ttyS0" WARNING --os-type is deprecated and does nothing. Please stop using it. WARNING CDROM media does not print to the text console by default, so you likely will not see text install output. You might want to use --location. See the man page for examples of using --location with CDROM media WARNING --os-type is deprecated and does nothing. Please stop using it. WARNING CDROM media does not print to the text console by default, so you likely will not see text install output. You might want to use --location. See the man page for examples of using --location with CDROM media Starting install... Creating domain... | 0 B 00:00:00 Running text console command: virsh --connect qemu:///system console kalilinux Connected to domain 'kalilinux' Escape character is ^] (Ctrl + ]) [ 0.000000] Linux version 6.0.0-kali3-amd64 (devel at kali.org) (gcc-12 (Debian 12.2.0-3) 12.2.0, GNU ld (GNU Binutils for Debian) 2.39) #1 SMP PREEMPT_DYNAMIC Debian 6.0.7-1kali1 (2022-11-07) [ 0.000000] Command line: console=ttyS0 . . . and I can complete the installation with the ncurses based windows HIH, Gianluca -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20230207/888b1f02/attachment.htm>