Cannot creat a kvm clone using 'virst-clone' in Red Hat Enterprise Linux 6
Issue
Cannot creat a kvm clone using virst-clone. virt-clone is giving the error "Domain test-0.img was not found"
#cd /var/lib/libvirt/image
#virt-clone --original woc-valildation-0.img --name woc-validation-2.img --nonsparse --file /var/lib/libvirt/images/woc-validation-2.img
Domain test-0.img was not found
This happens also if I use the full path name. It also happens if I use virt-clone --prompt.
We have three guests and it happens with all three.
[root@test images]# virt-clone --original test-0 --name
woc-validation-4 --file /var/lib/libvirt/images/test-5.img
ERROR Domain 'woc-validation-0' was not found.
ERROR An original machine name or xml file is required. (use --prompt to run interactively)
#ll
total 44132256
-rw-r--r-- 1 root root 117 Jan 25 16:56 ist
-rw------- 1 root root 20971520000 Jan 25 16:21 test-0.img
-rw------- 1 root root 20971520000 Nov 29 16:41 test-1.img
-rwxr-xr-x 1 root root 20971520000 Sep 10 11:44 test-2.img
Environment
- Red Hat Enterprise Linux 6.1
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.