Angels Technology

  • Subscribe to our RSS feed.
  • Twitter
  • StumbleUpon
  • Reddit
  • Facebook
  • Digg

Friday, September 7, 2012

Migrating VMs : don’t use OVA/OVF?

Posted on 4:09 PM by Unknown

Don’t use OVF to move virtual machines around in your environment?
Interesting thread here, http://communities.vmware.com/message/2110421
Where resident expert continuumsuggests not using OVF to move vms around.
Instead he suggests taking the files in the folder,  (vmdk, vmx, vmxf) and moving them to their new location.

Here is why:

OVF-export reads the existing vmx-file and tries to guess which parameters are important. Then it obscures the content of the original, drops some parameters and writes the result into an xml-file.

OVF-import again reads the xml-file and tries to guess which parameters are important. Again it may drop some parameters and then it creates a new vmx-file.

I just made a test: all on the same platform.
the original vmx had 85 lines - after export and re-import the new vmx-file has only 59 lines - 5 of those lines were added that did not exist in the original.

The final result:
the MAC address was lost and the PCI-slots of the VM were re-arranged.
several custom parameters were completely lost
======================================

The result may still work but it definetely is a different VM than the one I exported.

On a Windows VM the result may require a new activation.
More picky guests may not even boot anymore.

Why would you want to do that ???


Ok - you may have a large thick provisioned vmdk - too large to copy it as it is.
Then use vmkfstools -i to clone the existing vmdk into the 2Gb split-sparse format.
This packs almost as good as the "streamoptimized" format used for OVF/OVA

I avoid OVF/OVA when ever possible - I have wasted too much time with manually editing the xml-files or guessing good vmx-files.




Use OVF?
I would use ovf/ova for packaging and distribution still, but for moving vms between lets say a test/dev farm that is isolated and moving it to a production farm, you could use the copy method, or another tool like a backup tool. It really comes down to custom settings in the vmx, the vmdk is the same. This is not to say OVF doesn't work or have it's place, just a word of caution and advice.

Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Posted in datastore, esx, esxi, ova, ovf, vm, vmdk, VMFS, vmware, vsphere | No comments
Newer Post Older Post Home

0 comments:

Post a Comment

Subscribe to: Post Comments (Atom)

Popular Posts

  • Convert your physical RDM (rdmp) to a virtual RDM (rdmv)
    So you have a raw disk mapping on your virtual machine in esxi   and you wanted to convert it from a rdmp to a rdmv. Using the VMware cli...
  • How to run a powershell script for vmware : walkthrough
    Here is a walk through on how to make and run a powershell /powercli script The methods also apply to powershell but this is target towa...
  • VM script : To Get the VM data with Snapshot, Datastore, Total Disk Size, Cluster Name, OS Name
    Here is a good script I came across which get's some details of a virtual machine: Its from the technet script repository : here # To Ge...
  • Browsing Vmware logs in the DCUI (view esxi logs via console)
    Why would you view your logs in the console? Well sometimes it's the only place that is accessible if there is an error. Go to your DC...
  • How to read PSOD errors on your esxi host
    Here are some links that are useful to help you interpret why psod errors are happening. Machine Check Exception errors: mce http://kb.vmwar...
  • Vmware DRS anti affinity rules wont let you enter maintenance mode for a esxi host
    You have a DRS rule that specifies that 2 vms need to be kept apart: In this case: 250-FT and 250sql3 For larger clusters with multiple...
  • convert thick disk to thin using a command line via the vmkfstools on the esxi host
    So you have a thick provisioned disk and you want to convert it to a thin provisioned disk. Another issue you have is that you don’t have ...
  • Setting your esxi host to restart automatically after crash or purple screen aka psod
    The default and recommended setting is to leave the purple screen of death up to help you notice that het host has died and also leave t...
  • Visualesxtop problems starting the java bat file
    What is it: Visualesxtop, a new fling that gives you a graphical way to view esxtop data Get it here http://labs.vmware.com/flings/visua...
  • Migrating VMs : don’t use OVA/OVF?
    Don’t use OVF to move virtual machines around in your environment? Interesting thread here, http://communities.vmware.com/message/2110421 ...

Categories

  • 5.1
  • backup
  • cloud
  • cluster
  • command line
  • console
  • converter
  • cpu
  • datacenter
  • datastore
  • datastore. rdm
  • DCUI
  • dell
  • disaster recovery
  • display
  • DR
  • e1000
  • e1000e
  • ec2
  • esx
  • esxi
  • esxtop
  • extent
  • Good for enterprise
  • HA
  • hcl
  • host
  • HP
  • ibm
  • iometer
  • iscsi
  • iso
  • linked mode
  • logs
  • MAC
  • memory
  • NFS
  • NIC
  • NTP
  • ova
  • ovf
  • p2v
  • pcie
  • performance
  • phone
  • powercli
  • powershell
  • PSOD
  • raid
  • RDM
  • resource pool
  • rvtools
  • scsi
  • sddc
  • snapshots
  • SQL
  • SRM
  • ssh
  • storage
  • svmotion
  • syslog collector
  • v2v
  • vapp
  • vcenter
  • vcloud
  • vcp
  • veeam
  • VI console
  • vm
  • vmdk
  • VMFS
  • vmkfstools
  • vmotion
  • VMUG
  • vmware
  • vmware tools
  • vmware.esxi
  • vmxnet3
  • vsphere
  • vum
  • web client
  • windows

Blog Archive

  • ►  2013 (28)
    • ►  October (2)
    • ►  September (1)
    • ►  August (1)
    • ►  July (1)
    • ►  June (14)
    • ►  May (1)
    • ►  April (1)
    • ►  March (5)
    • ►  February (1)
    • ►  January (1)
  • ▼  2012 (138)
    • ►  December (2)
    • ►  November (13)
    • ►  October (26)
    • ▼  September (19)
      • Clone a vm using powercli
      • Svmotion RDM to vmdk virtual disk
      • Convert your physical RDM (rdmp) to a virtual RDM ...
      • VMDK per VMFS : Why use a one to one (1:1) ratio?
      • error VMware converter 5.0 will crash when using v...
      • Mac OSX 10.8 Support for ESXi 5.1
      • Can you rename a vmdk of a running vm in datastore...
      • How to import and deploy a ova or ovf file in the ...
      • Vmware esxi host clusters : one large or several/m...
      • Can you shrink a vmdk? Make a vmware hard disk sma...
      • IBM's customized vmware esxi iso
      • Can't increase the disk size of a vm
      • Cannot make a new resource pool or new vApp : gray...
      • Modifying VMware Syslog Collector settings : incre...
      • Migrating VMs : don’t use OVA/OVF?
      • HP blades: hardware hba iscsi causes PSOD (purple ...
      • Multiple datastores (VMFS) on a lun : vmware : not...
      • Unable to connect to the MKS: Failed to connect to...
      • vmware esxi and IBM x3850 M2 ESXi 5 host stops res...
    • ►  August (35)
    • ►  July (34)
    • ►  June (9)
Powered by Blogger.

About Me

Unknown
View my complete profile