Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
vms:vmdk [2014/05/15 17:40] admin [Extra Step for Converting a Vmware Windows VM Guest] |
vms:vmdk [2014/05/16 18:12] (current) admin [Check the format of the vmware vmdk file] |
||
---|---|---|---|
Line 12: | Line 12: | ||
Halt the vmware VM. | Halt the vmware VM. | ||
<code> | <code> | ||
- | # qemu-img info guest22-flat.vmdk | + | # qemu-img info FreeNAS-9.2.1.5-RELEASE-x64.vmdk |
- | image: fooguest22-flat.vmdk | + | image: FreeNAS-9.2.1.5-RELEASE-x64.vmdk |
- | file format: raw | + | file format: vmdk |
- | virtual size: 15G | + | virtual size: 1.9G (2000027648 bytes) |
- | disk size: 15G | + | disk size: 846M |
</code> | </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. | + | 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. |
- | 3) How to convert using qemu-img. | + | ==== Convert Using qemu-img ==== |
- | + | <code> | |
- | [root@vm_s7 guest22]# qemu-img convert guest22-flat.vmdk -O raw /volumes/guest22/guest22.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> | |
- | 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. |