Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
vms:vmdk [2014/05/15 17:14]
admin
vms:vmdk [2014/05/16 18:12] (current)
admin [Check the format of the vmware vmdk file]
Line 7: Line 7:
 You first have to ensure that your image has IDE drivers installed (see [[http://​support.microsoft.com/​kb/​314082|Microsoft kb314082]]) You first have to ensure that your image has IDE drivers installed (see [[http://​support.microsoft.com/​kb/​314082|Microsoft kb314082]])
  
-Conversion steps:+===== Conversion steps =====
  
-1) Halt the vmware VM . Check the format of the vmware vmdk file+==== Check the format of the vmware vmdk file ==== 
 +Halt the vmware VM. 
 +<​code>​ 
 +# qemu-img info FreeNAS-9.2.1.5-RELEASE-x64.vmdk 
 +image: FreeNAS-9.2.1.5-RELEASE-x64.vmdk 
 +file format: vmdk 
 +virtual size: 1.9G (2000027648 bytes) 
 +disk size: 846M 
 +</​code>​
  
-[root@vm_s7 guest22]# ​qemu-img ​info guest22-flat.vmdk +If the file format is “raw”, we do not need to convert the image file using qemu-img ​convert, just rename to file with the .img extensionIf it is not “raw”, use “qemu-img” to convert the image to raw format.
-image: fooguest22-flat.vmdk +
-file format: ​raw +
-virtual size: 15G +
-disk size: 15G +
-[root@vm_s7 guest22]#+
  
-2) If the file format is “raw”, we need not convert the image file using qemu-img ​convert, just rename to .img file. If it is not “raw”, use “qemu-img” to convert the image to raw format. +==== Convert Using qemu-img ​==== 
- +<​code>​ 
-3) How to convert using qemu-img. +# qemu-img convert ​FreeNAS-9.2.1.5-RELEASE-x64.vmdk -O raw /var/opt/localImg/​FreeNAS-9.2.1.5-RELEASE-x64.img 
- +</code>
-[root@vm_s7 guest22]# qemu-img convert ​guest22-flat.vmdk -O raw /volumes/guest22/guest22.img +
- +
-4) Create xen config file in /etc/​xen/​guest22 , with the renamed/​converted image file as disk.+
  
 +==== Create Xen Config File ====
 +Create the Xen config file in **/​etc/​xen/​guest22**,​ with the renamed/​converted image file as disk.
 +<​code>​
 disk = [ '​file:/​volumes/​guest22/​guest22.img,​hda,​w'​ ] disk = [ '​file:/​volumes/​guest22/​guest22.img,​hda,​w'​ ]
 +</​code>​
  
-5) Boot up the xen domU guest. ​It should boot up fine.+==== Boot up the Xen domU Guest ==== 
 +It should boot up fine.