VMware

VIZZ.INFO

VMware Virtualisation Information from the creators of VIZZ.INFO

6 Posts tagged with the sysadmin tag
0

VMware Server Minimal VM User Roles & Permissions


http://farm4.static.flickr.com/3313/3295210693_e2952914df.jpg

http://farm4.static.flickr.com/3394/3295210781_aeb80e0524.jpg

http://farm4.static.flickr.com/3446/3296036198_281e9f3d57.jpg

http://farm4.static.flickr.com/3560/3296036286_818a1a5b9d.jpg

0 Comments Permalink
0

http://vizz.info/2006/08/vmware-vi3-esx3-has-arrived/

vmsnap and vmrestore that were used on ESX 2.x to backup (snap) and restore virtual machines & vmdk’s have been replaced in ESX 3.x with the vcbMounter and vcbRestore commands

0 Comments Permalink
0

VI / ESX 3 VM file naming tips

Posted by osde.info Feb 20, 2009

VMware VI / ESX VM & VMDK file naming tips

1) avoid spaces and brackets ( ) and other nasty characters in .vmx and .vmdk names
2) use a common suffix for each VM's name, vm.vmx, /vmfs/vm subdirectory AND vm.vmdk disks !

ie
orac
/vmfs/volume/storage/orac/
orac.vmx
oraca.vmdk
oracb.vmdk

3) give real names to VMDKS instead of accepting default _N suffix

ie
DISKC.VMDK
DISKD.VMDK
DISKE.VMDK

or
diskos.vmdk
disksw.vmdk
diskdb.vmdk

0 Comments Permalink
2

PHASE 1

  • Setup NFS
  • Setup SSH RSA login
  • Setup mailx
  • Setup host,username,password in /etc/vmware/backuptools.conf

PHASE 2

Create vcbBack.sh (on masteresx)

#
VMIMBK=/vmimages/vmbk
mount slaveesx:$VMIMBK $VMIMBK
rm -rf $VMIMBK/$1
vcbMounter -a name:$1 -r $VMIMBK/$1
umount $VMIMBK

Create vcbRes.sh (on slaveesx)

#
VMIMBK=/vmimages/vmbk
CATALOG=$VMIMBK/$1/catalog
echo $CATALOG
sed 's/masteresx\.com/slaveesx\.com/' $CATALOG > $CATALOG.rest
vcbRestore -s $VMIMBK/$1 -a $CATALOG.rest -b overwrite

Create vcbCron.sh (on masteresx)

#

/root/vcbBack.sh $1
ssh slaveesx -c "/root/vcbRest.sh $1"

Create cronjob

#
0 * * * * /root/vcbCron.sh myvm1 | smtp=upstream /usr/local/bin/mailx -s "<subject>" <name@domain>


Sit back and enjoy being a SysAdmin

2 Comments Permalink
0

VMware Player manual Virtual Network VMnet1 & VMnet8 subnet configuration to prevent/resolve any conflicts with you LANs subnet !

RUN
===
C:\Program Files\VMware\VMware Player\vmnetcfg.exe

DHCP TAB
========
VMnet1 | STOP | APPLY
VMnet8 | STOP | APPLY

Host Virtual Network Mapping TAB
================================
VMnet1 > Subnet 192.168.201.0 > Apply
VMnet1 > DHCP 192.168.201.0
VMnet8 > Subnet 192.168.208.0 > Apply
VMnet8 > DHCP 192.168.208.0

DHCP TAB
========
VMnet1 | START | APPLY
VMnet8 | START | APPLY

DOS
===
C:> IPCONFIG

Ethernet adapter VMware Network Adapter VMnet8:

Connection-specific DNS Suffix . :
IP Address. . . . . . . . . . . . : 192.168.208.1
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . :

Ethernet adapter VMware Network Adapter VMnet1:

Connection-specific DNS Suffix . :
IP Address. . . . . . . . . . . . : 192.168.201.1
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . :

0 Comments Permalink
1


For example in a GNU/Linux VM

jumproot.vmdk

jumpswap.vmdk

jumpvari .vmdk

and then after you've done an initial backup snap of all the disks with vmbk.pl you can choose NOT to back up the swap area / disk / space in your hourly, daily, weekly backup cron jobs

You also get increased flexibility to resize it if you require without any impact to any other volumes or partitions

1 Comments Permalink
Click to view osde.info's profile Member since: Jan 25, 2005

VMware Virtualisation Information from the creators of VIZZ.INFO

View osde.info's profile

Communities