Vmware commands ESXi

Log Files:

/var/log/auth.log – All events related to authentication for the system.

In addition to the above, every Virtual Machine hosted on ESXi will have corresponding VM log files called vmware.log recording events related to machine activity, system failures, hardware changes, migrations, status and so on. To view the log file, SSH to the ESXi host and navigate to the datastore on which the VM folder resides.

The path to the log file should be similar to /vmfs/volumes///vwmare.log.

There are some adjustments you can make to the log rotation and logging options for a VM. Disable or enable logging: Set the logging value in the VM’s VMX file to false or true respectively. You can do this by editing the VM’s settings (VM Options -> Advanced -> Edit Configuration) in vSphere Web client as shown.

Install vmware tools on CentOS 7 VM

Install the opem-vm-tools:

# yum install open-vm-tools
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: repos.dfw.quadranet.com
 * epel: mirrors.develooper.com
 * extras: mirror.chpc.utah.edu
 * updates: mirror.chpc.utah.edu
Resolving Dependencies
--> Running transaction check
---> Package open-vm-tools.x86_64 0:10.1.5-3.el7 will be installed
--> Processing Dependency: xmlsec1-openssl for package: open-vm-tools-10.1.5-3.el7.x86_64
--> Processing Dependency: pciutils for package: open-vm-tools-10.1.5-3.el7.x86_64
--> Processing Dependency: net-tools for package: open-vm-tools-10.1.5-3.el7.x86_64
--> Processing Dependency: libfuse.so.2(FUSE_2.6)(64bit) for package: open-vm-tools-10.1.5-3.el7.x86_64
--> Processing Dependency: libfuse.so.2(FUSE_2.5)(64bit) for package: open-vm-tools-10.1.5-3.el7.x86_64
--> Processing Dependency: fuse for package: open-vm-tools-10.1.5-3.el7.x86_64
--> Processing Dependency: libxmlsec1.so.1()(64bit) for package: open-vm-tools-10.1.5-3.el7.x86_64
--> Processing Dependency: libmspack.so.0()(64bit) for package: open-vm-tools-10.1.5-3.el7.x86_64
--> Processing Dependency: libicuuc.so.50()(64bit) for package: open-vm-tools-10.1.5-3.el7.x86_64
--> Processing Dependency: libicui18n.so.50()(64bit) for package: open-vm-tools-10.1.5-3.el7.x86_64
--> Processing Dependency: libicudata.so.50()(64bit) for package: open-vm-tools-10.1.5-3.el7.x86_64
--> Processing Dependency: libfuse.so.2()(64bit) for package: open-vm-tools-10.1.5-3.el7.x86_64
--> Processing Dependency: libdnet.so.1()(64bit) for package: open-vm-tools-10.1.5-3.el7.x86_64
--> Running transaction check
---> Package fuse.x86_64 0:2.9.2-8.el7 will be installed
---> Package fuse-libs.x86_64 0:2.9.2-8.el7 will be installed
---> Package libdnet.x86_64 0:1.12-13.1.el7 will be installed
---> Package libicu.x86_64 0:50.1.2-15.el7 will be installed
---> Package libmspack.x86_64 0:0.5-0.5.alpha.el7 will be installed
---> Package net-tools.x86_64 0:2.0-0.22.20131004git.el7 will be installed
---> Package pciutils.x86_64 0:3.5.1-2.el7 will be installed
---> Package xmlsec1.x86_64 0:1.2.20-7.el7_4 will be installed
---> Package xmlsec1-openssl.x86_64 0:1.2.20-7.el7_4 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================================================================================
 Package                             Arch                       Version                                       Repository                   Size
================================================================================================================================================
Installing:
 open-vm-tools                       x86_64                     10.1.5-3.el7                                  base                        663 k
Installing for dependencies:
 fuse                                x86_64                     2.9.2-8.el7                                   base                         85 k
 fuse-libs                           x86_64                     2.9.2-8.el7                                   base                         93 k
 libdnet                             x86_64                     1.12-13.1.el7                                 base                         31 k
 libicu                              x86_64                     50.1.2-15.el7                                 base                        6.9 M
 libmspack                           x86_64                     0.5-0.5.alpha.el7                             base                         64 k
 net-tools                           x86_64                     2.0-0.22.20131004git.el7                      base                        305 k
 pciutils                            x86_64                     3.5.1-2.el7                                   base                         93 k
 xmlsec1                             x86_64                     1.2.20-7.el7_4                                updates                     177 k
 xmlsec1-openssl                     x86_64                     1.2.20-7.el7_4                                updates                      76 k

Transaction Summary
================================================================================================================================================
Install  1 Package (+9 Dependent packages)

Total download size: 8.4 M
Installed size: 29 M

Continue reading Install vmware tools on CentOS 7 VM

Tools and how to wget files on ESXI

Tools and utilities is available on ESXi, – busybox executable

~ # /usr/lib/vmware/busybox/bin/busybox --list
[
[[
addgroup
adduser
ash
awk
basename
cat
chgrp
chmod
chown
chvt
cksum
clear
cp
crond
cut
date
dd
delgroup
deluser
diff
dirname
dnsdomainname
du
echo
egrep
eject
env
expr
false
fdisk
fgrep
find
getty
grep
groups
gunzip
gzip
halt
head
hexdump
hostname
inetd
init
kill
ln
logger
login
ls
lzop
lzopcat
md5sum
mkdir
mkfifo
mknod
mktemp
more
mv
nohup
nslookup
od
passwd
poweroff
printf
readlink
reboot
reset
resize
rm
rmdir
sed
seq
setsid
sh
sha1sum
sha256sum
sha512sum
sleep
sort
stat
stty
sum
sync
tail
tar
tee
test
time
timeout
touch
true
uname
uniq
unlzop
unzip
usleep
vi
watch
wc
wget
which
who
xargs
zcat

How to wget from a ISO source:

# cd /vmfs/volumes/datastore_name_here

Load 2012 into the data store

# wget cd http://care.dlservice.microsoft.com/dl/download/6/2/A/62A76ABB-9990-4EFC-A4FE-C7D698DAEB96/9600.17050.WINBLUE_REFRESH.140317-1640_X64FRE_SERVER_EVAL_EN-US-IR3_SSS_X64FREE_EN-US_DV9.ISO

R1Soft Backup on SAN Storage on ESXi

Set up the backups:

http://wiki.r1soft.com/display/ServerBackup/Documentation

Connect your NAS to your master VM. All other VM’s will connect to the master to backup there. Your VM’s will need to connect to your private network so each VM will need two NIC’s.

The SAN is attached to the hypervisor (ESXi) and then you can add a virtual disk to the machine that is going to act as the backup server.

IE, create a datastore to be able to then allocate the diskspace to the backup server VM:

http://pubs.vmware.com/vsphere-51/topic/com.vmware.vsphere.storage.doc/GUID-7EB0CE06-02DD-4B31-85C7-E54993CC06DC.html