Virtualbox on windows11 and Hyper-v

Discussions related to using VirtualBox on Windows hosts.
Post Reply
zhangfx
Posts: 7
Joined: 5. Dec 2019, 08:25

Virtualbox on windows11 and Hyper-v

Post by zhangfx »

When I bridge Hyper-V Virtual Ethernet Adaptor start a virtual machine,It crash with null point exception. Can someone help me with the question.

Pictures show the question.
Attachments
微信图片_20220114095556.png
微信图片_20220114095556.png (23.71 KiB) Viewed 1830 times
微信图片_20220114095547.png
微信图片_20220114095547.png (36.32 KiB) Viewed 1830 times
mpack
Site Moderator
Posts: 39156
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: Virtualbox on windows11 and Hyper-v

Post by mpack »

The Hyper-v Ethernet adapter is designed to be used by Hyper-v, not by VirtualBox.

The purpose of VirtualBox's bridging feature is to connect the virtual NIC inside a VM to a physical NIC on the host. Those are the realms being bridged. As far as I'm aware, connections to third party virtual NICs are not supported - and make no sense (VirtualBox has its own virtual NICs if that's what you want).
BillG
Volunteer
Posts: 5102
Joined: 19. Sep 2009, 04:44
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows 10,7 and earlier
Location: Sydney, Australia

Re: Virtualbox on windows11 and Hyper-v

Post by BillG »

This is a bit of a puzzle. How does the OP see a Hyper-V Ethernet adapter to bridge to? Is he perhaps running VirtualBox inside a Hyper-V vm? Or does he simply have Hyper-V installed on the host so that the host has a Hyper-V Ethernet adapter?

I have not run Hyper-V for a while so I am not sure whether a VirtualBox host with Hyper-V installed would offer a Hyper-V adapter as a choice for bridging. I guess it could.
Bill
BillG
Volunteer
Posts: 5102
Joined: 19. Sep 2009, 04:44
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows 10,7 and earlier
Location: Sydney, Australia

Re: Virtualbox on windows11 and Hyper-v

Post by BillG »

Answering my own question - yes it does.

I enabled Hyper- V on my test machine. VirtualBox does indeed offer the Hyper-V adapter as an option to bridge to.
Bill
mpack
Site Moderator
Posts: 39156
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: Virtualbox on windows11 and Hyper-v

Post by mpack »

If Windows offers that NIC to all apps that ask, and I don't see how else it could work, then yes - it would have to appear in VirtualBox. VirtualBox must have code to suppress its own host-only adapter.
Post Reply