This shows you the differences between two versions of the page.
— |
vmwaretips [2013/01/26 22:33] (current) sjoerd created |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | = Notes, Tips & Tricks: VMWare | ||
+ | This is a notes page, extended with tips & tricks. This page is not really documentation, just stuff for me to remember. Sometimes things will get removed from these pages and turned into real documentation, sometimes not. You might find these notes to come in hand, maybe not. For me, it's just things I don't want to forget. | ||
+ | |||
+ | = VMware voor Netware | ||
+ | |||
+ | NIC: AMD PCNET32 "Lance" NIC driver | ||
+ | Ethernet0.virtualDev="vlance" | ||
+ | SCSI: Buslogic/LSI logic SCSI adapter driver | ||
+ | |||
+ | VMware tools: | ||
+ | Klik op de "Install VMWare Tools" menu optie en geef het volgende commando: | ||
+ | vmwtools:\setup.ncf | ||
+ | |||
+ | = VMware voor Linux: | ||
+ | |||
+ | VMware tools: | ||
+ | Dependencies: gcc/gcc++/(kernel-headers) | ||
+ | |||
+ | ON ESX, first mount the cdrom: | ||
+ | OES3:/media # mount /dev/cdrom /mnt/ | ||
+ | mount: block device /dev/cdrom is write-protected, mounting read-only | ||
+ | |||
+ | Zet de vm uit, en zet de cdrom op automatically connect as host device, as auto detect. | ||
+ | mount /dev/cdrom /media/cdrom -o rm | ||
+ | |||
+ | Klik op de "Install VMWare Tools" menu optie en geef het volgende commando's: | ||
+ | <code> | ||
+ | cd /tmp | ||
+ | tar zxf /media/VMware\ Tools/vmware-linux-tools.tar.gz | ||
+ | cd /tmp/vmware-tools-distrib | ||
+ | ./vmware-install.pl | ||
+ | Run tools: /usr/bin/vmware-toolbox | ||
+ | </code> | ||
+ | installeer alles in /usr/local/bin | ||
+ | |||
+ | == Installatie SLES9 - dubbele schermen die moeilijk leesbaar zijn: | ||
+ | Open | ||
+ | vi /boot/grub/menu.lst | ||
+ | en verwijder "vga=0x332" uit de linux kernel load line | ||
+ | |||
+ | = Discover new disk on linux | ||
+ | After you've added a new disk to linux you can discover it by issuing 'rescan-scsi-bus.sh' as root: | ||
+ | <code> | ||
+ | # rescan-scsi-bus.sh | ||
+ | Host adapter 0 (mptspi) found. | ||
+ | Scanning SCSI subsystem for new devices | ||
+ | Scanning host 0 channels 0 for SCSI target IDs 0 1 2 3 4 5 6 7, all LUNs | ||
+ | Scanning for device 0 0 0 0 ... | ||
+ | OLD: Host: scsi0 Channel: 00 Id: 00 Lun: 00 | ||
+ | Vendor: VMware Model: Virtual disk Rev: 1.0 | ||
+ | Type: Direct-Access ANSI SCSI revision: 02 | ||
+ | Scanning for device 0 0 1 0 ... | ||
+ | OLD: Host: scsi0 Channel: 00 Id: 01 Lun: 00 | ||
+ | Vendor: VMware Model: Virtual disk Rev: 1.0 | ||
+ | Type: Direct-Access ANSI SCSI revision: 02 | ||
+ | Scanning for device 0 0 2 0 ... | ||
+ | NEW: Host: scsi0 Channel: 00 Id: 02 Lun: 00 | ||
+ | Vendor: VMware Model: Virtual disk Rev: 1.0 | ||
+ | Type: Direct-Access ANSI SCSI revision: 02 | ||
+ | 0 new device(s) found. | ||
+ | 0 device(s) removed. | ||
+ | </code> | ||
+ | It says 0 devices found but the new disk is still discovered and ready for partitioning. | ||
+ | |||
+ | = Time Drifting op Linux guests: | ||
+ | [[http://support.novell.com/docs/tids/solutions/10100597.html|bron]] | ||
+ | |||
+ | == Stap 1: NTP opzetten | ||
+ | Open ntp.conf en pas de volgende instellingen aan: | ||
+ | <code> | ||
+ | vi /etc/ntp.conf | ||
+ | server x.x.x.x prefer | ||
+ | tinker step 0 | ||
+ | </code> | ||
+ | Stop, synchroniseer en start ntp: | ||
+ | /etc/init.d/ntpd stop | ||
+ | ntpdate x.x.x.x (herhalen tot verschil kleiner is dan 1 seconde) | ||
+ | /etc/init.d/ntpd start | ||
+ | ntpq -p (herhalen tot de reach op 377 staat) | ||
+ | == Stap 2: clock=pit | ||
+ | vi /boot/grub/menu.lst | ||
+ | Voeg "clock=pit" toe aan de linux kernel load line | ||
+ | of | ||
+ | vi /etc/lilo.conf | ||
+ | Voeg "clock=pit" toe aan de "append=" line | ||
+ | /sbin/lilo | ||
+ | |||
+ | == Stap 3: Misc.TimerHardPeriod (op ESX) | ||
+ | Zet deze naar 333 of 250 | ||
+ | |||
+ | == Stap 4: tools.syncTime | ||
+ | Zet tijdssynchronisatie met de host aan via of de VMware tools of de *.vmx config file. | ||
+ | |||
+ | == Optionele extra stappen: | ||
+ | |||
+ | == Stap 5: noapic nolapic nosmp | ||
+ | vi /boot/grub/menu.lst | ||
+ | Voeg "noapic nolapic nosmp" toe aan de linux kernel load line | ||
+ | |||
+ | == Stap 6: NTP polling | ||
+ | vi /etc/ntp.conf | ||
+ | server x.x.x.x prefer minpoll 4 maxpoll 6 (getal omzetten naar seconden is kwadrant, dus 4=16 seconden en 6=36 seconden) | ||
+ | |||
+ | == EXTRA TIJDCOMMANDO'S: | ||
+ | Hardwareklok synchroniseren met de systeemklok: | ||
+ | hwclock --systohc | ||
+ | Hardwareklok bekijken: | ||
+ | hwclock --show | ||
+ | |||
+ | = VMware algemeen: | ||
+ | |||
+ | Indien het bootscherm te snel gaat, F2 is de toets om in de BIOS/CMOS te komen. | ||
+ | |||
+ | = VMware Server port forwarding | ||
+ | I needed to be able to authenticate through LDAP on a virtual from the production network. Of course, vmware server does not support reverse NAT, so I took my chances on port forwarding... and it worked: | ||
+ | {{vmwareserverportforwarding.jpg}} \\ | ||
+ | Don't forget to press restart and apply when you've added port forwards. | ||
+ | |||
+ | = Force Removal of VMware Tools = | ||
+ | |||
+ | To uninstall and re-install VMware Tools: | ||
+ | |||
+ | * Right-click on the virtual machine. | ||
+ | * Click Guest > Install/Upgrade VMware Tools. | ||
+ | * Open a Console to the virtual machine and log into the guest operating system. | ||
+ | * Click Start > Run, type cmd, and click OK to open a command prompt in Windows. | ||
+ | * Change the drive to your CD-ROM drive (For example, D:\). | ||
+ | * Type {{{setup /c}}} and press Enter to force removal of all registry entries and delete the old version of VMware Tools. | ||
+ | * Open My Computer, double click the CD-ROM that contains VMware Tools. | ||
+ | * After Auto-Run starts, follow the prompts to install. | ||
+ | |||
+ | Bron: http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1012693 | ||
+ | |||
+ | {{tag>notes vmware DUTCH}} |