VirtualBox virtual machine running Ubuntu
Download and install virtualbox
Next, Download the virtual machine image and then re-name and unzip the .bz2 file:
mv a67a4079a17cb4d0d7cfb4a94096df115169bdad8a0b4195b3da8f6e9a12c65.tar.bz2 ubuntu1.tar.bz2
tar xjf ubuntu1.tar.bz2
- For those interested,
The tar function should create a file called ubuntu1.vdi. Double-click the Sun virtualbox software to start it. From the File menu->Virtual Media Menu and note that the "Hard Disks" tab is selected. Click the "Add" icon and then navigate to the .dvi file and select it. Close the "Virtual Media Menu" and then click on the "New" button on the main window. Respond to a few prompts and then select "Existing virtual disk". ubuntu1.vdi will be displayed for selection. Finally, select the ubuntu1 machine and click "Run".
- After starting the virtual machine, it should be possible to ssh to the virtual machine from the host machine.
example: cygwin ssh starts an xterm
ssh -Yfp 2222 user1@localhost xterm
- configure virtualbox
- network
- NAT
- network
- port forwarding
- The virtual machine must be restarted for these settings to take effect...
- "sshForward"
#! /bin/env bash guest=$1 "/cygdrive/c/Program Files/Sun/xVM VirtualBox/VBoxManage" setextradata "$guest" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/guestssh/Protocol" TCP "/cygdrive/c/Program Files/Sun/xVM VirtualBox/VBoxManage" setextradata "$guest" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/guestssh/GuestPort" 22 "/cygdrive/c/Program Files/Sun/xVM VirtualBox/VBoxManage" setextradata "$guest" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/guestssh/HostPort" 2222
- either run this script from a sh shell (cygwin?) or adjust it to run as a windows batch file
example (assumes the script above is named sshForward
./sshForward ubuntu1