I am running Ubuntu on my workstation, and headless Ubuntu Server in VirtualBox on this same workstation.

I'd like to write a web app and deploy it on Ubuntu Server in the VM, then load it in a web browser on my workstation.

Is this possible, and if so how? Thanks!

asked 09 Aug '10, 01:36

Kurtosis's gravatar image

Kurtosis
1081310
accept rate: 50%




Found the answer: Change the Virtual Box -> Settings (for the guest OS) -> Network -> Attached to: Bridged Adapter.

link

answered 11 Aug '10, 18:16

Kurtosis's gravatar image

Kurtosis
1081310
accept rate: 50%

You would navigate to the ip address of the VM, and the port your web server is listening on.

so a quick

/sbin/ifconfig 

should give you the ip address of your vm. Assuming you are running apache, you would navigate to the webserver like any other web page.

http://<INSERT-IP-HERE>
link

answered 09 Aug '10, 02:55

rfelsburg's gravatar image

rfelsburg ♦
6061618
accept rate: 25%

For examples of exactly this, see http://www.turnkeylinux.org

link

answered 18 May '11, 14:09

sethbrown's gravatar image

sethbrown
511
accept rate: 0%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×81
×9
×6

Asked: 09 Aug '10, 01:36

Seen: 2,239 times

Last updated: 18 May '11, 14:09

powered by OSQA