Custom Search
Showing posts with label ESXi. Show all posts
Showing posts with label ESXi. Show all posts

Monday, September 9, 2013

How to Share a NFS Datastore Across vCenter ESXi Hosts

How to Share a NFS Datastore Across vCenter ESXi Hosts
1)
Select your First node (192.168.1.144) --> Configuration --> Storage --> Add Storage 
Select "Network File system" --> Fill "Server", "Folder" and "Datastore Name"
Example:
Server:192.168.1.24 (IP of NFS Server)
Folder:/mnt/sharing (Shared Location)
Datastore Name:myshaed-datastore



2)
Select your Secon node (192.168.1.26) --> Configuration --> Storage --> Add Storage 
Select "Network File system" --> Fill "Server", "Folder" and "Datastore Name"
Example:
Server:192.168.1.24 (IP of NFS Server)
Folder:/mnt/sharing (Shared Location)
Datastore Name:myshaed-datastore

3)
Verify the Storage configuration
Select "cluster" --> Storage Views --> Update Views

How to Migrate a VMware vCenter Virtual Machine with NFS Datastore

How to Migrate a VMware vCenter Virtual Machine with NFS Datastore
1)
Select your First node (192.168.1.144) --> Configuration --> Storage --> Add Storage 
Select "Network File system" --> Fill "Server", "Folder" and "Datastore Name"
Example:
Server:192.168.1.24 (IP of NFS Server)
Folder:/mnt/sharing (Shared Location)
Datastore Name:myshaed-datastore



2)
Select your Secon node (192.168.1.26) --> Configuration --> Storage --> Add Storage 
Select "Network File system" --> Fill "Server", "Folder" and "Datastore Name"
Example:
Server:192.168.1.24 (IP of NFS Server)
Folder:/mnt/sharing (Shared Location)
Datastore Name:myshaed-datastore

3)
Verify the Storage configuration
Select "cluster" --> Storage Views --> Update Views

4)
Select one node (192.168.1.26) and create VM with the datastore "myshaed-datastore".

5)
Right click on the VM and select "Migrate" 

Tuesday, September 3, 2013

How to add NFS Datastore for ESXi Server VMware vSphere

How to add NFS Datastore for ESXi Server VMware vSphere


 

How to add NFS Datastore for vCenter Server VMware vSphere

How to add NFS Datastore for vCenter Server VMware vSphere


Friday, March 15, 2013

How to Start or Stop VMware Web Service on ESXi host

1) SSH to ESXi host
#ssh root@esxi-host

2)  Stop Web Service
#/etc/init.d/hostd stop
Goto http://esxi-host for check

3)  Start Web Service
#/etc/init.d/hostd start
Goto http://esxi-host for check

Wednesday, February 13, 2013

How to use vmware-vmrc

How to use vmware-vmrc

1)
How to connect to ESXi host using vmware-vmrc


#vmware-vmrc -h 192.168.1.88
OR
#vmware-vmrc -h 192.168.1.88 -u root -p vmware123

-h 192.168.1.88 ===> IP of ESXi Host
-u root -p vmware123 ===> Username and Password of ESXi Host 192.168.1.88



2)
How to directly connect to a Virtual Machine using vmware-vmrc


#vmware-vmrc -h 192.168.1.88 -u root -p vmware123 -M 84

-h 192.168.1.88 ===> IP of ESXi Host
-u root -p vmware123 ===> Username and Password of ESXi Host 192.168.1.88
-M 84 ===> moid of VM

Sunday, February 10, 2013

VMware ESXi 5 How to Browse datastores

VMware ESXi 5 How to Browse datastores


Tuesday, February 5, 2013

VMware ESXi SSH CLI basic commands


vim-cmd vmsvc/getallvms
Lists all vm's running on hypervisor and provides vmid

vim-cmd vmsvc/power.off vmid
Powers off vmid referenced from getallvms command

vim-cmd vmsvc/power.on vmid
Powers off vmid referenced from getallvms command



vim-cmd vmsvc/power.reboot vmid
Reboots vmid referenced from getallvms command

vim-cmd vmsvc/destroy vmid
Deletes the vmdk and vmx files from disk

vim-cmd hostsvc/maintenance_mode_enter
Puts hypervisor into maintenance mode

vim-cmd hostsvc/maintenance_mode_exit
Takes hypervisor out of maintenance mode

vim-cmd solo/registervm /vmfs/vol/datastore/dir/vm.vmx
Registers vm in hypervisor inventory

vim-cmd vmsvc/unregister vmid
Unregisters vm with hypervisor

vim-cmd vmsvc/tools.install vmid
Starts vmware tools installation for VM

vim-cmd hostsvc/net/info
Provides information about hypervisor networking

chkconfig -l
Shows daemons running on hypervisor. Can also be used for configuration.

esxtop
Same as linux top for vmware

vmkerrcode -l
List of vmkernel errors

esxcfg-info
Lists a LOT of information about the esx host

esxcfg-nics -l
Lists information about NIC's. Can also be used for configuration.

esxcfg-vswitch -l
Lists information about virtual switching. Can also be used for configuration.

dcui
Provides console screen to ssh session

vsish
Vmware interactive shell

Inspired by article
http://robertbchase.blogspot.in/2008/12/vmware-esxi-ssh-cli-commands.html

Monday, February 4, 2013

vmware ESXi server How to copy file to datastore through Terminal or Command line




First Login to ESXi Server

Find location of datastore

Copy file to datastore