Installing VirtualBox with Ubuntu 8.04 server edition in Compaq Presario V6000 (AMD Turion64)


I had my Linux server in another computer for testing purpose. But time to time I needed that when I use my laptop remotely. I have Vista home premium in my laptop and I thought it’s better to have a copy of Ubuntu server edition on the laptop, so I can test PHP-MySQL application time to time.I went for VirtualBox because it’s open source and faster than vmware as far as I tested. I download VirtualBox 6.2.2 for AMD64 processor but that doesn’t support this processor. Then I tried VirtualBox 6.2.2 for x86. It worked this time. I installed server edition Ubuntu 8.04 (kernel for x86 processor). After installation, it was showing error – kernel is not supported. After going through lot searches, I have found that PAE/NX need to be enabled. You can enable it from settings -> advance tab. You can enable PAE/NX from there. Now Ubuntu is running.

In next phase I needed to access Ubuntu server through SSH (port 22) and HTTP (port 80). Both services are running at this moment on Server. But I can’t access it unless I redirect SSH and HTTP post through specific port. NAT is already enabled. So, I needed to do following to enable this. You have to run “VBoxManage” from console. Go to command prompt and change directory to “Program Files” -> Sun ->xVM VirtualBox. Now run following to enable SSH and HTTP service. After running following commands, you need to restart virtual machine.

For HTTP (change <virtual machine>) in my case it was “Ubuntu”.

VBoxManage setextradata <virtual machine> “VBoxInternal/Devices/pcnet/0/LUN#0/Config/http/HostPort” 8080
VBoxManage setextradata <virtual machine> “VBoxInternal/Devices/pcnet/0/LUN#0/Config/http/GuestPort” 80
VBoxManage setextradata <virtual machine> “VBoxInternal/Devices/pcnet/0/LUN#0/Config/http/Protocol” TCP

For SSH

VBoxManage setextradata <virtual machine>  “VBoxInternal/Devices/pcnet/0/LUN#0/Config/ssh/HostPort” 2222
VBoxManage setextradata <virtual machine> “VBoxInternal/Devices/pcnet/0/LUN#0/Config/ssh/GuestPort” 22
VBoxManage setextradata <virtual machine>  “VBoxInternal/Devices/pcnet/0/LUN#0/Config/ssh/Protocol” TCP

Good luck.


About this entry