Failed: Could Not Start Storage Pool: Cannot Open Directory: … No Such File Or Directory

Home » CentOS » Failed: Could Not Start Storage Pool: Cannot Open Directory: … No Such File Or Directory
CentOS 6 Comments

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 –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

6 thoughts on - Failed: Could Not Start Storage Pool: Cannot Open Directory: … No Such File Or Directory

  • Hi Kaushal,

    The –location option takes a path to an ISO image. You have extra stuff after the ISO path.

  • Hi,

    virt-install –help Use ‘–option=?’ or ‘–option help’ to see available suboptions See man page for examples and full option syntax.

    # virt-install –option help usage: virt-install –name NAME –memory MB STORAGE INSTALL [options]
    virt-install: error: unrecognized arguments: –option help
    #

    # virt-install –option=?
    usage: virt-install –name NAME –memory MB STORAGE INSTALL [options]
    virt-install: error: unrecognized arguments: –option=?
    #

    # virt-install -help –option=?
    usage: virt-install –name NAME –memory MB STORAGE INSTALL [options]
    virt-install: error: argument -h/–help: ignored explicit argument ‘elp’
    #

    I need help to Use ‘–option=?’ or ‘–option help’ to see available suboptions. Any examples? I am getting the above error. Please advise. Thanks in advance.

    Best Regards,

    Kaushal

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

    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

  • I am encountering an ERROR: Couldn’t find hvm kernel for Ubuntu tree.

    # cat installubuntu.sh virt-install \
    –name fiservreactitestui \
    –virt-type kvm \
    –hvm \
    –ram 8096 \
    –disk path=/linuxkvmguestosdisk/fiservreactitestui.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 \
    –extra-args ‘console=ttyS0,115200n8 serial’
    [root@dac-inhousebaseserver1 ~]# ./installubuntu.sh

    ** (process:23128): WARNING **: 18:06:57.479: Entity http://linux-kvm.org/qemu-kvm/1.2.0 should be in file platform/
    linux-kvm.org/qemu-kvm-1.2.0.xml not tests/data/positive/platform/
    linux-kvm.org/qemu-kvm-1.2.0.xml

    ** (process:23128): WARNING **: 18:06:57.507: Entity http://x.org/x11-keyboard should be in file datamap/x.org/x11-keyboard.xml not tests/data/positive/datamap/x.org/x11-keyboard.xml

    ** (process:23128): WARNING **: 18:06:57.530: Entity http://fedoraproject.org/fedora/rawhide should be in file os/
    fedoraproject.org/fedora-rawhide.xml not tests/data/negative/os/
    fedoraproject.org/fedora-rawhide.xml

    ** (process:23128): WARNING **: 18:06:57.546: Entity http://ibm.com/ps2/keyboard should be in file device/
    ibm.com/ps2-keyboard.xml not tests/data/positive/device/
    ibm.com/ps2-keyboard.xml

    ** (process:23128): WARNING **: 18:06:57.561: Entity http://fedoraproject.org/silverblue/kickstart/desktop should be in file install-script/fedoraproject.org/silverblue-kickstart-desktop.xml not tests/data/positive/install-script/
    fedoraproject.org/silverblue-kickstart-desktop.xml

    ** (process:23128): WARNING **: 18:06:57.598: Entity http://fedoraproject.org/fedora/rawhide should be in file os/
    fedoraproject.org/fedora-rawhide.xml not tests/data/positive/os/
    fedoraproject.org/fedora-rawhide.xml

    Starting install… Retrieving file .treeinfo…

    | 0 B 00:00:00
    Retrieving file content…

    | 0 B 00:00:00
    Retrieving file info…

    | 68 B 00:00:00
    ERROR Couldn’t find hvm kernel for Ubuntu tree. Domain installation does not appear to have been successful. If it was, you can restart your domain by running:
    virsh –connect qemu:///system start fiservreactitestui otherwise, please restart your installation.
    #

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

    Best Regards,

    Kaushal

  • Kaushal,

    You keep asking questions here, but I haven’t seen you thank anyone so far. All the people trying to help you here do this in their own time, and don’t get paid for it. You would do well to show some gratitude.

    Coming to your issue. You want to work with Linux, but you’re not even prepared to do some basic reading of the manual pages, as suggested by several people.

    The problem you have described below is caused by your misusage of the virt-install command. You could have easily come across the solution by doing a simple Google search of the error message. There are several places where this question has been answered.

    There’s nothing wrong in asking for help. But if you expect others to do your work for you, then you’re asking for too much. If you’re lucky, some kind souls might even go that far and spoon-feed you the answer, but I certainly would not.