Page tree

Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Modification of steps for exporting .ovf, .ova file from VirtualBox and Vmware Player. Added steps for how to set up custom login page and google analytics code.


  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. latest version of ovftool use SHA256 hash algorithm so you need to override the default hashing algorithm when exporting
    1. --shaAlgorithm=sha1
  5. type ovftool --shaAlgorithm=sha1 "C:\the path to your VM\your VMname.vmx"  "c:\new directory\name.ovf"  (or name.ova)
  6. at the end you see 'completed successfully'
  7. it created also *.vmdk - VMware virtual disk file and *.mf checksums
  8. to import in ESX infrastructure you need to send/transfer *.vmdk and *.ovf files  (or *.ova)


  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
  9. set IP address and netmask for eth1 (if your IP is you have to set 

    1. sudo ifconfig eth1 netmask up

  10. in VMplayer window pres left CTRL to go out, open in browser ip adress (in my cases --> will redirected to midpoint login page) to start midpoint login page
  11. for more info see Live Demo
  12. to shut down virtual machine run 'sudo poweroff', VMware Player windows is closed


  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

How to downgrade VMWare version (*.vmx)


  1. Open VMWare vCenter Converter Standalone client
  2. click to 'Convert maschine'
  3. browse Virtual machine file what you need to convert (VMware Player virtual machine directory when we get an error message "The configuration file *.vmx was created by a VMware product that is incompatible with this version of VMware Player and cannot be used.")
  4. click next >, select VMware product: VMware Player 4.0.x, set virtual machine name and new location, click next >, next >, Finish
  5. converting is started, you can see actual status

How To Set Up Custom Login Page And Google Analytics Code

  1. open:
    1. see: PageLogin.html, PageBase.html
  2. For Custom Login Page:
    1. navigate to: sudo vim /var/lib/tomcat8/webapps/midpoint/WEB-INF/classes/com/evolveum/midpoint/web/page/login/PageLogin.html
    2. add snippet surrounded by <!-- begin changes --> ... <!-- end changes -->
  3. For Google Analytics code:
    1. navigate to: sudo vim /var/lib/tomcat8/webapps/midpoint/WEB-INF/classes/com/evolveum/midpoint/gui/api/page/PageBase.html
    2. add snippet surrounded by <!-- begin changes --> ... <!-- end changes -->


How to upgrade electra demo from VirtualBox