VMware VMs and VirtualBox

This entry is part of Mastering Sun xVM VirtualBox


VMware VMs & Virtual Appliances formats

VMware VMs and Virtual Appliances are distributed in following formats VMware VMX/VMDK or Interoperable OVF format

  • VMware native format
    • VMX - VM defintion
    • VMDK - Virtual Disk definition and data

Inspecting Solaris VMware Virtual Appliance configuration

1. VMDK - Virtual Disk format

ls \*.vmdk

Solaris 10 u5 64-bit Console.vmdk
Solaris 10 u5 64-bit Console-s001.vmdk
Solaris 10 u5 64-bit Console-s002.vmdk
Solaris 10 u5 64-bit Console-s003.vmdk
Solaris 10 u5 64-bit Console-s004.vmdk
Solaris 10 u5 64-bit Console-s005.vmdk
Solaris 10 u5 64-bit Console-s006.vmdk
Solaris 10 u5 64-bit Console-s007.vmdk
Solaris 10 u5 64-bit Console-s008.vmdk
du -s -h Solaris\\ 10\\ u5\\ 64-bit\\ Console

704M    Solaris 10 u5 64-bit Console
cat "Solaris 10 u5 64-bit Console.vmdk"

# Disk DescriptorFile
version=1
CID=04f9d350
parentCID=ffffffff
createType="twoGbMaxExtentSparse"

# Extent description
RW 4192256 SPARSE "Solaris 10 u5 64-bit Console-s001.vmdk"
RW 4192256 SPARSE "Solaris 10 u5 64-bit Console-s002.vmdk"
RW 4192256 SPARSE "Solaris 10 u5 64-bit Console-s003.vmdk"
RW 4192256 SPARSE "Solaris 10 u5 64-bit Console-s004.vmdk"
RW 4192256 SPARSE "Solaris 10 u5 64-bit Console-s005.vmdk"
RW 4192256 SPARSE "Solaris 10 u5 64-bit Console-s006.vmdk"
RW 4192256 SPARSE "Solaris 10 u5 64-bit Console-s007.vmdk"
RW 2111488 SPARSE "Solaris 10 u5 64-bit Console-s008.vmdk"

# The Disk Data Base
#DDB

ddb.virtualHWVersion = "4"
ddb.geometry.cylinders = "16383"
ddb.geometry.heads = "16"
ddb.geometry.sectors = "63"
ddb.adapterType = "ide"

Virtual disk is in 2GB sparse format, size is 4192256\*7+ 2111488 = 31457280 in 512B sector sizes, so max disk size is 15GB.

2. VMX - VM defintion

cat Solaris\\ 10\\ 64-bit.vmx

memsize = "1024"
ide0:0.fileName = "Solaris 10 u5 64-bit Console.vmdk"
Ethernet0.virtualDev = "e1000"
displayName = "Solaris 10 u5 64-bit Console"
guestOS = "solaris10-64"

So this VM is use 1024Bm of memory, Disk use IDE emulation and network card emulaed "Intel e1000", by default is use VMware "bridge" networking.

VirtualBox 1.6.2 & VMware formats

VirtualBox 1.62 can use directly VMware virtual disk format VMDK, but with some important limitations like:

  • you presently cannot create snapshots
  • only write-through images are supported; immutable and normal hard disk are not supported.

VirtualBox 1.6.2 can't import VMX - VM definitions files so we need to create VM configuration manually based on infrmation in VMX file.

OVF format can't be currently parsed by VirtualBox 1.6.2, so it's need to be converted to VMX/VMDK definitions with Java based conversion OVF tool available from VMware.

Note: Starting from VirtualBox 2.1 VMDK is fully supported.

Comments:

Hi
I an new to solaris but I known the basics of Unix can one help me regarding this issue
Q: I have a sun server T6250 with solaris 10 Os and 4 windows server, i need to configure Virtual box in solaris, so that all the 4 Windows machine can be virtualized in on single sun server, can any one help regarding this issue, with a clean document (step by step procedure).
And what are pre requirements required for implement this in sun server
You can send to my email id: sunilllbe@gmail.com or sunil.kandregula@relianceada.com

Posted by sunil k on July 29, 2009 at 12:06 AM PDT #

please tell how to .vmdk file and convert it to origional

Posted by Mahboob Ali on December 22, 2009 at 10:41 PM PST #

Lets say you want to convert a VMware vmdk disk image to a VirtualBox vdi disk image. It’s super easy. First let me mention that VirtualBox already supports vmdk files and can use them as is. However lets continue with the original idea of converting. I assume you already have VirtualBox installed.

If your vmdk image file is already connected to a guest VM.

\* shutdown the VM
\* remove the vmdk file from the guest VM (you can’t convert it while it is attached to a VM)

From the cmdline, use VBoxManage. It’s a swiss army knife type of program. You will see it used for a variety of things.

$ VBoxManage clonehd --format VDI myserver.vmdk \\
/srv/d1/VirtualBox/HardDisks/myserver.vdi

Posted by webhosting on July 21, 2010 at 02:32 AM PDT #

Post a Comment:
  • HTML Syntax: NOT allowed
About

Hands-on experience with Virtualization

Search

Categories
Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today