You are not logged in.

#1 2018-01-22 15:13:56

Alvis
Member
Registered: 2018-01-22
Posts: 4

How does bridged networking work in Virtualbox [solved]

Hi everyone

My english is not very good. I will try to explain.

I use the bridged adapter in VirtualBox.

I could launch the guest, but the guest has not connected the network.

Host: Arch Linux
Guest: Windows XP
Another Guest: Debian 6

IP address:

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
  link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
  inet 127.0.0.1/8 scope host lo
  valid_lft forever preferred_lft forever
  inet6 ::1/128 scope host
  valid_lft forever preferred_lft forever
2: enp4s0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc fq_codel state DOWN group default qlen 1000
  link/ether f4:6d:04:f5:37:f0 brd ff:ff:ff:ff:ff:ff
3: wlp3s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
  link/ether 74:2f:68:14:c6:07 brd ff:ff:ff:ff:ff:ff
  inet 192.168.1.7/24 brd 192.168.1.255 scope global dynamic noprefixroute wlp3s0
  valid_lft 86145sec preferred_lft 86145sec
  inet6 fe80::a0db:cf8:ec98:a54e/64 scope link noprefixroute
  valid_lft forever preferred_lft forever

I have installed net-tool, linux-headers, linux-lts-headers too, and related to the VirtualBox package following:

local/virtualbox 5.2.6-1
  Powerful x86 virtualization for enterprise as well as home use
local/virtualbox-guest-iso 5.2.7-1
  The official VirtualBox Guest Additions ISO image
local/virtualbox-host-dkms 5.2.6-1
  VirtualBox Host kernel modules sources

systemctl status systemd-modules-load.service :

● systemd-modules-load.service - Load Kernel Modules
  Loaded: loaded (/usr/lib/systemd/system/systemd-modules-load.service; static;
  Active: active (exited) since Mon 2018-01-22 17:24:10 CST; 26s ago
  Docs: man:systemd-modules-load.service(8)
  man:modules-load.d(5)
  Process: 212 ExecStart=/usr/lib/systemd/systemd-modules-load (code=exited, sta
 Main PID: 212 (code=exited, status=0/SUCCESS)

Jan 22 17:24:10 archlinux systemd-modules-load[212]: Inserted module 'vboxdrv'
Jan 22 17:24:10 archlinux systemd-modules-load[212]: Inserted module 'vboxnetadp
Jan 22 17:24:10 archlinux systemd-modules-load[212]: Inserted module 'vboxnetflt
Jan 22 17:24:10 archlinux systemd[1]: Started Load Kernel Modules.
Warning: Journal has been rotated since unit was started. Log output is incomple

/etc/modules-load.d/virtualbox-host-modules-arch.conf:

vboxdrv
vboxnetadp
vboxnetflt

--------------------------------------------------------------------------------------------------------------------------------
[solved]


I forgot that Debian6 is using an existing virtual hard disk file.

So I delete /etc/udev/rules.d/70-persistent-net.rules in Debian6 and restart guest. Than bridge network is work.

In WinXP guest, I reinstall it and then bridge network also work.

Last edited by Alvis (2018-01-29 07:05:37)

Offline

#2 2018-01-22 15:20:35

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: How does bridged networking work in Virtualbox [solved]

My guess is that you've configured the bridge to use the wired network instead of the wireless network.

VirtualBox Documentation wrote:

To enable bridged networking, all you need to do is to open the Settings dialog of a virtual machine, go to the "Network" page and select "Bridged network" in the drop down list for the "Attached to" field. Finally, select desired host interface from the list at the bottom of the page, which contains the physical network interfaces of your systems.

Last edited by Slithery (2018-01-22 15:23:33)


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#3 2018-01-22 15:55:14

Alvis
Member
Registered: 2018-01-22
Posts: 4

Re: How does bridged networking work in Virtualbox [solved]

slithery wrote:

My guess is that you've configured the bridge to use the wired network instead of the wireless network.

VirtualBox Documentation wrote:

To enable bridged networking, all you need to do is to open the Settings dialog of a virtual machine, go to the "Network" page and select "Bridged network" in the drop down list for the "Attached to" field. Finally, select desired host interface from the list at the bottom of the page, which contains the physical network interfaces of your systems.


Hi

I've used the wireless network (wlp3s0) in the VirtualBox.
In addition, I've also tried wired network (enp4s0) and confirmed that can be connected to the network. But the guest has not connected the network.

Offline

#4 2021-01-09 03:20:17

roninf
Member
Registered: 2019-01-17
Posts: 8

Re: How does bridged networking work in Virtualbox [solved]

Hi! To let Archlinux use the bridged network adaptor from inside a Virtualbox VM, simply run these commands!

sudo pacman -S dhcpcd virtualbox-guest-utils-nox
sudo systemctl enable --now dhcpcd
sudo systemctl enable --now vboxservice

Offline

#5 2021-01-09 09:46:05

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 23,173

Re: How does bridged networking work in Virtualbox [solved]

Please don't necrobump 3 year old solved threads.

Closing.

Offline

Board footer

Powered by FluxBB