failed: Could not start storage pool: cannot open directory: ... No such file or directory
Kaushal Shriyan
kaushalshriyan at gmail.com
Mon Jan 30 14:59:47 UTC 2023
Hi,
Checking in again if someone can help me for an earlier post to this
mailing list. Thanks in advance.
Best Regards,
Kaushal
On Tue, Jan 24, 2023 at 11:43 PM Kaushal Shriyan <kaushalshriyan at gmail.com>
wrote:
> Hi George,
>
> # cat /etc/redhat-release
> CentOS Linux release 7.9.2009 (Core)
> #virt-install --version
> 1.5.0
> #
>
> virsh vol-list isos
> Name Path
>
> ------------------------------------------------------------------------------
> CentOS-7-x86_64-DVD-2009.iso
> /var/lib/libvirt/isos/CentOS-7-x86_64-DVD-2009.iso
> ubuntu-18.04.5-live-server-amd64.iso
> /var/lib/libvirt/isos/ubuntu-18.04.5-live-server-amd64.iso
> ubuntu-20.04.4-live-server-amd64.iso
> /var/lib/libvirt/isos/ubuntu-20.04.4-live-server-amd64.iso
> ubuntu-22.04-live-server-amd64.iso
> /var/lib/libvirt/isos/ubuntu-22.04-live-server-amd64.iso
>
> virt-install --name vm25 \
> --os-variant ubuntu20.04 \
> --vcpus 2 \
> --memory 2048 \
> --location
> /var/lib/libvirt/isos/ubuntu-20.04.4-live-server-amd64.iso,kernel=casper/vmlinuz,initrd=casper/initrd
> \
> --network bridge=br0,model=virtio \
> --disk size=20 \
> --graphics none \
> --extra-args='console=ttyS0,115200n8 --- console=ttyS0,115200n8' \
> + virt-install --name vm25 --os-variant ubuntu20.04 --vcpus 2 --memory
> 2048 --location
> /var/lib/libvirt/isos/ubuntu-20.04.4-live-server-amd64.iso,kernel=casper/vmlinuz,initrd=casper/initrd
> --network bridge=br0,model=virtio --disk size=20 --graphics none
> '--extra-args=console=ttyS0,115200n8 --- console=ttyS0,115200n8'
> 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
>
> I am attaching the output.txt file in this email thread.
>
> isoinfo -J -i '/var/lib/libvirt/isos/ubuntu-20.04.4-live-server-amd64.iso'
> -l > /var/tmp/output.txt
>
> Any clue and I look forward to hearing from you. Thanks in advance.
>
> Best Regards,
>
> Kaushal
>
> On Sat, Jan 14, 2023 at 6:17 PM George <oVirt at goproject.info> wrote:
>
>> 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 --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
>>
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/virt-tools-list/attachments/20230130/ab2f10da/attachment.htm>
More information about the virt-tools-list
mailing list