converting VM from VMWare-format to Qemu

2008-01-09 Thread Matthias Apitz

Hello,

I've a Zip archive with a VM which runs fine in VMPlayer on Linux;
it is just the contents of the directory and the VMWare files in this
like:

$ unzip -t Evergreen_1.2.0_Gentoo_x86.zip
Archive:  Evergreen_1.2.0_Gentoo_x86.zip
testing: Evergreen_Gentoo_1.2.0/   OK
testing: Evergreen_Gentoo_1.2.0/Other Linux 2.6.x kernel.vmsd   OK
testing: Evergreen_Gentoo_1.2.0/vmware-0.log   OK
testing: Evergreen_Gentoo_1.2.0/Gentoo-s003.vmdk   OK
testing: Evergreen_Gentoo_1.2.0/Other Linux 2.6.x kernel.vmx   OK
testing: Evergreen_Gentoo_1.2.0/Gentoo-s004.vmdk   OK
testing: Evergreen_Gentoo_1.2.0/vmware-2.log   OK
testing: Evergreen_Gentoo_1.2.0/nvram   OK
testing: Evergreen_Gentoo_1.2.0/Gentoo-s001.vmdk   OK
testing: Evergreen_Gentoo_1.2.0/core   OK
testing: Evergreen_Gentoo_1.2.0/vmware.log   OK
testing: Evergreen_Gentoo_1.2.0/Gentoo.vmdk   OK
testing: Evergreen_Gentoo_1.2.0/Gentoo-s002.vmdk   OK
testing: Evergreen_Gentoo_1.2.0/vmware-1.log   OK
testing: Evergreen_Gentoo_1.2.0/README   OK

Is there some way to convert this with 'qemu-img' to an image
usable with Qemu on FreeBSD? Thx

matthias
-- 
Matthias Apitz
Manager Technical Support - OCLC GmbH
Gruenwalder Weg 28g - 82041 Oberhaching - Germany
t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211
e [EMAIL PROTECTED] - w http://www.oclc.org/ http://www.UnixArea.de/
b http://gurucubano.blogspot.com/
Don't top-post, read RFC1855 http://www.faqs.org/rfcs/rfc1855.html
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: converting VM from VMWare-format to Qemu

2008-01-09 Thread Kimi
On 09/01/2008, Matthias Apitz [EMAIL PROTECTED] wrote:

 Hello,

 I've a Zip archive with a VM which runs fine in VMPlayer on Linux;
 it is just the contents of the directory and the VMWare files in this
 like:

 $ unzip -t Evergreen_1.2.0_Gentoo_x86.zip
 Archive:  Evergreen_1.2.0_Gentoo_x86.zip
 testing: Evergreen_Gentoo_1.2.0/   OK
 testing: Evergreen_Gentoo_1.2.0/Other Linux 2.6.x kernel.vmsd   OK
 testing: Evergreen_Gentoo_1.2.0/vmware-0.log   OK
 testing: Evergreen_Gentoo_1.2.0/Gentoo-s003.vmdk   OK
 testing: Evergreen_Gentoo_1.2.0/Other Linux 2.6.x kernel.vmx   OK
 testing: Evergreen_Gentoo_1.2.0/Gentoo-s004.vmdk   OK
 testing: Evergreen_Gentoo_1.2.0/vmware-2.log   OK
 testing: Evergreen_Gentoo_1.2.0/nvram   OK
 testing: Evergreen_Gentoo_1.2.0/Gentoo-s001.vmdk   OK
 testing: Evergreen_Gentoo_1.2.0/core   OK
 testing: Evergreen_Gentoo_1.2.0/vmware.log   OK
 testing: Evergreen_Gentoo_1.2.0/Gentoo.vmdk   OK
 testing: Evergreen_Gentoo_1.2.0/Gentoo-s002.vmdk   OK
 testing: Evergreen_Gentoo_1.2.0/vmware-1.log   OK
 testing: Evergreen_Gentoo_1.2.0/README   OK

 Is there some way to convert this with 'qemu-img' to an image
 usable with Qemu on FreeBSD? Thx


I think the only part that needs converting is the VMDK files which is
the virtual hard disc drive. I'm not entirely sure if qemu-img handles
split VMDK files, I would be surprised if that was the case. I also
think the image is a sparse one go by the s in two of the VMDK's file
name. You can all but try.

better place to have asked maybe is the qemu malling list available on qemu.org

have you (anyone?) tried running VMware Player under FreeBSD's linux emulation?

 matthias
 --
 Matthias Apitz
 Manager Technical Support - OCLC GmbH
 Gruenwalder Weg 28g - 82041 Oberhaching - Germany
 t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211
 e [EMAIL PROTECTED] - w http://www.oclc.org/ http://www.UnixArea.de/
 b http://gurucubano.blogspot.com/
 Don't top-post, read RFC1855 http://www.faqs.org/rfcs/rfc1855.html
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]



-- 
Regards,
 Kimi
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: converting VM from VMWare-format to Qemu

2008-01-09 Thread Matthias Apitz
El día Wednesday, January 09, 2008 a las 11:06:28AM +, Kimi escribió:

 I think the only part that needs converting is the VMDK files which is
 the virtual hard disc drive. I'm not entirely sure if qemu-img handles
 split VMDK files, I would be surprised if that was the case. I also
 think the image is a sparse one go by the s in two of the VMDK's file
 name. You can all but try.

Thx for the answer; this is how the running VM sees the disk:

# fdisk -l /dev/sda

Disk /dev/sda: 6442 MB, 6442450944 bytes
255 heads, 63 sectors/track, 783 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot  Start End  Blocks   Id  System
/dev/sda1   1   5   40131   83  Linux
/dev/sda2   6  68  506047+  82  Linux swap / Solaris
/dev/sda3  69 783 5743237+  83  Linux

maybe it is an idea to just punch the complete disk /dev/sda
with dd(1) to a file outside the VM and convert/use this with
Qemu?

 better place to have asked maybe is the qemu malling list available on 
 qemu.org

this is not a mailing list, but a BBS with web interface; I asked
there already other stuff in the past w/o any answers; but will
do give it a try again;

 have you (anyone?) tried running VMware Player under FreeBSD's linux 
 emulation?

not me;

matthias

-- 
Matthias Apitz
Manager Technical Support - OCLC GmbH
Gruenwalder Weg 28g - 82041 Oberhaching - Germany
t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211
e [EMAIL PROTECTED] - w http://www.oclc.org/ http://www.UnixArea.de/
b http://gurucubano.blogspot.com/
Don't top-post, read RFC1855 http://www.faqs.org/rfcs/rfc1855.html
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: converting VM from VMWare-format to Qemu

2008-01-09 Thread Kimi
On 09/01/2008, Matthias Apitz [EMAIL PROTECTED] wrote:
 El día Wednesday, January 09, 2008 a las 11:06:28AM +, Kimi escribió:

  I think the only part that needs converting is the VMDK files which is
  the virtual hard disc drive. I'm not entirely sure if qemu-img handles
  split VMDK files, I would be surprised if that was the case. I also
  think the image is a sparse one go by the s in two of the VMDK's file
  name. You can all but try.

 Thx for the answer; this is how the running VM sees the disk:

 # fdisk -l /dev/sda

 Disk /dev/sda: 6442 MB, 6442450944 bytes
 255 heads, 63 sectors/track, 783 cylinders
 Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot  Start End  Blocks   Id  System
 /dev/sda1   1   5   40131   83  Linux
 /dev/sda2   6  68  506047+  82  Linux swap / Solaris
 /dev/sda3  69 783 5743237+  83  Linux

 maybe it is an idea to just punch the complete disk /dev/sda
 with dd(1) to a file outside the VM and convert/use this with
 Qemu?


it was one of two other possibles I was going to suggest along with
running VMware Server for Linux. maybe overkill? I just try to think
free incase qemu-img cannot do what you need.

  better place to have asked maybe is the qemu malling list available on 
  qemu.org

 this is not a mailing list, but a BBS with web interface; I asked
 there already other stuff in the past w/o any answers; but will
 do give it a try again;

sorry, you can post user questions on the developer mailing list, I
see a few times. you know, maybe your question has been asked before?
maybe use gmane.org and see.


  have you (anyone?) tried running VMware Player under FreeBSD's linux 
  emulation?

 not me;

 matthias

 --
 Matthias Apitz
 Manager Technical Support - OCLC GmbH
 Gruenwalder Weg 28g - 82041 Oberhaching - Germany
 t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211
 e [EMAIL PROTECTED] - w http://www.oclc.org/ http://www.UnixArea.de/
 b http://gurucubano.blogspot.com/
 Don't top-post, read RFC1855 http://www.faqs.org/rfcs/rfc1855.html



-- 
Regards,
 Kimi
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: converting VM from VMWare-format to Qemu

2008-01-09 Thread Nikos Vassiliadis
On Wednesday 09 January 2008 13:35:29 Matthias Apitz wrote:
 maybe it is an idea to just punch the complete disk /dev/sda
 with dd(1) to a file outside the VM and convert/use this with
 Qemu?

Yes, that's going to work. You'll be much better if
boot (or switch) to single user mode to avoid writes
on the mounted filesystems while copying...

Nikos

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]