20120424: Ports needed for Veeam Replication
See http://www.veeam.com/KB1518
443 Default VMware web service port
902 VMware data mover port
20120320: ESX/ESXi 4.x Reloading VM Configuration (for some vm-power-on-fails issue)
See http://kb.vmware.com/kb/1006232
# vmware-vim-cmd vmsvc/getallvms
# vmware-vim-cmd vmsvc/reload VMID
(on ESXi substitute vim-cmd for vmware-vim-cmd)
20120319: Commands to Monitor Snapshot Deletion
See http://kb.vmware.com/kb/1007566
In ESXi 4.1
either # watch "ls -luth *.vmdk"
or if too many snapshots # while true;do date;ls -lht *vmdk|head -10;echo ______;sleep 3;done
20120315: Error when click hyperlink in Outlook "Operation has been cancelled due to restrictions..."
See http://support.microsoft.com/kb/310049
Includes check if String (Default) value of HKEY_CLASSES_ROOT \.html is "htmlfile"
20120313: Windows 7 Event 1511 User Profile Service (caused when local profile is manually deleted)
http://support.microsoft.com/kb/947215
1: Registry Editor: HKEY_LOCAL_MACHINE > SOFTWARE > Microsoft > Windows NT > CurrentVersion > ProfileList
2: Find the folder name starting with S-1-5 that corresponds to the user account profile that has the error.
3: The folder with .bak needs to be renamed removing the .bak from the end.
4: Set RefCount value = 0
5: Set State value = 0
6: Close Registry Editor, restart computer, and login!
20120226: Enable Bitlocker with USB on Windows 7 system without TPM
gpedit.msc > Computer Configuration > Administrative Templates > Windows Components > BitLocker Drive Encryption > Operating System Drives > Require Additional Authentication at Startup > Enable.
20120124: XenServer 6 – some openvswitch commands (used when looking at ovs-vswitchd high CPU in top)
20111229: Windows 7 Service Pack Cleanup
dism /online /cleanup-image /spsuperseded
20111201: Determining which memory slots are populated inside a VMware ESXi host using command lineSee http://www.veeam.com/KB1518
443 Default VMware web service port
902 VMware data mover port
20120320: ESX/ESXi 4.x Reloading VM Configuration (for some vm-power-on-fails issue)
See http://kb.vmware.com/kb/1006232
# vmware-vim-cmd vmsvc/getallvms
# vmware-vim-cmd vmsvc/reload VMID
(on ESXi substitute vim-cmd for vmware-vim-cmd)
20120319: Commands to Monitor Snapshot Deletion
See http://kb.vmware.com/kb/1007566
In ESXi 4.1
either # watch "ls -luth *.vmdk"
or if too many snapshots # while true;do date;ls -lht *vmdk|head -10;echo ______;sleep 3;done
20120315: Error when click hyperlink in Outlook "Operation has been cancelled due to restrictions..."
See http://support.microsoft.com/kb/310049
Includes check if String (Default) value of HKEY_CLASSES_ROOT \.html is "htmlfile"
20120313: Windows 7 Event 1511 User Profile Service (caused when local profile is manually deleted)
http://support.microsoft.com/kb/947215
1: Registry Editor: HKEY_LOCAL_MACHINE > SOFTWARE > Microsoft > Windows NT > CurrentVersion > ProfileList
2: Find the folder name starting with S-1-5 that corresponds to the user account profile that has the error.
3: The folder with .bak needs to be renamed removing the .bak from the end.
4: Set RefCount value = 0
5: Set State value = 0
6: Close Registry Editor, restart computer, and login!
20120226: Enable Bitlocker with USB on Windows 7 system without TPM
gpedit.msc > Computer Configuration > Administrative Templates > Windows Components > BitLocker Drive Encryption > Operating System Drives > Require Additional Authentication at Startup > Enable.
20120124: XenServer 6 – some openvswitch commands (used when looking at ovs-vswitchd high CPU in top)
echo "NR_DOMAIN0_VCPUS=1" > /etc/sysconfig/unplug-vcpus
/etc/init.d/openvswitch restart
20111229: Windows 7 Service Pack Cleanup
dism /online /cleanup-image /spsuperseded
20111221: Test for HTTP / HTTPS connectivity to vSphere vCenter / Host
*Tested works for vSphere 4 & 5
http://IPADDRESSorDNSNAMEofVCENTERorHOST/mob
And login with vCenter or Host (root) credentials to display the mob page
Note: http redirects to https if the proxy.xml file is set for httpsWithRedirect. Test works with http and https.
20111209: How to Reboot or Reset a HA Protected VM (HVM) on a Citrix XenServer Host
1 - "xe vm-list" to get the uuid of the VM that is hung
2 - "list_domains" to list the domain uuid's so you can determine the domain # of the VM above by matching the uuids from this output with the uuid for your VM from the previous command.
3 - "/opt/xensource/debug/destroy_domain -domid XX" where XX is the domain number from the previous command
(note: if you don’t run 2 and 3 in a HA environment, you get the error "The operation could not be performed because a domain still exists for the specified VM")
4 - "xe vm-reboot uuid=XXXX --force" where XXXX is the uuid from the first vm-list command for your VM (or “xe vm-reset-powerstate=XXXX --force")
20111208: Enabling Remote SSH on a vSphere 5 Host
Host -> Configuration -> Security Profiles -> Services -> Properties -> SSH -> Options -> Start
Host -> Configuration -> Security Profile -> Firewall -> Properties -> Secure Shell: SSH Server -> Options -> Start
*Applies to ESXi 4.X and 5.X
~ # cim-diagnostic.sh > mem.out
~ # less -i mem.out
/PhysicalMemory
*Scroll down making a note of which DIMMs are listed as being populated
Windows Server 2008
Installing Remote Server and Administration Tools (Vista / Windows 7)
i: Download and install Remote Server and Administration Tools from Microsoft
ii: Control Panel -> Programs and Features -> Turn Windows features on or off -> Tick Remote Server Administration Tools and required options
Historical Notes: Exchange 2007
Setting Identities for use with Outlook Anywhere (on CAS server):
Get-ClientAccesServer | FL
Set-ClientAccessServer -Identity "mbx1" –AutodiscoverServiceInternalURI https://nlb.nwtraders.msft/autodiscover/autodiscover.xml
Get-WebServicesVirtualDirectory | FL
Set-WebServicesVirtualDirectory -Identity "mbx1\EWS (Default Web Site)" –InternalUrl https://nlb.nwtraders.msft/EWS/Exchange.asmx
Get-OABVirtualDirectory | FL
Set-OABVirtualDirectory -Identity “mbx1\OAB (Default Web Site)” -InternalURL https://nlb.nwtraders.msft/OAB
Enable-OutlookAnywhere -Server mbx1 -ExternalHostname “nlb.nwtraders.msft” -ClientAuthenticationMethod “NTLM”
Get-ActiveSyncVirtualDirectory | FL
Set-ActiveSyncVirtualDirectory -Identity “mbx1\Microsoft-Server-ActiveSync (Default Web Site)” -InternalURL https://nlb.nwtraders.msft/Microsoft-Server-Activesync
*Can substitute ExternalURL for InternalURL in the above
Historical Notes: ESX 3.5
Enable root SSH login on an ESX host:
Either create a user and 'Grant shell access' to the user via the VI Client, login to SSH using that account, and “su –” to switch to root user.
or access CLI via console connection using iLO/ DRAC/ KVM/ ….
nano /etc/ssh/shhd_config
Edit the line that starts with PermitRootLogin and change the no to yes.
Press Ctrl-O and then Enter to save the file. Exit with Ctrl-X.
service sshd restart
Restart Management Agents on ESX host:
service mgmt-vmware restart
Some Deletables:
vmware-XX.log (vmware.log is the active log)
.vmss (these files are generated when the VM is suspended, so if the VM is not currently in a suspended state then safe to delete)
...-zdump.XXX (dump files generated when a guest hangs)
vmware-XX.log.vzsnp (vRanger copies of all files under 1MB that get left behind if a backup job does not complete.)