unexpected end of file mounting vdi image
I am unable to mount a vdi image with virt-df. I get this error in the libvirt log. 2012-06-24 02:37:22.484+0000: 2364: error : qemuMonitorIO:583 : internal error End of file from monitor I don't really know from this output what the problem is and some assistance would be appreciated. I'm attaching the output of the libguest test program. Brian ____________________________________________________________ GET FREE SMILEYS FOR YOUR IM & EMAIL - Learn more at http://www.inbox.com/smileys Works with AIM®, MSN® Messenger, Yahoo!® Messenger, ICQ®, Google Talk™ and most webmails
On Sat, Jun 30, 2012 at 03:01:24PM -0800, B. M. wrote:
I am unable to mount a vdi image with virt-df.
Which version of virt-df, from where? What's the precise virt-df command that you're running?
I get this error in the libvirt log. 2012-06-24 02:37:22.484+0000: 2364: error : qemuMonitorIO:583 : internal error End of file from monitor
libvirt doesn't have anything to do with virt-df, unless you're using the -c or -d options of virt-df in which case virt-df will use libvirt to look up the path to the guest disk image. In any case, there's no useful information in the libvirt log from running virt-df.
I don't really know from this output what the problem is and some assistance would be appreciated. I'm attaching the output of the libguest[fs] test program.
In addition to answering the important questions above, try enabling debugging: http://libguestfs.org/guestfs-faq.1.html#debugging_libguestfs Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones libguestfs lets you edit virtual machines. Supports shell scripting, bindings from many languages. http://libguestfs.org
Sorry, I thought all the pertinent info would be in the libguestfs test tool output I attached to my message. The commands I've run that generate this error are: guestfish --ro -i -a /VM/Ubuntu-Media/Ubuntu-Media-Copy.vdi virt-df -ha /VM/Ubuntu-Media/Ubuntu-Media.vdi virt-df is version 1.7.17
-----Original Message----- From: rjones@redhat.com Sent: Mon, 2 Jul 2012 10:13:43 +0100 To: illuminatus@inbox.com Subject: Re: [Libguestfs] unexpected end of file mounting vdi image
On Sat, Jun 30, 2012 at 03:01:24PM -0800, B. M. wrote:
I am unable to mount a vdi image with virt-df.
Which version of virt-df, from where?
What's the precise virt-df command that you're running?
I get this error in the libvirt log. 2012-06-24 02:37:22.484+0000: 2364: error : qemuMonitorIO:583 : internal error End of file from monitor
libvirt doesn't have anything to do with virt-df, unless you're using the -c or -d options of virt-df in which case virt-df will use libvirt to look up the path to the guest disk image. In any case, there's no useful information in the libvirt log from running virt-df.
I don't really know from this output what the problem is and some assistance would be appreciated. I'm attaching the output of the libguest[fs] test program.
In addition to answering the important questions above, try enabling debugging:
http://libguestfs.org/guestfs-faq.1.html#debugging_libguestfs
Rich.
-- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones libguestfs lets you edit virtual machines. Supports shell scripting, bindings from many languages. http://libguestfs.org
____________________________________________________________ FREE 3D EARTH SCREENSAVER - Watch the Earth right on your desktop! Check it out at http://www.inbox.com/earth
On Mon, Jul 02, 2012 at 06:20:16PM -0800, B. M. wrote:
Sorry, I thought all the pertinent info would be in the libguestfs test tool output I attached to my message.
The commands I've run that generate this error are: guestfish --ro -i -a /VM/Ubuntu-Media/Ubuntu-Media-Copy.vdi virt-df -ha /VM/Ubuntu-Media/Ubuntu-Media.vdi virt-df is version 1.7.17
I'm guessing CentOS 6.2. The error is right there in the output: qemu-kvm: -drive file=/VM/Ubuntu-Media/Ubuntu-Media-Copy.vdi,snapshot=on,if=virtio: could not open disk image /VM/Ubuntu-Media/Ubuntu-Media-Copy.vdi: Operation not supported qemu cannot understand this file. It could well be that VDI support is disabled in CentOS, or the file format is some later variant that qemu doesn't support. There's a newer version of libguestfs in RHEL 6.3, but the basic problem here is with qemu. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones virt-p2v converts physical machines to virtual machines. Boot with a live CD or over the network (PXE) and turn machines into Xen guests. http://et.redhat.com/~rjones/virt-p2v
I'm guessing CentOS 6.2.
Correct.
The error is right there in the output:
qemu-kvm: -drive file=/VM/Ubuntu-Media/Ubuntu-Media-Copy.vdi,snapshot=on,if=virtio: could not open disk image /VM/Ubuntu-Media/Ubuntu-Media-Copy.vdi: Operation not supported
qemu cannot understand this file. It could well be that VDI support is disabled in CentOS, or the file format is some later variant that qemu doesn't support.
I saw that but assumed there was something else wrong.
There's a newer version of libguestfs in RHEL 6.3, but the basic problem here is with qemu.
According to Red Hat virtualization documentation qemu-img supposedly supports converting vdi images, so qemu should know how to read them at least. Libguestfs is not standalone? So it requires qemu-kvm to load the image before it can mount it? I don't find any reference to whether vdi is officially supported in RHEL 6 or not other than the qemu-img. Brian ____________________________________________________________ FREE 3D EARTH SCREENSAVER - Watch the Earth right on your desktop! Check it out at http://www.inbox.com/earth
participants (2)
-
B. M. -
Richard W.M. Jones