To fix this set the environment variable VMWARE_JAVA_HOME to proper path:
– SSH to vcenter # vi /usr/lib/vmware-vsphere-client/server/wrapper/conf/wrapper.conf
– Under Environment variables add: set.default.VMWARE_JAVA_HOME=/usr/java/jre-vmware
– Restart vsphere-client # /etc/init.d/vsphere-client restart
Stopping VMware vSphere Web Client...
Stopped VMware vSphere Web Client.
Starting VMware vSphere Web Client...
Intializing registration provider...
Getting SSL certificates
Service with name was updated.
Return code is: Success
Waiting for VMware vSphere Web Client......
In case you see an error: “Permission to perform this operation was denied”, right click and run the program as Administrator.
Provide the source and destination information, the source is the physical server to be converted and the destination vCenter.
Follow the steps, to do the conversion , a temporary OS will be started on the destination, by default it try to get an IP address from the DHCP server so that it can connect to the source machine and fetch the files required. But in case if you don’t have DHCP server you might see error like: “Unable to obtain the IP address of the helper virtual machine” . Fix this issue by setting up a static IP to the helper virtual machine during the conversion setup. Basically the helper VM IP should be able to communicate with the source machine which needs to be migrated
vCenter Converter Static IP
Proceed with the conversion, the duration will be based on the size of the VM and the connectivity if it belongs to another site/LAN.
You may need to change the network configuration (eg: HWADDR) and the MAC address mapping (/etc/udev/rules.d) to get it connected.
You can use the host-only-adapter networking, if you require the virtual machine to be accessible only from the host machine. In this case your virtual machine will not have access to anywhere outside the host. Read more about virtual box networking at http://www.virtualbox.org/manual/ch06.html
On the other hand NAT enabled interface can communicate with clients outside the host, but the host cannot access the services on the virtual machine directly. We need to enabled port forwarding with NAT interface to achieve this.
If you need to have ssh accessible from host machine to virtual machine,
These rules will be added to the .VirtualBox/Machines/machine_name/machine_name.xml file like: < Forwarding name="openssh" proto="1" hostip="127.0.0.1" hostport="2222" guestip=10.0.2.20 guestport="2222"/>
You can forward connection to any port on virtual host like this.
Make sure that the virtual machine interface is closed and the vm is not running while you change it, otherwise the changes will not take effect.