
astro:~ eladio$ VBoxManage showvminfo SplingDevServer | grep NIC
NIC 1: MAC: 080027DAD63F, Attachment: NAT, Cable connected: on, Trace: off (file: none), Type: 82540EM, Reported speed: 0 Mbps, Boot priority: 0, Promisc Policy: allow-all
NIC 1 Settings: MTU: 0, Socket (send: 64, receive: 64), TCP Window (send:64, receive: 64)
NIC 1 Rule(0): name = httpd, protocol = tcp, host ip = , host port = 8000, guest ip = , guest port = 8000
NIC 1 Rule(1): name = rabbitmqadmin, protocol = tcp, host ip = , host port = 25672, guest ip = , guest port = 55672
NIC 1 Rule(2): name = ssh, protocol = tcp, host ip = , host port = 20022, guest ip = , guest port = 22
We’ve got 3 network rules for port forwarding already configured (ssh/rabbitmqadmin/httpd)
astro:~ eladio$ VBoxManage getextradata SplingDevServer enumerate
Key: GUI/LastCloseAction, Value: powerOff
Key: GUI/LastGuestSizeHint, Value: 640,480
Key: GUI/LastNormalWindowPosition, Value: 235,131,640,342,max
These are the customized items for the GuestMachine. We will be adding items to connect to ssh and httpd in the next step.
astro:~ eladio$ VBoxManage setextradata SplingDevServer VBoxInternal/Devices/e1000/0/LUN#0/Config/ssh/GuestPort
astro:~ eladio$ VBoxManage setextradata SplingDevServer VBoxInternal/Devices/e1000/0/LUN#0/Config/ssh/HostPort
astro:~ eladio$ VBoxManage setextradata SplingDevServer VBoxInternal/Devices/e1000/0/LUN#0/Config/ssh/Protocol
astro:~ eladio$ VBoxManage getextradata SplingDevServer enumerate
Key: GUI/LastCloseAction, Value: powerOff
Key: GUI/LastGuestSizeHint, Value: 640,480
Key: GUI/LastNormalWindowPosition, Value: 235,131,640,342,max
astro:~ eladio$ VBoxManage setextradata SplingDevServer VBoxInternal/Devices/e1000/0/LUN#0/Config/ssh/GuestPort 22
astro:~ eladio$ VBoxManage setextradata SplingDevServer VBoxInternal/Devices/e1000/0/LUN#0/Config/ssh/HostPort 20022
astro:~ eladio$ VBoxManage setextradata SplingDevServer VBoxInternal/Devices/e1000/0/LUN#0/Config/ssh/Protocol TCP
astro:~ eladio$ VBoxManage setextradata SplingDevServer VBoxInternal/Devices/e1000/0/LUN#0/Config/httpd/Protocol TCP
astro:~ eladio$ VBoxManage setextradata SplingDevServer VBoxInternal/Devices/e1000/0/LUN#0/Config/httpd/GuestPort 8000
astro:~ eladio$ VBoxManage setextradata SplingDevServer VBoxInternal/Devices/e1000/0/LUN#0/Config/httpd/HostPort 88000
astro:~ eladio$ VBoxManage getextradata SplingDevServer enumerate
Key: GUI/LastCloseAction, Value: powerOff
Key: GUI/LastGuestSizeHint, Value: 640,480
Key: GUI/LastNormalWindowPosition, Value: 235,131,640,342,max
Key: VBoxInternal/Devices/e1000/0/LUN#0/Config/httpd/GuestPort, Value: 8000
Key: VBoxInternal/Devices/e1000/0/LUN#0/Config/httpd/HostPort, Value: 88000
Key: VBoxInternal/Devices/e1000/0/LUN#0/Config/httpd/Protocol, Value: TCP
Key: VBoxInternal/Devices/e1000/0/LUN#0/Config/ssh/GuestPort, Value: 22
Key: VBoxInternal/Devices/e1000/0/LUN#0/Config/ssh/HostPort, Value: 20022
Key: VBoxInternal/Devices/e1000/0/LUN#0/Config/ssh/Protocol, Value: TCP
VBoxManage setextradata Spling20111031 VBoxInternal/Devices/e1000/0/LUN#0/Config/ssh/GuestPort VBoxManage setextradata Spling20111031 VBoxInternal/Devices/e1000/0/LUN#0/Config/ssh/HostPort VBoxManage setextradata Spling20111031 VBoxInternal/Devices/e1000/0/LUN#0/Config/ssh/Protocol VBoxManage setextradata Spling20111031 VBoxInternal/Devices/e1000/0/LUN#0/Config/httpd/GuestPort VBoxManage setextradata Spling20111031 VBoxInternal/Devices/e1000/0/LUN#0/Config/httpd/HostPort VBoxManage setextradata Spling20111031 VBoxInternal/Devices/e1000/0/LUN#0/Config/httpd/Protocol VBoxManage getextradata Spling20111031 enumerate VBoxManage setextradata Spling20111031 VBoxInternal/Devices/e1000/0/LUN#0/Config/ssh/GuestPort 22 VBoxManage setextradata Spling20111031 VBoxInternal/Devices/e1000/0/LUN#0/Config/ssh/HostPort 20022 VBoxManage setextradata Spling20111031 VBoxInternal/Devices/e1000/0/LUN#0/Config/ssh/Protocol TCP VBoxManage setextradata Spling20111031 VBoxInternal/Devices/e1000/0/LUN#0/Config/httpd/Protocol TCP VBoxManage setextradata Spling20111031 VBoxInternal/Devices/e1000/0/LUN#0/Config/httpd/GuestPort 8000 VBoxManage setextradata Spling20111031 VBoxInternal/Devices/e1000/0/LUN#0/Config/httpd/HostPort 8000 VBoxManage getextradata Spling20111031 enumerate
sudo mount -t vboxsf -o uid=1000,gid=1000 spling ~/Devel/dev.spling/spling