Bridged networking not working in Virtualbox under Windows 10

后端 未结 17 1336
情歌与酒
情歌与酒 2021-01-29 22:51

I just upgraded my laptop from Windows 7 to Windows 10 and found that I am unable to start Virtualbox VMs configured with a bridged adapter.

See the configuration below:

相关标签:
17条回答
  • 2021-01-29 23:16

    First of all you have to create a VirtualBox Host-Only Ethernet adapter

    In Virtualbox :

    • Go to File > Preferences On the Network tab select Host only Networks click on "add a Host-only adapter" give it a name by default it is "VirtualBox Host-Only Ethernet adapter"

    In Windows :

    • go to Network connections on Windows and highlight both the real adapter and the new virtual ethernet adapter that you just created.
    • Right click and select "Bridge Connections", it's going to create a network bridge in Windows.

    Now configure your VM :

    • in the Network part you can activate a new adapter and then select Attached to Host only adapter
    • Choose the VirtualBox Host-Only Ethernet adapter you have just created

    You can now configure your static IP Address by modifying /etc/network/interfaces :

    auto eth0
    iface eth0 inet static
    address 10.1.1.100
    netmask 255.255.255.0
    gateway 10.1.1.1
    

    You can now restart eth0 by doing :

    sudo ifdown eth0
    sudo ifup eth0
    

    Some wireless adapters don't work

    0 讨论(0)
  • 2021-01-29 23:19

    i had same problem. i updated to new version of VirtualBox 5.2.26 and checked to make sure Bridge Adapter was enabled in the installation process now is working

    0 讨论(0)
  • 2021-01-29 23:20

    Install the latest Virtual box 5.x and this issue will be resolved.

    0 讨论(0)
  • 2021-01-29 23:20

    From Reddit:

    https://www.reddit.com/r/Windows10/comments/39af75/for_my_win10_companions_heres_how_to_get/

    I can't see the original source in this thread, although I would like to.

    I am using these instructions with a laptop that upgraded from windows 8 to windows 10. I have to repeat the last instructions after rebooting.

    I have test an get solution for my self and want to share my solution. - Host Only worked - Bridge Adapter worked

    My Configuration is - Surface Pro 1 - Clean install Windows 10 x64 build 10130 - VirtualBox-5.0.0_RC1-100731-Win.exe

    (this is my opinion but not tested on how to remove previous version by install VirtualBox-5.0.0_RC1-100731-Win.exe with select all function to install its will fault and rollback all, then its same as uninstall)

    Install Step - Right Click on VirtualBox-5.0.0_RC1-100731-Win.exe and select "Run as Administrator" - "Unselect" option bridge network

    • next until finish

    • Open "Device Manager", you can use search bar to get this, under "Network adapters" then Right Click "VirtualBox Host-Only Ethernet Adapter" select "Update Driver Software" select "Search automactic" wait until its finish

    • Open "Network Connections", you can use search bar to get this, at here you should find VirtualBox Host-Only Ethernet Adapter
    • Open "CMD", you can use search bar to get this, Right Click and Select Run as Administrator
    • cd to your install path and run command "VirtualBox-5.0.0_RC1-100731-Win.exe -extract" its will return pop-up tell where is extracted folder
    • in extracted folder extract "VirtualBox-5.0.0_RC1-r100731-MultiArch_amd64.msi" by 7-Zip or any similar
    • in msi extracted folder rename all files by remove file_ in front of them
    • copy "VBoxNetFltNobj.sys" and "VBoxNetFlt.sys" to C:\Windows\System32\
    • Open "CMD", you can use search bar to get this, Right Click and Select Run as Administrator run command "regsvr32.exe /s VBoxNetFltNobj.sys" run command "regsvr32.exe /s VBoxNetFlt.sys"
    • Open "Network Connections", you can use search bar to get this, Right Click on any real network adapter select Properties select Install select Service select "Have Disk" and browse to "VBoxDrv.inf" select "VirtualBox NDIS6 Bridged Networking Driver" after finish install you should see its avaliable in this connection
    • On Start Menu Right Click on "Orcle VM VirtualBox" select open file location

    • Right Click on Shortcut then select properties on tab "Compatibility" checked "Run this Program as Administrator"

    !!! this very important to run application with adminstrator if not you will lose host-only network adapter

    • Open "Virtual Box" select file > preference select network then select Host On Network select edit change ip to 192.168.56.1 and netmask to 255.255.255.0
    • Now you can use both host-only and bridge network on your guest

    I think reason why normal installation was error is about Administrator access level when regis service and run application

    Sorry for my bad english and this is so long procedure

    Hope this will work for you too. ^_^!

    0 讨论(0)
  • 2021-01-29 23:21

    I solved it with similar way to @Khalil's but I attched to 'Bridged Adapter' instead of 'Host-only Adapter'. Here is more detail with screenshots.

    0 讨论(0)
  • 2021-01-29 23:24

    This is how I mananged to fix this problem:

    Enable "Windows 8" compatibility for VirtualBox executable: right-click on VirtualBox shortcut>Properties: in Properties dialog box: switch to "Compatibility" tab, under "Compatibility mode" section, select the check box next to: "Run this program in compatibility mode", make sure "Windows 8" is selected in combo box. click Ok, run VirtualBox again! (it's not needed to run as Administrator)

    p.s.: It seems that VirtualBox doesn't yet fully support Windows 10, so some features might not work properly on some computers

    0 讨论(0)
提交回复
热议问题