Re: failed: Could not start storage pool: cannot open directory: ... No such file or directory

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



El 13/1/23 a las 18:50, Kaushal Shriyan escribió:
Hi,

# cat /etc/redhat-release
CentOS Linux release 7.9.2009 (Core)
#virt-install --version
1.5.0
#

# ls -l /var/lib/libvirt/isos/
total 8302356
-rw-r--r--. 1 root root 4712300544 Aug 31  2021 CentOS-7-x86_64-DVD-2009.iso
-rw-r--r--. 1 qemu qemu  990904320 Aug 11  2021
ubuntu-18.04.5-live-server-amd64.iso
-rw-r--r--. 1 qemu qemu 1331691520 Feb 23  2022
ubuntu-20.04.4-live-server-amd64.iso
-rw-r--r--. 1 qemu qemu 1466714112 Jun 28  2022
ubuntu-22.04-live-server-amd64.iso
#

virt-install --name demoreactui --ram 8096 --disk
path=/linuxkvmguestosdisk/demoreactui.img,size=20 --vcpus 2 --os-variant
ubuntu20.04 --network bridge=br0 --graphics none --console
pty,target_type=serial --location
/var/lib/libvirt/isos/ubuntu-20.04.4-live-server-amd64.iso,kernel=casper/vmlinuz,initrd=casper/initrd
--extra-args
'console=ttyS0,115200n8 serial'

ERROR    Error validating install location: Validating install media

failed: Could not start storage pool: cannot open directory
'/var/lib/libvirt/isos/ubuntu-20.04.4-live-server-amd64.iso,kernel=casper/vmlinuz,initrd=casper':
No such file or directory

Any clue and I look forward to hearing from you. Thanks in advance.

Best Regards,

Kaushal

Hello

See the man page https://linux.die.net/man/1/virt-install

In location you must pass only the ISO file, you are passing parameters that virt-install uses as file name as it warns you:

'/var/lib/libvirt/isos/ubuntu-20.04.4-live-server-amd64.iso,kernel=casper/vmlinuz,initrd=casper/initrd'

That's the file is trying to open, and obviously, don't exists.

Best

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
https://lists.centos.org/mailman/listinfo/centos




[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]


  Powered by Linux