Error converting vmdk disk to raw

627 views
Skip to first unread message

Adrian Rocha

unread,
Jan 29, 2016, 7:37:58 PM1/29/16
to qubes-users
Hi people,

I'm trying to convert a virtualbox disk to Xen raw format, but I'm having an error:

[user@dom0 ~]$ qemu-img-xen convert -O raw RI_IP2-disk1.vmdk RI_IP2-disk1.raw
qemu-img: error while writing
[user@dom0 ~]$ qemu-img-xen convert -f vmdk -O raw RI_IP2-disk1.vmdk RI_IP2-disk1.raw
qemu-img: error while writing

ll
-rw-r--r-- 1 user user 31739346944 ene 29 18:28 RI_IP2-disk1.raw
-rw-rw-r-- 1 user user 31739346944 ene 29 18:27 RI_IP2-disk1.vmdk

The process fails selecting other formats too:

[user@dom0 ~]$ qemu-img-xen convert -f vmdk -O qcow2 RI_IP2-disk1.vmdk RI_IP2-disk1.raw
qemu-img: error while writing

I have enough space in the file system to write the file

Any ideas about this issue?

Regards

Keld Norman

unread,
Apr 22, 2016, 1:45:28 PM4/22/16
to qubes-users

I have the same problem :( 

did you manage to solve the problem ? 

/Keld 

Den lørdag den 30. januar 2016 kl. 01.37.58 UTC+1 skrev Adrian Rocha:
Hi people,

I'm trying to convert a virtualbox disk to Xen raw format, but I'm having an error:

[user@dom0 ~]$ qemu-img-xen convert -O raw RI_IP2-disk1.vmdk RI_IP2-disk1.raw
qemu-img: error whiI le writing
[user@dom0 ~]$ qemu-img-xen convert -f vmdk -O raw RI_IP2-disk1.vmdk RI_IP2-disk1.raw
qemu-img: error while writing

ll
-rw-r--r-- 1 user user 31739346944 ene 29 18:28 RI_IP2-disk1.raw
-rw-rw-r-- 1 user user 31739346944 ene 29 18:27 RI_IP2-disk1.vmdk

The process fails selecting other formats too:

[user@dom0 ~]$ qemu-img-xen convert -f vmdk -O qcow2 RI_IP2-disk1.vmdk RI_IP2-disk1.raw
qemu-img: error while writing

Adrian Rocha

unread,
Apr 23, 2016, 2:21:57 AM4/23/16
to qubes-users
Hi Keld,


El viernes, 22 de abril de 2016, 11:45:28 (UTC-6), Keld Norman escribió:

I have the same problem :( 

did you manage to solve the problem ? 

Sorry, I didn't found a solution

Best Regards

TheGrandQubes

unread,
Apr 27, 2016, 7:39:18 AM4/27/16
to qubes-users
How do you know there is enough space? 

If the vmdk file is 30 GB, but the disk is configured as a 250GB disk in VirtualBox/VMWare, you need at least 250GB of free space to do the conversion.

Could this be the case for you?

After I did the conversion, the rwa file "size" was 250GB and the "size on disk" 30 GB! 

justinr...@gmail.com

unread,
Oct 13, 2016, 4:55:11 PM10/13/16
to qubes-users
I'm having same issue, I know there is enough space because df -h shows 198G available and qemu-img-xen info image.vmdk shows that the virtual disk size is 8G

johny...@sigaint.org

unread,
Oct 14, 2016, 12:36:01 PM10/14/16
to qubes-users
> I'm having same issue, I know there is enough space because df -h shows
> 198G available and qemu-img-xen info image.vmdk shows that the virtual
> disk size is 8G

I've had cases with the qemu tools where it reported a write error because
it had trouble reading one of the input files (corrupted, I think it was,
or maybe a usage error).

Put a "strace -o /tmp/log.txt" before your command, and go look at the
system calls that resulted in it giving that error message. You might see
a read error, or more specifics on the nature of the write failure.

JJ

Message has been deleted

pleo...@gmail.com

unread,
Oct 14, 2016, 12:57:43 PM10/14/16
to qubes-users
Reply all
Reply to author
Forward
0 new messages