I had to add another harddrive to a test VM and wondered how to take advantage of thin provisioning in linux. On Windows VM’s you have to do a “Quick Format” to use thin provisioning. Here is what you do on a linux (ubuntu) VM.
- Shutdown the VM (if you dont have Hotadd-feature licensed)
- Add a new harddrive with thin provisioning
- Start the VM
- Log in
- Check the dmesg to find the devicename of the new harddrive ( in my case /dev/sdb )
- sudo mkfs.ext3 /dev/sdb (use another mkfs-command to use the filesystem of your choise)
- /dev/sdb is entire device, not just one partition!
Proceed anyway? (y,n) y
- Wait for it to finish
- Mount the harddrive (sudo mount /dev/sdb /home/newharddrive)
This is the way it worked for me
- Upgrade all apps (sudo apt-get update && sudo apt-get upgrade)
- Reboot
- Upgrade the kernel (sudo apt-get dist-upgrade)
- Reboot
- Install new kernel headers ( sudo apt-get install linux-headers-`uname -r` )
- Choose “Install/update vmware tools” in the VI-client
- Mount the CD (sudo mkdir /mnt/cdrom && sudo mount /dev/cdrom /mnt/cdrom )
- Copy the tar to your homefolder ( cp /mnt/cdrom/VMwareTools-x.x.x-yyyyyy.tar.gz /home/username)
- Untar (cd /home/username && tar zxvf VMwareTools-x.x.x-yyyyyy.tar.gz)
- Install the upgrade (sudo /home/username/vmware-tools-distrib/vmware-install.pl)
- Follow the instructions on the screen
- Reboot
Done
For the console:
User: root
Password: vmw@re
For the backup appliance
User: vmware
Password: vmware
I recently upgraded to Vsphere an began upgrading VMware tools. I had a problem on a Windows 2008 VM, that would not install the new version of VMware tools. I could not uninstall the old version either. I found this solution.
1) Switch to the CD-ROM with the VMware Tools ISO mounted.
2) Run setup.exe /c to do a manually removal of the registry keys from the previous VMware Tools version
3) Re-run the setup.
I modded my VCB-script a little to work with a standalone esxi. Check it out
1. Convert the VM using the coldclone-cd (comes with Converter Enterprise)
2. Boot a Freesbie CD on the ESX-VM
3. Mount da0s1a by doing the following (as root)
4. mkdir /home/mnt
5. mount -t ufs /dev/da0s1a /home/mnt
6. ee /home/mnt/etc/fstab
7. change ad0xxx in all lines to da0xxx
8. save and reboot
Here is a few tips for running freebsd on ESX: http://ivoras.sharanet.org/freebsd/vmware.html
Remember FreeBSD +4.11 i NOT supported by Vmware.
My first script is online, i hope someone else can use it to. Please provide some feedbackup. It is located here