mkdir -p /mount/cdromAlthough I got a message complaining about perl..
mount -t auto /dev/cdrom /mount/cdrom
cd /mount/cdrom
cp VMwareTools-9* /tmp
cd /tmp
tar zxvf VMwareTools-9*
cd vmware-tools-distrib
./vmware-install.pl
Oh no... It looks like the CentOS 'minimal' does not include any perl interpreter!
Now we could simply install the package with yum - although I opted for the VNXNET3 NIC and hence the NIC will not function on the guest OS until VMware Tools is installed!
So we can either mount a full CentOS and update the yum sources and attempt to install the perl package OR we could simply be lazy and add an oldhat E1000 adapter - configure it and download the relevent perl packages via the internet using yum.
I opted for the latter option and once the NIC has been installed - we can either using dhclient to configure a temporary IP for our uses (that is if there is an DHCP reception!) or manually configure the NIC.
For DHCP:
dhclient enoXXXXXXXand verify with:
ip addrTo setup a static IP address:
vi /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0Setup a default gateway:
BOOTPROTO=none
ONBOOT=yes
NETWORK=10.0.0.0
NETMASK=255.255.255.0
IPADDR=10.0.0.2
USERCTL=no
vi /etc/sysconfig/network
NETWORKING=yesand DNS:
HOSTNAME=linuxbox
GATEWAY=10.0.0.1
vi /etc/resolv.conf
nameserver 8.8.8.8And then install perl (We should also ensure ifconfig utility is installed as it's required by VMware tools!):
nameserver 8.8.4.4
yum install perl net-toolsand finally attempt to install VMWare tools again!
cd /tmp/vmware-tools-distribOnce installed - give the VMXNET3 a static IP and simply remove the E1000 NIC.
./vmware-install.pl
No comments:
Post a Comment