Posts Tagged ‘vsphere’

vSphere Disabling Memory Compression

ESXi 4.0 Crash

ESXi 4.0 Crash

Solution…
Advanced Settings
Memory
Mem.MemZip
0

Posted: April 4th, 2011
Categories: esx-esxi, vmware, vsphere
Tags: ,
Comments: No Comments.

Upgrading ESXi 4.0 to 4.1 via CLI

Download 4.0 to 4.1 zip file from VMware Updates
vim-cmd /hostsvc/maintenance_mode_enter
vim-cmd /hostsvc/runtimeinfo | grep inMaintenanceMode
vihostupdate --server IP_ADDRESS --query
vihostupdate --server IP_ADDRESS --metadata=http://WEB_SERVER/bundle/metadata.zip --list
vihostupdate --server IP_ADDRESS --metadata=http://WEB_SERVER/bundle/metadata.zip --install
vihostupdate --server IP_ADDRESS --query
reboot
vim-cmd /hostsvc/runtimeinfo | grep inMaintenanceMode
vim-cmd /hostsvc/maintenance_mode_exit
Posted: April 4th, 2011
Categories: esx-esxi, virtualization, vmware
Tags: ,
Comments: No Comments.

Updating ESXi with the vSphere CLI

Performed from a Linux host.

  1. Download patch from http://vmware.com/patch/download on a webserver
  2. Extract the contents of the patch
  3. Check the bundles currently applied to the host
  4. List the bundles available from the patch
  5. Install the patch to include all the bundles or for a specific bundle use -B
  6. Verify the bundles have been applied to the host
vihostupdate --server IP_ADDRESS --query
vihostupdate --server IP_ADDRESS --metadata=http://WEB_SERVER/bundle/metadata.zip --list
vihostupdate --server IP_ADDRESS --metadata=http://WEB_SERVER/bundle/metadata.zip --install
vihostupdate --server IP_ADDRESS --query
Posted: March 25th, 2011
Categories: esx-esxi, vmware, vsphere
Tags: ,
Comments: No Comments.

VMware ESXi Virtual Machine Datastore Migration via Command Line

* Assumes the source and target datastores are present.
* Assumes VMs are powered off.

vim-cmd vmsvc/getallvms | grep -i <vm>
vim-cmd vmsvc/unregister <vmid>
mv /vmfs/volumes/<datastore-source>/<vm-folder> /vmfs/volumes/<datastore-target>/.
vim-cmd solo/registervm /vmfs/vol/<datastore-target>/<vm-folder>/<vm>.vmx # shows vmid upon success
vim-cmd vmsvc/power.on <vmid>
vim-cmd vmsvc/message <vmid>
vim-cmd vmsvc/message <vmid> 0 1
vim-cmd vmsvc/power.getstate <vmid>
Posted: March 9th, 2011
Categories: esx-esxi, virtualization, vmware
Tags: , , , , ,
Comments: No Comments.