PHP TestFest VM Documentation - Install VM
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
- VirtualBox installer 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
- Run the VirtualBox installer.
Unzip the VDI.
- Unzip US8-PT-Main.vdi.zip
Register US8-PT-Main.vdi in the Virtual Media Manager.
- Open VirtualBox.
- Click "File" > "Virtual Media Manager".
- Click "Add".
- Browse to and Select "US8-PT-Main.vdi".
- Click "Open".
- Click "Ok".
- Close "Virtual Media Manager".
Create new VM.
- Open VirtualBox.
- Click "New".
- In the "Create New Virtual Machine" Wizard.
- Click "Next >".
- Enter Name: "US8-PT-Main".
- Select Operating System: "Linux".
- Select Version: "Ubuntu".
- Click "Next >".
- Enter Base Memory Size: I recommend 512 MB if you have that much available.
- Click "Next >".
- Check "Boot Hard Disk (Primary Master)".
- Check "Use existing hard disk".
- Select "US8-PT-Main.vdi (Normal, 10.00 GB)".
- Click "Next >".
- Click "Finish".
Set Advanced VM settings in VirtualBox Manager.
- Open VirtualBox.
- Select "US8-PT-Main" from the left side list.
- Click "Settings" at the top left side.
- Click "General" from the top row icons.
- Click "Advanced" from the middle row menu.
- Check "Enable PAE/NX".
- Click "Ok".
- Click "Network" from the top row icons.
- Click the gear next to the "Attached to:" NAT.
- Set "Guest MAC Address:" 080027A230B4
- Check "Cable connected".
- Click "Ok".
- Click "Audio" from the top row icons.
- Uncheck "Enable Audio".
- 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.