[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [libvirt-users] Virsh Failing to Snapshot VMWare VM with Multiple Disks



2012/7/18 Matthias Bolte <matthias bolte googlemail com>:
> 2012/7/18 Eric Blake <eblake 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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]