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
Last revision Both sides next revision
vms:vmdk [2014/05/15 17:14]
admin
vms:vmdk [2014/05/16 18:10]
admin [Convert Using qemu-img]
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. 
-[root@vm_s7 guest22]# qemu-img info guest22-flat.vmdk+<​code>​ 
 +# qemu-img info guest22-flat.vmdk
 image: fooguest22-flat.vmdk image: fooguest22-flat.vmdk
 file format: raw file format: raw
 virtual size: 15G virtual size: 15G
 disk size: 15G disk size: 15G
-[root@vm_s7 guest22]# +</​code>​
- +
-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. +
- +
-3) How to convert using qemu-img.+
  
-[root@vm_s7 guest22]# ​qemu-img convert ​guest22-flat.vmdk -raw /​volumes/​guest22/​guest22.img+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 extension. If it is not “raw”, use “qemu-img” to convert the image to raw format.
  
-4) Create xen config file in /etc/xen/guest22 , with the renamed/converted image file as disk.+==== Convert Using qemu-img ==== 
 +<​code>​ 
 +# 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>​
  
 +==== 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.