PHP TestFest VM Documentation - Install VM

Documentation Home

These instructions include all the necessary steps for setting up the TestFest Virtual Machine.

If this is on a Windows PC, you need to substitute the full path to the VBoxManage.exe file everywhere you see the VBoxManage command.

Downloads

  1. VirtualBox installer 2.2.2.
  2. PHP TestFest VM VDI
    (Special thanks to Hans Zaunere and the NYPHP User Group for generously providing storage and bandwidth for the VM.)

Install Virtual Box

  1. Run the VirtualBox installer.

Unzip the VDI.

  1. Unzip US8-PT-Main.vdi.zip

Register US8-PT-Main.vdi in the Virtual Media Manager.

  1. Open VirtualBox.
  2. Click "File" > "Virtual Media Manager".
  3. Click "Add".
  4. Browse to and Select "US8-PT-Main.vdi".
  5. Click "Open".
  6. Click "Ok".
  7. Close "Virtual Media Manager".

Create new VM.

  1. Open VirtualBox.
  2. Click "New".
  3. In the "Create New Virtual Machine" Wizard.
  4. Click "Next >".
  5. Enter Name: "US8-PT-Main".
  6. Select Operating System: "Linux".
  7. Select Version: "Ubuntu".
  8. Click "Next >".
  9. Enter Base Memory Size: I recommend 512 MB if you have that much available.
  10. Click "Next >".
  11. Check "Boot Hard Disk (Primary Master)".
  12. Check "Use existing hard disk".
  13. Select "US8-PT-Main.vdi (Normal, 10.00 GB)".
  14. Click "Next >".
  15. Click "Finish".

Set Advanced VM settings in VirtualBox Manager.

  1. Open VirtualBox.
  2. Select "US8-PT-Main" from the left side list.
  3. Click "Settings" at the top left side.
  4. Click "General" from the top row icons.
  5. Click "Advanced" from the middle row menu.
  6. Check "Enable PAE/NX".
  7. Click "Ok".
  8. Click "Network" from the top row icons.
  9. Click the gear next to the "Attached to:" NAT.
  10. Set "Guest MAC Address:" 080027A230B4
  11. Check "Cable connected".
  12. Click "Ok".
  13. Click "Audio" from the top row icons.
  14. Uncheck "Enable Audio".
  15. Click "Ok".

Enable port-forwarding for SSH.

From your host's terminal console:

VBoxManage setextradata "US8-PT-Main" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/guest_ssh/Protocol" TCP
VBoxManage setextradata "US8-PT-Main" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/guest_ssh/GuestPort" 22
VBoxManage setextradata "US8-PT-Main" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/guest_ssh/HostPort" 2222

Enable port-fowarding for Apache.

From your host's terminal console:

VBoxManage setextradata "US8-PT-Main" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/guest_apache/Protocol" TCP
VBoxManage setextradata "US8-PT-Main" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/guest_apache/GuestPort" 80
VBoxManage setextradata "US8-PT-Main" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/guest_apache/HostPort" 8080

Your done, you can now start the VM.