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

George oVirt at goproject.info
Sat Jan 14 12:37:50 UTC 2023


Kaushal,


"_Corporate wants you to find the difference_"

[--location 
]/var/lib/libvirt/isos/ubuntu-20.04.4-live-server-amd64.iso


# ls -l /var/lib/libvirt/isos/
/var/lib/libvirt/isos/[-rw-r--r--. 1 qemu qemu 1331691520 Feb 23
 2022 ]ubuntu-20.04.4-live-server-amd64.iso


"_They are the same_"


I used virt-manager more than the command line, so please excuse me as
I believe my suggestion below is wrong. 



What happens if you use "virsh vol-list isos"  (assuming your storage
pool that contains ubuntu-20.04.4-live-server-amd64.iso is called
isos).



I would expect something like:


# virsh vol-list isos
ubuntu-20.04.4-live-server-amd64.iso              
/var/lib/libvirt/isos/ubuntu-20.04.4-live-server-amd64.iso



_However when I did a bit of searching on the Internet, I found the
following which sounds more like your issue._


https://askubuntu.com/questions/789358/virt-install-using-location-with-iso-image-no-longer-working


--location
'/path_to_isos/CentOS-7-x86_64-NetInstall-2003.iso',initrd=isolinux/initrd.img,kernel=isolinux/vmlinuz
\

_The key here is the additional parameters on the location specifying_
vmlinuz as kernel and initrd.img. To find the path within the iso I've
use it the isoinfo command as follows:

$ isoinfo -J -i '/path_to_isos/CentOS-7-x86_64-NetInstall-2003.iso' -l


https://www.wpdiaries.com/ubuntu-on-kvm/



Run in the terminal:
...
--location
/var/lib/libvirt/images/ubuntu-22.04.1-live-server-amd64.iso,kernel=casper/vmlinuz,initrd=casper/initrd
\
...
where
...
--location – path to the local .iso file (or a distro install URL).
Also, we set kernel and initrd here (we got values for them in section
1).




George.





On Saturday, 14-01-2023 at 03:01 Kaushal Shriyan wrote:


Hi,


# cat /etc/redhat-release
CentOS Linux release 7.9.2009 (Core)
#virt-install --version1.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 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/virt-tools-list/attachments/20230114/e8623b72/attachment.htm>


More information about the virt-tools-list mailing list