Setup
Partitioning
Primary
/ 5120mbSwap 1600mb
/var 4096mb/home 4096mb/opt 2048mb/tmp 2048mb
Networking
Create vSwitch0 for Service Console access
esxcfg-vswif -d vswif0 esxcfg-vswitch -d vSwitch0 esxcfg-vswitch -a vSwitch0 esxcfg-vswitch -A "Service Console" vSwitch0 esxcfg-vswitch -L vmnic0 vSwitch0 esxcfg-vswitch -v <vlan id> -p "Service Console" vSwitch0 esxcfg-vswif -a vswif0 -i <ip address> -n <subnet mask> -p "Service Console"
Create vSwitch1 for IP based storage access (using Jumbo Frames)
esxcfg-vswitch -a vSwitch1 esxcfg-vswitch -m 9000 vSwitch1 esxcfg-vswitch -A VMkernel vSwitch1 esxcfg-vmknic -a -i <ip address> -n <subnet mask> -m 9000 VMkernel esxcfg-vswitch -v <vlan id> -p VMkernel vSwitch1 esxcfg-vswitch -L vmnic1 vSwitch1
Configure gateway for Service Console:
nano /etc/sysconfig/network-scripts/ifcfg-vswif0
add: “GATEWAY=10.10.10.1″ at the bottom
service network restart
Configure vSwitch load balancing policy for ip hash:
vmware-vim-cmd /hostsvc/net/vswitch_setpolicy –nicteaming-policy=loadbalance_ip vSwitch1
To set it back to route based on originating virtual port ID:
vmware-vim-cmd /hostsvc/net/vswitch_setpolicy –nicteaming-policy=loadbalance_srcid vSwitch1
Host Specific Configuration
Disable ctrl-alt-del from rebooting box
1. vi /etc/inittab
2. Comment the following line:
# ca::ctrlaltdel:/sbin/shutdown -t3 -r now
3. init q
Disable VMFS2 module if not accessing VMFS2 volumes:
nano /etc/rc.d/rc.local
add the following at the end:
vmkload_mod -u vmfs2
vCenter Specific Configuration
Sysprep files required for Guest Customization
Note: For Server 2008 the sysprep location is: C:\Users\All Users\VMware\VMware VirtualCenter\sysprep
Configure the following NTP servers:
0.us.pool.ntp.org
1.us.pool.ntp.org
2.us.pool.ntp.org
Host Specific Commands
Enter maintenance mode:
vimsh -n -e /hostsvc/maintenance_mode_enter
Exit mainteance mode:
vimsh -n -e /hostsvc/maintenance_mode_exit
Guest Specific Commands
Network Specific Commands
Storage Specific Commands
Popularity: 3% [?]




