Wednesday, August 25, 2010

How to enable copy and paste option in vSphere client 4.1

from VMware KB we read that:
Starting with vSphere 4.1, the Copy and Paste options are, by default, disabled for security reasons.
To be able to copy and paste between the guest operating system and the remote console, you must enable the Copy and Paste options using the vSphere Client.
To enable this option:
   1. Log into a vCenter Server system using the vSphere Client and power off the virtual machine.
   2. Select the virtual machine, on the Summary tab click Edit Settings.
   3. Navigate to Options > Advanced > General and click Configuration Parameters.
   4. Click Add Row and type the following values in the Name and Value columns:
        isolation.tools.copy.disable – false
        isolation.tools.paste.disable – false
NOTE: These options override any settings made in the guest operating system’s VMware Tools control panel.
   5. Click OK to close the Configuration Parameters dialog, and click OK again to close the Virtual Machine Properties dialog.
   6. Power on the virtual machine.

To enable this option for all the virtual machines in the ESX/ESXi host:
In the ESX/ESXi host, open the /etc/vmware/config file using a text editor.
Add these entries to the file:
isolation.tools.copy.disable="FALSE"
isolation.tools.paste.disable="FALSE"
Save and close the file. The Copy and Paste options are enabled when the virtual machines restart or resume the next time.

Saturday, August 21, 2010

How to install linux integration components 2.1 in a CentOS 5.x virtual machine running on Hyper-V R2

- Download Linux Integration Components v2.1 from Microsoft Download site.
- Obtain the inputvsc.iso for the mouse driver from Project Satori
- Extract the .exe file into a temp folder. You will need only LinuxIC v21.iso file.
- Place the LinuxIC v21.iso file into your VM host server where you can mount the ISO as a CDROM on your CentOS Virtual Machine.
- Add a legacy network adapter to linux guest machine
- Install kernel-devel package and Development Tools using these commands
# yum install kernel-devel
# yum groupinstall "Development Tools"
# yum update
- Mount linux integration services iso and copy all contents to hard drive of linux guest
# mount /dev/cdrom /mnt
# mkdir /opt/lic21
# cp –R /mnt/* /opt/lic21/
- Change directory to where you copied the integration services and run
# make
# make install
- Shutdown and remove your legacy network adapter.

The InputVSC driver requires the Linux Integration Components to be installed, and supports the same guest distro versions. To install the InputVSC driver: (you must be root:)
- Download and attach the .ISO file to a Hyper-V guest with the Linux Integration Components already installed.
- Copy the contents of the .ISO to the desired directory
- Run setup.pl with the inputdriver argument:
# ./setup.pl inputdriver


NOTE: If you're using the x64 version of Centos, you have to perform an extra step.
Attach the Centos ISO that was used for installation in the virtual machine, and mount it:
mount /dev/cdrom /mnt/cdrom
Install the adjtimex RPM for more accurate time keeping in the virtual machine:
rpm –ivh /mnt/cdrom/Centos/adjtimex-1.20-2.1.x86_64.rpm
To verify that all subcomponents are running, as the root user, issue the following command at a shell prompt:
/sbin/lsmod | grep vsc
Please remmeber when using Network Adapters on Hyper-V, NIC names would be changed from eth0 to seth0


Read also these posts:
http://www.howtoforge.com/installing-linux-integration-services-v2.1-hyper-v-r2-on-centos-5
http://stevenjbradbury.com/component/content/article/43-front-page-article/127-hyper-v-linux-integration-services-21
http://blogs.technet.com/b/enterprise_admin/archive/2010/03/09/linux-and-hyper-v-the-easy-way-brown-and-serve.aspx