Tag Archives: VMWare

Home »  Tag: VMWare

If you just added a new Disk to a Linux Box (for example under VMware) you may want to add that one to a LVM to a new Volume Group. Here are the steps quick and easy with a bit of commenting. You have not yet added the new disk and want to do this hot. Then I refer to this here. How to add a new disk without reboot fdisk -l #to show us the available disks We assume our new disk is /dev/sdb and we will not create a partition on it but use /dev/sdb as it is. This gives us the advantage that if we increase the disksize outside of the OS (for example a vmdk which we just increase or a SAN lun which we just increase in size) we can easily increase the volume under lvm. pvcreate /dev/sdb Writing physical volume data to disk “/dev/sdb” […]

Particularly under VMware you may just add a new disk to linux without the need to reboot the whole thingy. So after adding the new disk as root on the OS: echo “- – -” > /sys/class/scsi_host/host#/scan where host# is the bus address usually 0 example echo “- – -” > /sys/class/scsi_host/host0/scan fdisk -l will show you the new disk as unpartioned while you would expect to see a message in the messages log tail -f /var/log/message and thats it, you now have a new disk which you can partition and add to LVM or whatever you want with it. Related posts: Linux / VMware: Howto Increase a / (Root) LVM partition on a single vmdk without adding another partition Linux: Howto show the Servers IP address at the login console Centos / Debian / LVM: Add a new disk as a LVM volume Linux / RedHat /CentOS / Ubuntu […]

If you need to install the vmware tools for CentOS 6.x as a repo then: rpm –import http://packages.vmware.com/tools/keys/VMWARE-PACKAGING-GPG-RSA-KEY.pub vi /etc/yum.repos.d/VMWare-Tools.repo insert [vmware-tools] name=VMware Tools baseurl=http://packages.vmware.com/tools/esx/latest/rhel6/x86_64 #baseurl=http://packages.vmware.com/tools/esx/4.1latest/rhel6/i686 enabled=1 gpgcheck=1 gpgkey=http://packages.vmware.com/tools/keys/VMWARE-PACKAGING-GPG-RSA-KEY.pub This will point to the latest release for Centos 6.X_X64 then: To select a specific version of ESX you can browse the path to select different directories. yum -y install vmware-tools-services vmware-tools-esx-nox vmware-tools-pvscsi-common vmware-tools-plugins-autoUpgrade vmware-tools-plugins-guestInfo vmware-tools-plugins-powerOps vmware-tools-plugins-timeSync Now this might be a quick and dirty solution to get the latest tools from the repo. However, ESX doesn’t like it and will show them as (?) Running (3rd-party/Independent)” which means it won’t auto-update the tools. it might be better to mount the vmware tools from the ESX Server and after unpacking them to run vmware-install.pl -d to install unattended with the defaults.   Related posts: Linux / VMware: Howto Increase a / (Root) LVM partition on a single vmdk without adding another […]

Howto Increase a / (Root) LVM partition on a single vmdk without adding another partition (For example under VMware Workstation)   Increase Vmware partition and LVM Resize your vmdk under VMWare as you would do it usually. Once you’ve resized the vmdk I advise to take a snapshot while everything is still fine. That way if you completely screw your VM’s partition table you have a back-out Run # df -h Filesystem            Size  Used Avail Use% Mounted on /dev/mapper/vg_sat01-lv_root                        16G  3.9G   11G  27% / tmpfs                 935M     0  935M   0% /dev/shm /dev/sda1             485M   37M  423M   8% /boot It will all look a bit like this run # /sbin/fdisk -u -l /dev/sda Disk /dev/sda: 96.6 GB, 96636764160 bytes 255 heads, 63 sectors/track, 11748 cylinders, total 188743680 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 […]

VMware Error: Cannot open the disk ‘…../VMWare/Windows 7/Windows 7-000002.vmdk’ or one of the snapshot disks it depends on. Reason: Directory not empty.   Just run after a VM host crash into the following error when trying to restart the VM. “Cannot open the disk ‘…/VMWare/Windows 7/Windows 7-000002.vmdk’ or one of the snapshot disks it depends on. Reason: Directory not empty.” Resolution: No Panic. Go to the Directory where the files are located. # ls -al       to show the content of the directory. You probably see something like this. total 44G drwxrwx— 7 4.0K . drwxrwx–T 5 4.0K .. -rwxrwx— 1 2.0G 564db544-bc20-775d-7ebe-35a1a7ba303b.vmem drwxrwx— 3 4.0K caches -rwxrwx— 1 4.0M vmmcores-1.gz -rw-r—– 1 61K vmware-0.log -rw-r—– 1 61K vmware-1.log -rw-r—– 1 61K vmware-2.log -rw-r—– 1 61K vmware.log -rw-rw—- 1 924M Windows 7-000001.vmdk drwxrwx— 2 4.0K Windows 7-000001.vmdk.lck -rw-rw—- 1 2.9G Windows 7-000002.vmdk drwxrwx— 2 4.0K Windows 7-000002.vmdk.lck -rwxrwx— 1 […]

Ubuntu: How to uninstall VMWare Player Trivial task and it took me to Google the right page (but I hope its getting better now with the right trackbacks) http://ubuntuforums.org/showthread.php?t=1364485 the program is located under /usr/bin/vmware-installer Examples and usage: Be aware that you need to be root to execute all those commands so you either su – to root or use the sudo in front of each command. Show what is currently installed (list products): # sudo /usr/bin/vmware-installer -l Product Name Product Version ======================================== vmware-workstation 8.0.2.591240   Uninstall a Product # sudo /usr/bin/vmware-installer -u vmware-workstation The gui opens and gone is Vmware. Alternative:  # sudo /usr/bin/vmware-installer -u vmware-player for the VMWare Player   Related posts: Linux / VMware: Howto Increase a / (Root) LVM partition on a single vmdk without adding another partition CentOS 6.x: VMware Repo for VMware tools x86_64 CentOS / Debian: detect a new disk / lun without rebooting linux […]

%d bloggers like this: