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

Fri Jan 13 18:17:03 UTC 2023
Anand Buddhdev <anandb at ripe.net>

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