Kaushal Shriyan
2023-Jan-13 17:50 UTC
[CentOS] failed: Could not start storage pool: cannot open directory: ... No such file or directory
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 '/var/lib/libvirt/isos/ubuntu-20.04.4-live-server-amd64.iso,kernel=casper/vmlinuz,initrd=casper/initrd' 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
Anand Buddhdev
2023-Jan-13 18:17 UTC
[CentOS] failed: Could not start storage pool: cannot open directory: ... No such file or directory
On 13/01/2023 18:50, Kaushal Shriyan wrote: Hi Kaushal,> 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 > '/var/lib/libvirt/isos/ubuntu-20.04.4-live-server-amd64.iso,kernel=casper/vmlinuz,initrd=casper/initrd' > 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.The --location option takes a path to an ISO image. You have extra stuff after the ISO path. -- Anand
José María Terry Jiménez
2023-Jan-14 11:03 UTC
[CentOS] failed: Could not start storage pool: cannot open directory: ... No such file or directory
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, > > KaushalHello 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
Reasonably Related Threads
- failed: Could not start storage pool: cannot open directory: ... No such file or directory
- failed: Could not start storage pool: cannot open directory: ... No such file or directory
- failed: Could not start storage pool: cannot open directory: ... No such file or directory
- failed: Could not start storage pool: cannot open directory: ... No such file or directory
- multiple vms with same PCI passthrough