Solved: libvirt: Storage Driver error : internal error: storage volume name ‘XXX.ngelinux.com_disk1.qcow2’ already in use.
Today we will see how to correct one of the common error message seen when we try to add a virtual machine in KVM on RHEL server.
Lets try to install/add the VM.
# virt-install --name=ngelinux-vm \
--vcpus=1 \
--memory=1024 \
--cdrom=/tmp/nglinux.iso \
--disk size=5 \
--os-variant=centos6.9
IMAGE: ngelinux-001.qcow2
/ngs/virtual/iso/ngelinux-001.qcow2 found, attempting to resume download
Downloading https://ftp.ngelinux.com/iso/vmimages/ngelinux-001.qcow2
• Resuming transfer from byte position 918552782
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 206 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
curl: (33) HTTP server doesn't seem to support byte ranges. Cannot resume.
/ngs/virtual/iso/XXX.ngelinux.com_cfg.iso ISO Found, checking if newer file exists
Refreshing from https://ftp.ngelinux.com/iso/nfv/XXX.ngelinux.com_cfg.iso
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 376k 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
Deploying ngelinux-001.qcow2 image into /ngs/virtual/volume... (can take a few minutes)
libvirt: Storage Driver error : internal error: storage volume name 'XXX.ngelinux.com_disk1.qcow2' already in use.
Traceback (most recent call last):
File "/ngs/global/bin/hvadm", line 1353, in add_domain
c.define_domain(args, virtual_machine)
File "/ngs/global/bin/virinstall", line 825, in define_domain
Resolution of above error message
Remove the corrupt image. $ cd /ngs/virtual/volume/ $ sudo rm XXX.ngelinux.com_disk1.qcow2 $ We can now reexamine the storage pool and it will again fetch the image from server. $ sudo virsh pool-refresh volume setlocale: No such file or directory Pool volume refreshed ‘'
Now if you try to install VM, it will succeed.
