I'm new at all this but I was trying to setup a VirtualBox Ubuntu Server an a regular Ubuntu desktop to try and test setup a Joomla LAMP server. However, I can't figure out if I"m connected or not and how to connect to the VB server via browser to test if Apache is up on the VB box.
When I do an "ifconfig" I get lo (loopback) as the only adapter setup. But I know that NAT is sort of piggyback on top of my current system. Is there anyway to check if the networking is up on a server (cmd line only) environment.
Also, how would I connect from my regular host (Ubuntu desktop) to the web server on the VB Box? I tried typing in the computer name I setup (Joomla) but it just forwards me to the regular Joomla site.
Thanks!
Ubuntu Server Setup
More Digging
Actually, I've been working more on this and I'm pretty convinced NAT just isn't quite working. I've reviewed Chap 6 on NAT but it's pretty short and there doesn't seem to be many (or any) options to play with for NAT setup.
I'm only getting lo (loopback) when I do an ifconfig and even trying to do an apt-get for an ssh server package fails so i'm pretty sure that I'm not getting any connectivity.
I've setup with NAT and WinXP on this system and it just seems to work but for some reason the WinXP system with NAT pulls an address and the Ubuntu server just initiates with lo (loopback) only.
Are there some other settings I need to do on the UServer to get it to work correctly?
Any suggestions, threads to review or ideas?
Thanks
I'm only getting lo (loopback) when I do an ifconfig and even trying to do an apt-get for an ssh server package fails so i'm pretty sure that I'm not getting any connectivity.
I've setup with NAT and WinXP on this system and it just seems to work but for some reason the WinXP system with NAT pulls an address and the Ubuntu server just initiates with lo (loopback) only.
Are there some other settings I need to do on the UServer to get it to work correctly?
Any suggestions, threads to review or ideas?
Thanks
-
baf
- Volunteer
- Posts: 829
- Joined: 27. Sep 2008, 06:18
- Primary OS: Mac OS X Leopard
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: linux,xp,win7
- Location: Luleå or Skellefteå, Sweden
Show your guests output of
and
My interfaces is:
And I think you want one like that too.
Code: Select all
dmesg |grep eth0Code: Select all
cat /etc/network/interfacesCode: Select all
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo eth0
iface lo inet loopback
iface eth0 inet dhcpSome say: "You learn as long as you live".
My way: "You live as long as you learn".
My way: "You live as long as you learn".
Thanks I ended up editing the /etc/networking/interfaces file and adding the eth0 lines and restarting.
In the meantime I went and uninstalled Virtualbox and restalled with the latest 2.1.2 version (older 2.0.1 version in Ubuntu package manager) to make sure I was working with the latest version.
However after installing from the deb package, it didn't add the menu options to run and I haven't figured out where the program was installed to manually run or add to app menu lol
Anybody know where the program files are installed if u manually install the deb?
In the meantime I went and uninstalled Virtualbox and restalled with the latest 2.1.2 version (older 2.0.1 version in Ubuntu package manager) to make sure I was working with the latest version.
However after installing from the deb package, it didn't add the menu options to run and I haven't figured out where the program was installed to manually run or add to app menu lol
Anybody know where the program files are installed if u manually install the deb?
-
Sasquatch
- Volunteer
- Posts: 17798
- Joined: 17. Mar 2008, 13:41
- Primary OS: Debian other
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Windows XP, Windows 7, Linux
- Location: /dev/random
For Linux Hosts, the menu launcher sometimes didn't appear until you logged out and back in.
As for your question for accessing the Guest and it's network. The NIC is set properly in the VM settings, right? Well then, you have two options to access your Guest. Either with Port Forwarding as described in the manual which causes a port on the HOST to be forwarded to the Guest. So connect to the Host on the given port and you're on the Guest.
Another option is to use Host Interfaces. With that, the Guest becomes a normal machine on the network with it's own IP address in the same range. You can then access the VM on that IP.
As for your question for accessing the Guest and it's network. The NIC is set properly in the VM settings, right? Well then, you have two options to access your Guest. Either with Port Forwarding as described in the manual which causes a port on the HOST to be forwarded to the Guest. So connect to the Host on the given port and you're on the Guest.
Another option is to use Host Interfaces. With that, the Guest becomes a normal machine on the network with it's own IP address in the same range. You can then access the VM on that IP.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org
Retired from this Forum since OSSO introduction.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org
Retired from this Forum since OSSO introduction.