The referenced vmx file is really there. If I remove all but one of the disks, then the
snapshot-create works. I am trying to run it on a vm that is just defined not fully
started, but I believe that is the correct way to snapshot a vm anyway.
Thanks for your help.
________________________________
From: Matthias Bolte <matthias.bolte(a)googlemail.com>
To: Eric Blake <eblake(a)redhat.com>
Cc: Elizabeth Griffith <e_beth_82(a)yahoo.com>; "libvirt-users(a)redhat.com"
<libvirt-users(a)redhat.com>
Sent: Wednesday, July 18, 2012 4:40 PM
Subject: Re: [libvirt-users] Virsh Failing to Snapshot VMWare VM with Multiple Disks
2012/7/18 Matthias Bolte <matthias.bolte(a)googlemail.com>:
2012/7/18 Eric Blake <eblake(a)redhat.com>:
> On 07/18/2012 09:47 AM, Elizabeth Griffith wrote:
>> I am trying to use virsh's snapshot-create command on a VMWare vm that has
multiple disks in its device list, but the command is failing with the error:
>> "Could not create snapshot: FileNotFound - file [pool] filename.vmx".
>> However, this command works if my vm only has one disk in its device list.
>> I am using libvirt 0.9.10, and the storage pool is nfs mounted between the
machine that I am running virsh on and the hypervisor.
>> Can anyone tell me what I am doing wrong or if this is even supported by virsh?
>
> virsh supports calling the underlying API; and the underlying API works
> for multi-disk VMs in qemu, so that should not be your issue. The real
> question is whether the vmware driver in libvirt has been properly wired
> up to obey that API on a multi-disk VM. Unfortunately, I don't know the
> answer to that, as I don't use vmware myself, but you are welcome to try
> and debug and submit a patch if no one else more familiar with the
> vmware driver in libvirt steps in.
The error about the VMX files is strange. I'll have a look on this
issue. Actually, snapshots of multi-volume VMs should just work.
Okay, I did a quick test with an ESX VM that has two normal file-based
VMDK disks attached and snapshot-create works as expected.
I suspect there is some other problem/difference with your VM that
triggers this error. Does the VM work normally? It can be started
etc.?
"Could not create snapshot: FileNotFound - file [pool] filename.vmx"
looks like you replaced the original filenames in there. Does the
referenced file actually exist, or is it really missing?
--
Matthias Bolte
http://photron.blogspot.com