On Tue, Feb 7, 2023 at 4:32 PM Kaushal Shriyan <kaushalshriyan(a)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@tekkapc ~]# osinfo-detect
/linuxkvmaddgbdisk/kali-linux-2022.4-installer-amd64.iso
Media is bootable.
[root@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(a)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