TinUbuntu & Sun VirtualBox Config
From SnOwy - Ed's Wiki Notebook
Thanks to Evan's "justwerks software" blog [1].
Keywords: VM, Port Forwarding
The following commands were issued...
cd /Applications/VirtualBox.app/Contents/MacOS $VBoxManage setextradata "TinUbuntu" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/guesthttp/Protocol" TCP $VBoxManage setextradata "TinUbuntu" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/guesthttp/GuestPort" 22 $VBoxManage setextradata "TinUbuntu" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/guesthttp/HostPort" 2222
Which causes TinUbuntu TCP:22 to be forwarded to Tin TCP:2222.
In future, I should remove these rules and re-add them replacing "guesthttp" with my own name for this rule-- In his blog, Evan has used a series of names: "guesthttp", "guestssh" and "guestsql"-- In reality, these are actually very good, unambiguous names that I'll probably end up borrowing.
Issuing these commands on Zinc regarding Brass ...
VBoxManage setextradata "Brass" "VBoxInternal/Devices/e1000/0/LUN#0/Config/brassssh/Protocol" TCP VBoxManage setextradata "Brass" "VBoxInternal/Devices/e1000/0/LUN#0/Config/brassssh/GuestPort" 22 VBoxManage setextradata "Brass" "VBoxInternal/Devices/e1000/0/LUN#0/Config/brassssh/HostPort" 7722 VBoxManage setextradata "Brass" "VBoxInternal/Devices/e1000/0/LUN#0/Config/brasshttp/Protocol" TCP VBoxManage setextradata "Brass" "VBoxInternal/Devices/e1000/0/LUN#0/Config/brasshttp/GuestPort" 80 VBoxManage setextradata "Brass" "VBoxInternal/Devices/e1000/0/LUN#0/Config/brasshttp/HostPort" 7780
Why e1000 instead of pcnet?
- See this post: https://forums.virtualbox.org/viewtopic.php?t=7175
- boils down to: pcnet refers to a brand of ethernet cards by PCnet, and e1000 is the name of NICs provided by Intel.
- Configuration files ...
- ~/Library/VirtualBox/VirtualBox.xml
- ~/VirtualBox VMs/Brass/Brass.vbox