Ubuntu 9.04 Host VirtualBox 3.0.2
Host have 2 dedicated IPs on eth0:
111.111.111.2
111.111.111.3
Router in the net:
111.111.111.1
#cat /etc/network/interfaces
# device: eth0
auto eth0
iface eth0 inet static
address 111.111.111.2
broadcast 188.40.32.255
netmask 255.255.255.0
gateway 111.111.111.1
I need to attach 111.111.111.3 to the guest.
I run the following command:
VBoxManage modifyvm VM --ostype RedHat_64 --acpi on --memory 1024 --vrdp on --vrdpport 9978 --vrdpauthtype null ...... --nic1 bridged --cableconnected1 on --bridgeadapter1 eth0
This does not work, the guest is not even seen the host.
What am I doing wrong?
Bridged networking problem
-
DLag
- Posts: 4
- Joined: 2. May 2009, 15:49
- Primary OS: Ubuntu other
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: CentOS, Debian, Windows
- Location: Kharkov, Ukraine
- Contact:
Bridged networking problem
Last edited by DLag on 14. Jul 2009, 10:11, edited 1 time in total.
-
Perryg
- Site Moderator
- Posts: 34369
- Joined: 6. Sep 2008, 22:55
- Primary OS: Linux other
- VBox Version: OSE self-compiled
- Guest OSses: *NIX
Re: Bridged networking problem
Maybe this will help. Look at the broadcast address
- Attachments
-
- Dlang.jpg (50.75 KiB) Viewed 1588 times
-
DLag
- Posts: 4
- Joined: 2. May 2009, 15:49
- Primary OS: Ubuntu other
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: CentOS, Debian, Windows
- Location: Kharkov, Ukraine
- Contact:
Re: Bridged networking problem
Ok. I have edited the post.
-
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
Re: Bridged networking problem
So it still doesn't work? What if you put only the IP and netmask for the config, can you access the other machines or not? Just a ping to them will suffice. When that's working, add the gateway and try to access an external IP, like that of Google. You can add DNS too of course
. You don't always need the broadcast address, it's done automatically.
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.
-
DLag
- Posts: 4
- Joined: 2. May 2009, 15:49
- Primary OS: Ubuntu other
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: CentOS, Debian, Windows
- Location: Kharkov, Ukraine
- Contact:
Re: Bridged networking problem
The problem still remains.
At home Ubuntu it works fine.
There may be a problem because the interfaces are created from /etc/network/interfaces rather than NetworkManager?
Or maybe the problem because the server is Ubuntu server edition and the Headless mode?
At home Ubuntu it works fine.
There may be a problem because the interfaces are created from /etc/network/interfaces rather than NetworkManager?
Or maybe the problem because the server is Ubuntu server edition and the Headless mode?
-
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
Re: Bridged networking problem
Still not clear what your situation is and the exact problem.
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.
-
DLag
- Posts: 4
- Joined: 2. May 2009, 15:49
- Primary OS: Ubuntu other
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: CentOS, Debian, Windows
- Location: Kharkov, Ukraine
- Contact:
Re: Bridged networking problem
Sasquatch, I can give you access to the server if this helps.Sasquatch wrote:Still not clear what your situation is and the exact problem.
-
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
Re: Bridged networking problem
You say that it works just fine at home, so I don't know what your problem is now. Do you use the same virtual hard disk image at work too, and is it giving problems there? If so, you have to make sure that in the config of both VMs, the MAC address for the NICs is the same. Linux creates new interface names when the MAC address changes. You can see that by running ifconfig -a in a terminal. The file /etc/udev/rules.d/70-persistent-net.rules contains these names too. Clearing the file, or removing it will generate a new list with the current MAC addresses as interfaces on reboot.
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.