Vmware

From My Mnemonic Rhyme
Revision as of 15:03, 28 January 2012 by >Homaar (→‎Links)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Links

VMware Server 2.0

Debian Upgrade VMware Server 2.0

Nach dem Debian Upgrade kann man folgendem Guide folgen: http://radu.cotescu.com/how-to-install-vmware-server-kernel-2-6-35/

Vmware Tools unter Linux

apt-get install autoconf automake binutils cpp gcc linux-headers-$(uname -r) make psmisc
mount /dev/cdrom /mnt/
tar -C /tmp -zxvf /mnt/VMwareTools*
umount /mnt
cd /tmp/vmware-tools-distrib
./vmware-install.pl

Initrd Problematik bei RedHat Virtualisierung

http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1002402

ghettoVCB Ghetto Script

Vorsicht bei Initalsicherungen!

http://www.virtuallyghetto.com/2010/05/vsphere-esx-40-crash-vm-bug.html

Der Link zum aktuellen VMware Ghettoscript:

ESXi Backup 4.1 und 5.0

http://communities.vmware.com/docs/DOC-8760 http://communities.vmware.com/docs/DOC-9843

[vi-admin@scofield ~]$ tar -zxvf ghettoVCBg2.tar.gz
ghettoVCBg2/
ghettoVCBg2/ghettoVCBg2-vm_backup_configuration_template
ghettoVCBg2/ghettoVCBg2.pl

Features

   * Support for logging (normal & verbose)
   * Single VM backup list across multiple ESX/ESXi host(s)
   * Credential-less backups (so long as host(s) are being managed by VIMA/vMA)
   * Online back up of VM(s)
   * Only valid VMDKs presented to the VM will be backed up
   * Support for multiple VMDK backup per VM
   * Preserve original powerState of VM(s)
   * Ability to shutdown guestOS, initiate backup process and power on VM afterwards with the option of hardpower timeout
   * Ensure that snapshot removal process completes prior to continuing the backup process
   * VM(s) that initially contain snapshots and Physical RDMs (raw device mapppings) will not be backed up
   * Support for VM(s) with Virtual RDMs
   * Ability to specify the number of backup rotations per VM
   * Output back up VMDKs in ZEROEDTHICK (default behavior), EAGERZEROEDTHICK, 2GB SPARSE or THIN format
   * Ouput backup VMDKs using either BUSLOGIC or LSILOGIC adapter type
   * Fully support VMDKs stored across multiple datastores
   * VM snapshot memory and quiesce options
   * Individual VM backup policy (supported on ESX(i) 3.5u2+ & ESX(i) 4.x+)
   * Email logs (Experimental Support) NEW!
   * Ability to include/exclude specific VMDK(s) per VM (requires individual VM backup policy setup) NEW!
   * Independent disk aware (will ignore VMDK) NEW!
   * Additional debugging information including dry run execution NEW!


esxi 5 crontab

Configure on ESXi:

1. Setup the cronjob by appending the following line to /var/spool/cron/crontabs/root:

0 0 * * 1-5 /vmfs/volumes/simplejack-local-storage/ghettoVCB.sh -f /vmfs/volumes/simplejack-local-storage/backuplist > /vmfs/volumes/simplejack-local-storage/ghettoVCB-backup-$(date +\%s).log


If you are unable to edit/modify /var/spool/cron/crontabs/root, please make a copy and then edit the copy with the changes

cp /var/spool/cron/crontabs/root /var/spool/cron/crontabs/root.backup

Once your changes have been made, then "mv" the backup to the original file. This may occur on ESXi 4.x or 5.x hosts

mv /var/spool/cron/crontabs/root.backup /var/spool/cron/crontabs/root

You can now verify the crontab entry has been updated by using "cat" utility.

2. Kill the current crond (cron daemon) and then restart the crond for the changes to take affect:

On ESXi < 3.5u3

kill $(ps | grep crond | cut -f 1 -d ' ')

On ESXi 3.5u3+

kill $(pidof crond)
crond