Thursday, August 21, 2008

VMware Notes

Enable root login:
----------------------
vi /etc/ssh/sshd_config PermitRootLogin yes

service sshd restart

vdf -h

vmware-cmd -l [to list the locations of the sever config files]

vmware-cmd [path to configfile] removesnapshots

# vdf -h
Filesystem Size Used Avail Use% Mounted on /dev/cciss/c0d0p2 4.9G 1.5G 3.2G 31% / /dev/cciss/c0d0p1 99M 30M 64M 32% /boot none 131M 0 131M 0% /dev/shm /dev/cciss/c0d0p6 2.0G 79M 1.8G 5% /var/log /vmfs/devices 812G 0 812G 0% /vmfs/devices /vmfs/volumes/45ae0d3f-918a774d-c934-0018fe7f5524 402G 151G 250G 37% /vmfs/volumes/45ae0d3f-918a774d-c934-0018fe7f5524 /vmfs/volumes/dd5fb8f1-41086e80 17G 14G 2.8G 83% /vmfs/volumes/dist


# vmware-cmd -l
/vmfs/volumes/45ae0d3f-918a774d-c934-0018fe7f5524/host1.host.org/host1.host.org.vmx
/vmfs/volumes/45ae0d3f-918a774d-c934-0018fe7f5524/host2.host.org/host2.host.org.vmx

# vmware-cmd ./host2.host.org.vmx removesnapshots



try doing the following:
ntpdate -q 65.17.128.4

If you get failures saying operation not permitted, check your firewall config a
gain:

esxcfg-firewall -q | grep 123

If ntp is enabled then you should see a line ending with

udp dpt:123

If you don't see this then check try running your

esxcfg-firewall -e ntpClient


edit /etc/ntp.conf -- add in "server pool.ntp.org"
ntpdate pool.ntp.org
hwclock --systohc
chkconfig --level 3 ntpd on
chkconfig --list ntpd
/etc/init.d/ntpd start


---------

esxcfg-firewall --AllowOutgoing
esxcfg-firewall --blockOutgoing

To scan a patch bundle depot:
esxupdate -d http://www.host.org/esx35/ scan

To install the patch bundle:
esxupdate -d http://www.host.org/esx35/ update

To query the installed patch bundle:
esxupdate query


To summarize a patch bundle:
esxupdate -d http://www.host.org/esx35 info

To run a test patch install:
esxupdate -d http://www.host.org/esx35 --test update

-this will speed up the actual patching because
it will create the patch cache

To run from the VIC, click on the Update Manager, select/configure
the baseline and select the server and remediate.
It does the following:

python /usr/sbin/esxupdate --HA --flushcache -d
http://192.168.1.1:80/vci/hostupdates/hostupdate/esx/esx-3.5.0 scan

python /usr/sbin/esxupdate --HA -d
http://192.168.1.1:80/vci/hostupdates/hostupdate/esx/esx-3.5.0
-b ESX350-200806201-UG --maintenancemode=1 --noreboot update


-----------------------

Linux VMWare Tools:
-------------------
-install the rpm
-as root run: vmware-config-tools.pl
-reboot
-then when you want to run the tools: vmware-toolbox &


---------------------------------

How to manage maintenance mode by the command line/through a
script/enter maintenance mode from the service console?

vimsh -n -e /hostsvc/maintenance_mode_enter
vimsh -n -e /hostsvc/maintenance_mode_exit


Remove BigFix:

# rpm -ev BESAgent-7.1.1.315

No comments: