= Altering the VM network config =
Read At this piece carefully as stage we are going to configure *''two* '' network interfaces. Open the VirtualBox network settings window for your VM. Configure the first two adapters thus:
* Adapter 1: Enabled, Attached to: Host-only Adapter, Name: vboxnet0
Boot the VM and wait for the login prompt. Login as admin (default password: admin) and use su to become root. Using your favourite editor, create the file:
<blockquote><pre>/etc/sysconfig/network-scripts/ifcfg-eth1</pre></blockquote>
with the contents:
<blockquote>
<pre>
DEVICE=eth1
BOOTPROTO=dhcp
ONBOOT=yes
</pre>
</blockquote>
Now we need to reconfigure the hda to ensure that it picks up the new network config, using the command hda-change-gw and the IP address of the host-only network. In my case:
<blockquote>
<pre>
hda-change-gw 192.168.56.1
</pre>
</blockquote>
Now reboot.