Archive for the ‘VMware’ Category

How to fix networking after cloning an Ubuntu 8 VM

Tuesday, May 19th, 2009

Stolen from: http://weblog.jamisbuck.org/2008/8/15/cloning-ubuntu-hardy-image-in-vmware-fusion

* “sudo hostname blah”, to set the hostname. This doesn’t change it permanently, so you’ll also want to:
* “sudo vim /etc/hostname”. Change the contents of the file to the hostname you want. Then:
* “sudo vim /etc/hosts”. Replace all mentions of the old hostname with the new hostname.
* “sudo vim /etc/udev/rules.d/70-persistent-net.rules”. There will be two entries in this file. The first points eth0 at the old MAC address, and the second points eth1 at the new. Go ahead and delete the first entry, and change “eth1” to “eth0” in the second (and now only) entry.
* “sudo shutdown -r now” to restart your virtual machine.

HOWTO set debug logging for QLogic

Tuesday, October 21st, 2008

esxcfg-module –s “extended_error_logging=2” <qladriver>

http://communities.vmware.com/message/782916

modinfo /usr/lib/vmware/vmkmod/qla4022.o

HOW TO register all VMs through command line

Tuesday, October 21st, 2008

find /vmfs/volumes/ -name ‘*.vmx’ -exec vmware-cmd -s register {} \;

HOW TO move ESX hosts between clusters without maintenance mode

Tuesday, October 21st, 2008

***this may not be a good idea

1. Disconnected ESX host from VC
2. Remove from VC (may hang VC temporarily (in the few minute range, operation may time out) re-log back into VC, once you are able to it host should be gone from the cluster
3. Re-add to VC under new cluster

Could not destroy the res pool hierarchy on the host.  The host /vpx/host/#18245 is not reachable.

HOW TO force VirtualCenter to load after SQL Server on the same system

Tuesday, October 21st, 2008

http://support.microsoft.com/kb/193888

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\<Service name>

<Service name> = vpxd for VirtualCenter
modify the DependOnService key and add MSSQLSERVER

ESX 3.x – HOW TO enable hostd debug logging

Tuesday, October 21st, 2008

<log>
<directory>/var/log/vmware/</directory>
<name>hostd</name>
<outputToConsole>false</outputToConsole>
<level>info</level>
<maxFileSize>5242880</maxFileSize>
<maxFileNum>5</maxFileNum>
</log>

HOWTO set ESX advanced settings through commandline

Tuesday, October 21st, 2008

esxcfg-advcfg –set 5 /Mem/VMOverheadGrowthLimit

/proc/vmware/config/Mem/VMOverheadGrowthLimit

HOW TO PSOD an ESX host

Tuesday, October 21st, 2008

This can be done using vsish: ’set /reliability/crashMe/Panic’.

ls -l /scripts/support/bin/vsish*

HOW TO manually create VMFS volume

Tuesday, October 21st, 2008

vmkfstools -C vmfs3 -S “storage” /vmfs/devices/disks/vmhba0:0:0:9

HOW TO enable verbose logging on ESX

Tuesday, October 21st, 2008

/proc/vmware/config/Misc/ProcVerbose