– Create a new user in ESXi with no access privilege, you need to login to the ESXi directly to do that.
– Enable SSH, and add nagios user to root group: # vi /etc/group
root:x:0:root,nagios
– Check from the command line, if it works ./check_esxi_hardware.py --host https://esxihost:5989 --user file:credentials.txt --pass file:credentials.txt
OK - Server: Cisco Systems Inc.....
– Configure the credentials files to use the nagios user credentials.
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......
running: PID:
Download and install vCenter Converter on a windows machine. http://www.vmware.com/products/converter
Unfortunately this tool does not have a Linux / MAC version.
vCenter Converter
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.
vCenter Converter
vCenter Converter
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.
– Download the openfiler installation ISO , download link
I have downloaded the Installation ISO image (x86/64).
Basically we need to create open filer as a virtual machine with say 20 GB thin provisioning, and attach another disk/datastore to the virtual machine to configure it as SAN.
– Download and install the Installation ISO image (x86/64) as a virtual machine, noting fancy here just do a normal installation.
– Once rebooted you get a web interface to login on port 446, https://< ip > :446/
– Login with username: openfiler, and password: password
Network access configuration:
set up network access configuration, enter the Network/Host , who are allowed to access.
System –> Network Access Configuration
Network Access ConfigNetwork Access Config
Create a new physical volume
Volumes –> Block devices
Create Physical Volume
Click on Edit devices on the hard disk where we going to create new physical volume, this is the extra hard drive we added to the virtual machine at the beginning. (/dev/sdb)
Create Physical Volume
Select Physical volume as your partition type ( assuming that you are not using RAID), and set the mode to Primary, click create.
Create Physical Volume
Create new Volume Group
Let us create a volume group for the physical volumes
Volumes –> Volume groups , enter a group name and select the physical drive and click Add volume
Create volume group
Create volume group
Create the Volume
Volume –> Add Volume
Enter Volume Name , Description, required space and select File System block.