I've already succeeded some features I wanted - run apache web server on ubuntu and connect from outside using port forwarding. Here is my port forwarding command:
Code: Select all
VBoxManage setextradata "ubuntu"
"VBoxInternal/Devices/pcnet/0/LUN#0/Config/apache/Protocol" TCP
VBoxManage setextradata "ubuntu"
"VBoxInternal/Devices/pcnet/0/LUN#0/Config/apache/GuestPort" 80
VBoxManage setextradata "ubuntu"
"VBoxInternal/Devices/pcnet/0/LUN#0/Config/apache/HostPort" 80http://localhost:3000
Then I also set port forwarding command for port 3000 :
Code: Select all
VBoxManage setextradata "ubuntu"
"VBoxInternal/Devices/pcnet/0/LUN#0/Config/webrick/Protocol" TCP
VBoxManage setextradata "ubuntu"
"VBoxInternal/Devices/pcnet/0/LUN#0/Config/webrick/GuestPort" 3000
VBoxManage setextradata "ubuntu"
"VBoxInternal/Devices/pcnet/0/LUN#0/Config/webrick/HostPort" 3000