virt-install - Error Could not start storage pool: cannot open directory '/var/lib/libvirt/boot': No such file or dir

Post Reply
User avatar
parkerc
Easy as a breeze
Posts: 314
Joined: Thu Oct 16, 2014 7:36 am
Location: Near London, England
Contact:

virt-install - Error Could not start storage pool: cannot open directory '/var/lib/libvirt/boot': No such file or dir

Post by parkerc »

I’m tying to create a virtual machine from the command line (of my QNAP device) and I thought I’d got everything set up right and ready, but it sadly fails with the following error.

Could anyone help me resolve it ?

I first created the disk image

````

Code: Select all

# /QVS/usr/bin/qemu-img create -f qcow2 ./debian8.qcow2 8G
Formatting './debian8.qcow2', fmt=qcow2 size=8589934592 cluster_size=65536 lazy_refcounts=off refcount_bits=16
````
and then I run the virt-install command...
````

Code: Select all

# /QVS/usr/bin/virt-install \
> --name debian8 \
> --ram 1024 \
> --disk path=./debian8.qcow2,size=8 \
> --vcpus 1 \
> --os-type linux \
> --os-variant debianwheezy \
> --network bridge=virbr0 \
> --graphics none \
> --console pty,target_type=serial \
> --location 'http://ftp.nl.debian.org/debian/dists/jessie/main/installer-amd64/' \
> --extra-args 'console=ttyS0,115200n8 serial
'
````
Which results in the following..
````

Code: Select all

Starting install...
Retrieving file MANIFEST... 
| 3.3 kB  00:00:00 !!! Retrieving file linux... 
| 6.0 MB  00:00:01 !!! Retrieving file initrd.gz...
|  29 MB  00:00:04 !!! ERROR    Could not start storage pool: cannot open directory '/var/lib/libvirt/boot': No such file or directory
````
The closest I seem to have to that location is as follows, but looking inside, it looks empty ?
````

Code: Select all

/QVS/var/lib/libvirt/boot
````
Model Name : QNAP TS-253be (16GB) & TS-453D (16GB)
Firmware Version:: QTS Latest
OS Version : Apple iOS (iPad/Safari Browser)
Number & Type of HDDs : 2 x 3TB WD Reds, Raid 1 & 4 x 4TB WD Reds, Raid 5
Website (When I have time) : http://www.nodecentral.co.uk
Post Reply

Return to “Virtualization Station”