esx

SQL, SAN , VMware and You

Rename VMDK files using the VMware CLI

VMware CLI command to rename VMDK files:

perl vmkfstools --server -E /vmfs/volumes/Test/rh6.2.vmdk  /vmfs/volumes/Test/testing2.vmdk

 

ESXi Command Line Start Guest VM

Get list of Guest VM IDs on host:
vim-cmd vmsvc/getallvms

Power on the virtual machine using the VMID found in Step 2 and run:
vim-cmd vmsvc/power.on <vmid>

Disable ESX/ESXi Application VSS Quiescing

Allow VSS application quiescing to work by generating Disk UUID/Serial number.

This can be achieved by leaving the disk.enableUUID value to true and power cycle of the virtual machine.

VMware ESX/ESXi command line reference on vDS Distributed Switch and vSwitch

Remove a PHY NIC from an UpLink in a vDS at the command line:

esxcfg-vswitch --list : Create a listing needed to get the reference for a vmnic's PortID#.

esxcfg-vswitch -V <vmnics PortID#> -Q <vmnic> <NAME of virtual Distributed Switch as it appears in vCenter inventory>

# esxcfg-vswitch -V 577 -Q vmnic1 NET2-N1K-VDS

Delete a Physical NIC from a standard virtual Switch on a Host:

CentOS 5/6 NFS serving to VMware ESX

[root ~]# yum -y install nfs-utils

[root ~]# vi /etc/idmapd.conf

 

# line 5: uncomment and change to your domain name

Domain = <yourdomain.com>

UCS Nexus 1000V VMware ESXi 5.1 and Windows 2008 R2 with VMXNET3 paravirtual adapter

Based on VMware Knowledge base articles 2020567 and 2039495

 

Operating System Specific Adapter Policies

Saving state of ESXi manually without reboot

You can trigger a save using:

/sbin/backup.sh 0

Normally this is called in /sbin/shutdown.sh., but you can call it manually:

~ # /sbin/backup.sh 0

Saving current state in /bootbank
Clock updated.
Time: 13:49:53   Date: 10/08/2010   UTC

ESXi Windows Server 2008 R2 Template creation

Get Windows Automated Installation Kit (AIK)


 

ESXi CLI vSwitch Command Notes

esxcfg-vswitch -a vSwitch0 <--Creates a standard vswitch called vSwitch0.
esxcfg-vswitch -l <--You'll need to get the port number of the vmnic you are removing.
esxcfg-vswitch -Q vmnic# -V <portnumber> <dvSwitch> <--This removes vmnic# fromport # from dvSwitchX
esxcfg-vswitch -L vmnic# vSwitch0 <--Adds vmnic# to vSwitch0

Pages

Subscribe to RSS - esx