Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: Virtualbox Web Server

  1. #1
    Join Date
    Jan 2006
    Location
    Summerhill, PA USA
    Beans
    53
    Distro
    Kubuntu 9.04 Jaunty Jackalope

    Virtualbox Web Server

    I set up an ubuntu web server in a VirtualBox. I need to install joomla to this web server, but I don't know of a way to make the server accessible on my host machine. I tried to just use the ip address in my browser but it didn't work.

    So my question is, how to set up Virtual box to have guest machines accessible as a network connection from the host machine?

    Thanks in advance,

    Alex
    The only limit to innovation is the breadth of human imagination.

  2. #2
    Join Date
    Feb 2009
    Location
    Texas
    Beans
    Hidden!
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Virtualbox Web Server

    Quote Originally Posted by open_coder View Post
    I set up an ubuntu web server in a VirtualBox. I need to install joomla to this web server, but I don't know of a way to make the server accessible on my host machine. I tried to just use the ip address in my browser but it didn't work.

    So my question is, how to set up Virtual box to have guest machines accessible as a network connection from the host machine?

    Thanks in advance,

    Alex
    Please use Bridged network option, instead of Nat. It will give a real private IP to your VM but still, you will have connection to "outside" world. With Bridged, your VM NIC will act like a different network card which can communicate and exchange packets with your host.

  3. #3
    Join Date
    Jan 2006
    Location
    Summerhill, PA USA
    Beans
    53
    Distro
    Kubuntu 9.04 Jaunty Jackalope

    Re: Virtualbox Web Server

    Thanks.
    The only limit to innovation is the breadth of human imagination.

  4. #4
    Join Date
    Sep 2005
    Beans
    1,596
    Distro
    Ubuntu Mate 20.04 Focal Fossa

    Re: Virtualbox Web Server

    That's actually how I'm using Ubuntu server to try out Web Applications (and creations of my own). If you're serious about having your own dedicated server, you can get a low-end machine for $200 which will do everything you need, if not more.
    MBA M1 - M1 8GB 256GB - macOS Monterey
    MSI GL65 - i5-10300H 16GB 512GB GTX 1650 Windows 11
    Galaxy Book Go - Snapdragon 7c Gen 2 4GB 128GB Windows 11

  5. #5
    Join Date
    Oct 2007
    Beans
    54
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Virtualbox Web Server

    Please use Bridged network option, instead of Nat
    Many thanks! I just spent all morning trying to work this out before I got lucky and found this post. I've now changed the settings for the VirtualBox guest (the server), and all works as it should.

  6. #6
    Join Date
    Sep 2005
    Location
    Italy
    Beans
    166
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Virtualbox Web Server

    Quote Originally Posted by jocampo View Post
    Please use Bridged network option, instead of Nat
    thanks a lot mate


  7. #7
    Join Date
    Jan 2009
    Beans
    17

    Re: Virtualbox Web Server

    Late to the game, but thanks for the post! This would've driven me nuts.

  8. #8
    Join Date
    Dec 2006
    Beans
    348

    Re: Virtualbox Web Server

    Hmm. I tried setting up a bridged network interface, but only loopback shows up on ifconfig. Any ideas what I could be missing?

  9. #9
    Join Date
    Dec 2006
    Beans
    348

    Re: Virtualbox Web Server

    Still no luck. I've tried host networking, and also bridged. Here is my setup:

    Host: Ubuntu 10.04 desktop
    Guest: Ubuntu 10.10 server
    Network: Wireless

    Any suggestions? I've read a lot of discussions where people were able to get it working, but I have had no such luck.

  10. #10
    Join Date
    Sep 2005
    Beans
    1,596
    Distro
    Ubuntu Mate 20.04 Focal Fossa

    Re: Virtualbox Web Server

    Quote Originally Posted by pwnedd View Post
    Still no luck. I've tried host networking, and also bridged. Here is my setup:

    Host: Ubuntu 10.04 desktop
    Guest: Ubuntu 10.10 server
    Network: Wireless

    Any suggestions? I've read a lot of discussions where people were able to get it working, but I have had no such luck.
    A new thread would be better, but here's what we need to check:

    1. Make sure you have these two packages installed on your host system (install in terminal like so):
    Code:
    gksudo apt-get install dkms build-essential
    2. After those are installed run (in terminal):
    Code:
    gksudo /etc/init.d/vboxdrv setup
    Reboot.
    Startup the VM and see if it gives you like an eth1 or that for the vbox ethernet adapter. Let me know if that works.
    MBA M1 - M1 8GB 256GB - macOS Monterey
    MSI GL65 - i5-10300H 16GB 512GB GTX 1650 Windows 11
    Galaxy Book Go - Snapdragon 7c Gen 2 4GB 128GB Windows 11

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •