Page tree
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

This page describe how to run electra.ova/electra.ovf virtual machine file on Windows, change it and save as OVF to import back to VMWare ESX infrastructure.

VMware Player version

How to start virtual machine in localhost from *.ova/*.ovf file:

  1. download electra.ova (TODO public location?)
  2. download VMware player for Windows 32-bit and 64-bit - in this example for backward compatibility with Virtual Hardware Version 8 we use Player 4.x
  3. install VMware-player-4.0.6-1035888.exe
  4. run VMWare Player from Start --> All Programs --> VMware
  5. click 'Open a Virtual Machine', change 'File of type' to 'All image files', browse electra.ova and Open
  6. set name of the new virtual machine (default electra) and browse a Storage where you convert *.ova (Open Virtual Machine Format Image) to *.vmx (VMWare Configuration File) - required approx. 12GB free space
  7. when you see an alert message about OVF specification conformance click 'Retry', importing takes a few minutes
  8. before you start new Virtual machine, check if you have correctly configured VMnet0 Network Connection for bridged networking
    1. see this video tutorial or:
    2. go to download folder
    3. run command 'VMware-player-4.0.6-1035888.exe /e extract' to extract *.exe content
    4. open/extract network.cab, copy vmnetcfg.exe to VMware Player instalation location
    5. run vmnetcfg.exe, choose VMnet0, change Bridged to: 'automatic' to your physical network connection (in my case 'Intel(R) 82579LM Gigabit Network Connection'), click 'Apply', (wait) and 'Ok'
  9. select your virtual machine, click 'Edit virtual machine settings'
  10. click 'Add' to add second network adapter (primary eth0 in ubuntu is configured to static IP adress), select 'Network Adapter', click 'Next >', choose 'Bridge' and click 'Finish' and 'OK'
  11. Play virtual machine, when Software Update dialog opened, click 'Remind Me Later'
  12. log in as ubuntu, password (TODO, is public?)
  13. to start network communication between your computer and virtual machine run these commands:
    1. sudo dhclient -r
    2. sudo dhclient -eth1
    3. ifconfig eth1 --> in section 'inet addr' see IP adress (in my case 192.168.0.109)
  14. in VMplayer window pres CTRL+ALT to go out, open in browser ip adress (in my cases http://192.168.0.109/ --> will redirected to midpoint login page) to start midpoint login page
  15. for more info see Live Demo
  16. to shut down virtual machine run 'sudo poweroff', VMware Player windows is closed

How to convert *.vmx to *.ovf

  1. download ovftool from VMWare. Install the software and after the installation:
  2. find your virtual machine working directory:
    1. run VMware Player
    2. select virtual machine
    3. click 'Edit virtual machine settings'
    4. click to tab 'Options', see 'Working directory'
  3. find your ovftool directory and run 'cmd'
  4. type ovftool "C:\the path to your VM\your VMname.vmx"  "c:\new directory\name.ovf"
  5. at the end you see 'completed successfully'
  6. it created also *.vmdk - VMware virtual disk file and *.mf checksums
  7. to import in ESX infrastructure you need to send/transfer *.vmdk and *.ovf files

Oracle VM VirtualBox version

When you develop and change a lot of configuration in demo virtual machine, the easiest way to backup and rollback to last valid state is using snapshots (saved virtual machine states).

VMware Player not support snapshots, but VirtualBox has this nice feature in runtime.

  1. download Oracle VM Virtualbox, install and run it.
  2. click File --> Import Appliance, browse electra.ova and click 'Next', and 'Import'.
  3. after finished, select new virtual machine and click to 'Settings' --> Network --> Adapter 2, check 'Enable Network Adapter', attached to 'Bridged Adapter' and click 'OK'
  4. see the 'Snapshots' button where you can Take, Restore or Delete a snapshot
  5. click on 'Start' to run the virtual machine
  6. Play virtual machine, when Software Update dialog opened, click 'Remind Me Later'
  7. log in as ubuntu, password (TODO, is public?)
  8. to start network communication between your computer and virtual machine run these commands:
    1. sudo dhclient -r
    2. sudo dhclient -eth1
    3. ifconfig eth1 --> in section 'inet addr' see IP adress (in my case 192.168.0.109)
  9. in VMplayer window pres left CTRL to go out, open in browser ip adress (in my cases http://192.168.0.109/ --> will redirected to midpoint login page) to start midpoint login page
  10. for more info see Live Demo
  11. to shut down virtual machine run 'sudo poweroff', VMware Player windows is closed

export to *.ova/*.ovf

In VirtualBox You can export Oracle virtual machine to *.ova/*.ovf format with snapshots. But in some cases VMWare ESX infrastructure not support correctly this feature. The solution is to clone the required snapshot state to a new virtual machine without snapshots and export this new virtual machine.

  1. run Oracle VM Virtualbox, select required virtual machine if you have more then one
  2. click to 'Snapshots' (right up corner)
  3. select the right snapshot to clone (for example 'Current State')
  4. right click and select 'clone...', enter new machine name (for example  'electra new'), click 'Next', select 'Full clone', click 'Next', select 'Current machine state' and click 'Clone'.
  5. select 'electra new',  run File --> Export Appliance and save as *.ova.
  6. to check correctness you need to import this to VMware Player, run it, check it and export it (see section 'VMware Player version') as *.ovf
    1. this workaround is tested with demo electra virtual machine and working well


 

 

  • No labels