Categories
Tech

Installing VMware Tools in VMware Fusion with CentOS Minimal (No GUI)

This guide assumes you already have successfully installed a CentOS virtual machine within VMware Fusion.

Launch your desired Virtual Machine and from the menu bar within VMware Fusion, select

Install VMware Tools

. This will load an iso and simulate a cd-rom has been inserted.

VMware Tools requires Perl as a dependancy, we need to resolve it before we can begin with the installation.

yum install perl

We need to mount the cd-rom within the guest virtual machine before we are able to access its content. We do this by
Creating a new folder to mount the cd-rom in.

mkdir /mnt/cdrom

Then we mount the cd-rom into the folder we just created. The fact that it is read-only is fine.

mount /dev/cdrom /mnt/cdrom

Now we need to access the disk and extract the tools somewhere.

cp /mnt/cdrom/VMwareTools-XXX.tar.gz /tmp

Change our working directory to tmp (shorter commands make life a little easier).

cd /tmp

The extracted files are compressed, we need to uncompress them.

gunzip VMWare-Tools-XXX.tar.gz
tar xvf VMWare-Tools-XXX.tar

Change working directory again into the newly decompressed folder.

cd vmware-tools-distrib

Finally, lets begin the VMware Tools installation.. just follow the onscreen instructions (I usually just leave everything as default).

./vmware-install.pl

See, easy peasy!

Categories
Tech

Visudo Command not found – CentOS

Unless you have the package ‘sudo’ installed on your system, any attempts of issuing the ‘visudo’ command will fail. Classic school boy error, but one easily made.

The remedy..

yum install sudo
Categories
Tech

Set Static IP Address in Centos

Using your favourite text editor (vi) open the default network configuration for the network adapter you wish to configure. I wish to assign a static IP to the default ethernet adapter (eth0). You will need superuser privileges so remember to use sudo

sudo vi /etc/systemconfig/network-scripts/ifcfg-eth0

For the purpose of this post I will be using the following typical network configuration.

  • Host IP Address: 192.168.0.100
  • Netmask: 255.255.255.0
  • Gateway: 192.168.0.1

Update the following highlighted fields with your relevant network settings.

DEVICE="eth0"
BOOTPROTO="static"
HWADDR="00:11:22:33:44:55" 
NM_CONTROLLED="yes"
ONBOOT="yes"
IPADDR=192.168.0.100
NETMASK=255.255.255.0
GATEWAY=192.168.0.1
TYPE="Ethernet"
UUID="9a6aae04-2b82-4986-951a-1081c0012345"
Categories
Tech

Reset Linux Root Password In Xen Paravirtualised Virtual Machine

This can be used to reset forgotten root passwords in paravirtualised VM’s running on the Xen hypervisor.

1. Identify target VM name.

virsh list --all

2. Shutdown the target VM.

virsh shutdown vm-name-goes-here

3. Start the VM back up again in console mode.

xm create -c vm-name-goes-here

4. Quickly stop the boot process on the grub menu and hit the a key on the default kernel. Once the kernel parameters appear, append the number 1 to the end of the line. Then hit enter to continue with the VM boot.

5. You should then be dropped into a single user mode console, allowing you to reset the password as you would on a physical host.

6. Enter this command to change the root password, you have to enter the new password twice when prompted onscreen.

passwd

7. Reboot

reboot
Categories
Tech

Ford Escort Xflow Turbo First Start – VIDEO