Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Is it possible to convert a VMWare vmdk image file to physical hardisk drive? I know VMWare 6.5 can use physical harddisk drive directly to get good performance, can I convert an existing vmdk file to physical harddisk drive go gain better performance?

share|improve this question
    
There is very little performance difference between using vmdks and physical drives. –  JamesRyan Dec 18 '11 at 17:12

4 Answers 4

If you have qemu-img, you should be able to do all of this from a command line dealing just with image files.

qemu-img convert source.vmdk -O raw /target/drive/

That will write out whatever raw format the vmdk was out to a physical drive. I have not been able to test this on my own, but I think that will work :)

share|improve this answer
    
A tip: qemu version 1.2.0 fixes a bug that occurs when converting VMDK images. See serverfault.com/questions/429478/… –  Erik Sjölund Sep 18 '12 at 13:49

A bit late, but for reference I have successfully:

  1. Attach clonezilla to the virtual machine
  2. Boot the virtual machine with clonezilla disk
  3. Save an image of the disk to an external USB drive (also attached to the virtual machine)
  4. Restore the image to a physical disk using clonezilla
share|improve this answer

Have you tried booting into a BartPE cd (i.e. UltimateP2V ) and using Ghost? You'll probably run into driver problems once it gets on the hardware but, those are easy enough to deal with (in theory, lol).

If you want to create your own P2V (V2V, V2P, etc) disk check out Mike Laverick's write up (its the best): http://www.rtfm-ed.co.uk/docs/vmwdocs/whitepaper-ultimateP2V.pdf

share|improve this answer

Mount the drive in a VM or however, and snapshot it (www.drivesnapshot.de). Then mount the raw disk in a VM and restore the snapshot onto the disk. That will transfer the drive sector by sector. In Linux I think you can use dd to do the same thing.

Isn't use of physical disks for VM volumes deprecated in VMWare these days?

JR

share|improve this answer
    
The feature still exists in Workstation and the runs-on-bare-hardware-ish products. You can't use physical partitions/disks in this way with VMWare Server or VMWare Player though. –  David Spillett Jun 30 '09 at 14:43
1  
You can use physical disks fine in VMWare Server 1. I don't know about 2-- I can't stand it and won't use it. –  Evan Anderson Jun 30 '09 at 14:50
    
You can use any disk imaging software you prefer. I will often use a "helper VM" that has it's own boot drive and then mount the source and target drives. The VM has all the disk tools I usually use and makes it easy if you have to do this from time to time. –  Kevin Kuphal Jun 30 '09 at 14:54

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.