[prev in list] [next in list] [prev in thread] [next in thread] 

List:       libvirt-users
Subject:    Re: [libvirt-users] Virsh Failing to Snapshot VMWare VM with Multiple Disks
From:       Elizabeth Griffith <e_beth_82 () yahoo ! com>
Date:       2012-07-20 3:05:04
Message-ID: 1342753504.20773.YahooMailNeo () web160606 ! mail ! bf1 ! yahoo ! com
[Download RAW message or body]

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@googlemail.com>
To: Eric Blake <eblake@redhat.com> 
Cc: Elizabeth Griffith <e_beth_82@yahoo.com>; "libvirt-users@redhat.com" \
                <libvirt-users@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@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


[Attachment #3 (text/html)]

<html><body><div style="color:#000; background-color:#fff; font-family:bookman old \
style, new york, times, serif;font-size:12pt"><div style="RIGHT: auto"><SPAN \
style="RIGHT: auto">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.</SPAN></div> <div style="RIGHT: auto"><SPAN style="RIGHT: \
auto"></SPAN>&nbsp;</div> <div style="RIGHT: auto"><SPAN style="RIGHT: auto">Thanks \
for your help.<VAR id=yui-ie-cursor></VAR></SPAN></div> <div><BR></div>
<DIV style="FONT-FAMILY: bookman old style, new york, times, serif; FONT-SIZE: 12pt">
<DIV style="FONT-FAMILY: times new roman, new york, times, serif; FONT-SIZE: 12pt">
<DIV dir=ltr><FONT size=2 face=Arial>
<DIV style="BORDER-BOTTOM: #ccc 1px solid; BORDER-LEFT: #ccc 1px solid; \
PADDING-BOTTOM: 0px; LINE-HEIGHT: 0; MARGIN: 5px 0px; PADDING-LEFT: 0px; \
PADDING-RIGHT: 0px; HEIGHT: 0px; FONT-SIZE: 0px; BORDER-TOP: #ccc 1px solid; \
BORDER-RIGHT: #ccc 1px solid; PADDING-TOP: 0px" class=hr contentEditable=false \
readonly="true"></DIV><B><SPAN style="FONT-WEIGHT: bold">From:</SPAN></B> Matthias \
Bolte &lt;matthias.bolte@googlemail.com&gt;<BR><B><SPAN style="FONT-WEIGHT: \
bold">To:</SPAN></B> Eric Blake &lt;eblake@redhat.com&gt; <BR><B><SPAN \
style="FONT-WEIGHT: bold">Cc:</SPAN></B> Elizabeth Griffith \
&lt;e_beth_82@yahoo.com&gt;; "libvirt-users@redhat.com" \
&lt;libvirt-users@redhat.com&gt; <BR><B><SPAN style="FONT-WEIGHT: \
bold">Sent:</SPAN></B> Wednesday, July 18, 2012 4:40 PM<BR><B><SPAN \
style="FONT-WEIGHT: bold">Subject:</SPAN></B> Re: [libvirt-users] Virsh Failing to \
Snapshot VMWare VM with Multiple Disks<BR></FONT></DIV><BR>2012/7/18 Matthias Bolte \
&lt;<A  href="mailto:matthias.bolte@googlemail.com" \
ymailto="mailto:matthias.bolte@googlemail.com">matthias.bolte@googlemail.com</A>&gt;:<BR>&gt; \
2012/7/18 Eric Blake &lt;<A href="mailto:eblake@redhat.com" \
ymailto="mailto:eblake@redhat.com">eblake@redhat.com</A>&gt;:<BR>&gt;&gt; On \
07/18/2012 09:47 AM, Elizabeth Griffith wrote:<BR>&gt;&gt;&gt; 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:<BR>&gt;&gt;&gt; "Could not create \
snapshot: FileNotFound - file [pool] filename.vmx".<BR>&gt;&gt;&gt; However, this \
command works if my vm only has one disk in its device list.<BR>&gt;&gt;&gt; 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.<BR>&gt;&gt;&gt; Can anyone tell me what I am \
doing wrong or if this is even supported by virsh?<BR>&gt;&gt;<BR>&gt;&gt; virsh \
supports calling the  underlying API; and the underlying API works<BR>&gt;&gt; for \
multi-disk VMs in qemu, so that should not be your issue.&nbsp; The real<BR>&gt;&gt; \
question is whether the vmware driver in libvirt has been properly wired<BR>&gt;&gt; \
up to obey that API on a multi-disk VM.&nbsp; Unfortunately, I don't know \
the<BR>&gt;&gt; answer to that, as I don't use vmware myself, but you are welcome to \
try<BR>&gt;&gt; and debug and submit a patch if no one else more familiar with \
the<BR>&gt;&gt; vmware driver in libvirt steps in.<BR>&gt;<BR>&gt; The error about \
the VMX files is strange. I'll have a look on this<BR>&gt; issue. Actually, snapshots \
of multi-volume VMs should just work.<BR><BR>Okay, I did a quick test with an ESX VM \
that has two normal file-based<BR>VMDK disks attached and snapshot-create works as \
expected.<BR><BR>I suspect there is some other problem/difference with your VM \
that<BR>triggers this error. Does the VM work normally? It can be  \
started<BR>etc.?<BR><BR>"Could not create snapshot: FileNotFound - file [pool] \
filename.vmx"<BR>looks like you replaced the original filenames in there. Does \
the<BR>referenced file actually exist, or is it really missing?<BR><BR>-- \
<BR>Matthias Bolte<BR>http://photron.blogspot.com<BR><BR><BR></DIV></DIV></div></body></html>




[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic