Hyper-V Host Bridge networking VM


jimbo45

Well-known member
Power User
VIP
Local time
1:01 AM
Posts
2,040
Location
Hafnarfjörður IS
OS
Windows XP,7,10,11 Linux Arch Linux
Hi folks
Questions to any HYPER-V users creating VM's.

1) Does a Guest have proper Internet and Host access with Bridged networking when using an internal Wireless Nic. (No prob with ethernet card).
2) Can a Guest on Hyper-V boot from a physical USB device such as a USB thumb drive
3) can an integrated webcam from a laptop be "re-directed" to the VM either bu USB re-direct or from the VM's config file.

Thanks

Cheers
jimbo
 

My Computer

System One

  • OS
    Windows XP,7,10,11 Linux Arch Linux
    Computer type
    PC/Desktop
    CPU
    2 X Intel i7

cereberus

Well-known member
Pro User
VIP
Local time
2:01 AM
Posts
2,521
OS
Windows 10 Pro + others in VHDs
Item 1 - Not sure what your question means. My host OS is using wifi nic. When I create a vm, I either select the wifi nic as an external switch, or select the default switch, and then I have full internet access. I can also network to other pcs etc. From inside the vm, it looks like I am connected to ethernet.

Item 2 - I do not know of anyway to do this, but it is easy enough to copy usb to an iso and boot from iso.

Item 3 - no idea.
 

My Computer

System One

  • OS
    Windows 10 Pro + others in VHDs
    Computer type
    Laptop
    Manufacturer/Model
    ASUS Vivobook 14
    CPU
    I7
    Motherboard
    Yep, Laptop has one.
    Memory
    16 GB
    Graphics Card(s)
    Integrated Intel Iris XE
    Sound Card
    Realtek built in
    Monitor(s) Displays
    N/A
    Screen Resolution
    1920x1080
    Hard Drives
    1 TB Optane NVME SSD, 1 TB NVME SSD
    PSU
    Yep, got one
    Case
    Yep, got one
    Cooling
    Stella Artois
    Keyboard
    Built in
    Mouse
    Bluetooth , wired
    Internet Speed
    72 Mb/s :-(
    Browser
    Edge mostly
    Antivirus
    Defender
    Other Info
    TPM 2.0

NavyLCDR

Well-known member
Power User
VIP
Local time
6:01 PM
Posts
999
OS
Windows 11
1. The host OS manages the WiFi adapter and WiFi connection and it presents it to the guest OS as a Microsoft Hyper-V Network Adapter, which is recognized as ethernet by the guest OS system.

2. Yes. As long as the USB drive is not recognized as a removable drive and can be placed offline. There are some USB flash drives that are not marked as removable in their controllers and you can use them with no special hacks. Some USB flash drives that do have the "removable" bit set in their controllers can be used as well with a modified driver .inf file that causes them to appear as fixed. Once the drive is placed offline, then it can be attached to a Hyper-V VM as a disk drive, and the VM can boot from it.

Code:
C:\Windows\System32>diskpart

Microsoft DiskPart version 10.0.22621.1

Copyright (C) Microsoft Corporation.
On computer: RAIDER

DISKPART> list disk

  Disk ###  Status         Size     Free     Dyn  Gpt
  --------  -------------  -------  -------  ---  ---
  Disk 0    Online          953 GB      0 B        *
  Disk 1    Online          465 GB  2048 KB        *
  Disk 2    Online          119 GB   119 GB

DISKPART> select disk 2

Disk 2 is now the selected disk.

DISKPART> offline disk

DiskPart successfully offlined the selected disk.

Capture1.jpg
Capture1a.jpg

Let me work on #3....
 

My Computers

System One System Two

  • OS
    Windows 11
    Computer type
    PC/Desktop
    Manufacturer/Model
    Homebuilt
    CPU
    AMD Ryzen 7 3800XT
    Motherboard
    ASUS ROG Crosshair VII Hero (WiFi)
    Memory
    32GB
    Graphics Card(s)
    EVGA GeForce GTX 1080 Ti
  • Operating System
    Windows 11 Education
    Computer type
    Laptop
    Manufacturer/Model
    Dell Inspiron 7773
    CPU
    Intel i7-8550U
    Memory
    32GB
    Graphics card(s)
    Nvidia Geforce MX150
    Sound Card
    Realtek
    Monitor(s) Displays
    17"
    Screen Resolution
    1920 x 1080
    Hard Drives
    Toshiba 512GB NVMe SSD
    SK Hynix 512GB SATA SSD
    Internet Speed
    Fast!

cereberus

Well-known member
Pro User
VIP
Local time
2:01 AM
Posts
2,521
OS
Windows 10 Pro + others in VHDs
1. The host OS manages the WiFi adapter and WiFi connection and it presents it to the guest OS as a Microsoft Hyper-V Network Adapter, which is recognized as ethernet by the guest OS system.

2. Yes. As long as the USB drive is not recognized as a removable drive and can be placed offline. There are some USB flash drives that are not marked as removable in their controllers and you can use them with no special hacks. Some USB flash drives that do have the "removable" bit set in their controllers can be used as well with a modified driver .inf file that causes them to appear as fixed. Once the drive is placed offline, then it can be attached to a Hyper-V VM as a disk drive, and the VM can boot from it.

Code:
C:\Windows\System32>diskpart

Microsoft DiskPart version 10.0.22621.1

Copyright (C) Microsoft Corporation.
On computer: RAIDER

DISKPART> list disk

  Disk ###  Status         Size     Free     Dyn  Gpt
  --------  -------------  -------  -------  ---  ---
  Disk 0    Online          953 GB      0 B        *
  Disk 1    Online          465 GB  2048 KB        *
  Disk 2    Online          119 GB   119 GB

DISKPART> select disk 2

Disk 2 is now the selected disk.

DISKPART> offline disk

DiskPart successfully offlined the selected disk.

View attachment 38446
View attachment 38447

Let me work on #3....
Item 1 - better description than I made!

Item 2 - I had forgotten about these - they were predominantly for Windows To Go.

As far as I know, the manufacturers have pretty much abandoned these now WTG is no longer supported.

One thought I have had is if you could put a vhd on a removable usb drive with all the boot files, and attach vhd to Hyper-v as vhds are seen as a hard drive, and make that first in boot order? I see a test coming on......
 

My Computer

System One

  • OS
    Windows 10 Pro + others in VHDs
    Computer type
    Laptop
    Manufacturer/Model
    ASUS Vivobook 14
    CPU
    I7
    Motherboard
    Yep, Laptop has one.
    Memory
    16 GB
    Graphics Card(s)
    Integrated Intel Iris XE
    Sound Card
    Realtek built in
    Monitor(s) Displays
    N/A
    Screen Resolution
    1920x1080
    Hard Drives
    1 TB Optane NVME SSD, 1 TB NVME SSD
    PSU
    Yep, got one
    Case
    Yep, got one
    Cooling
    Stella Artois
    Keyboard
    Built in
    Mouse
    Bluetooth , wired
    Internet Speed
    72 Mb/s :-(
    Browser
    Edge mostly
    Antivirus
    Defender
    Other Info
    TPM 2.0

jimbo45

Well-known member
Power User
VIP
Thread Starter
Local time
1:01 AM
Posts
2,040
Location
Hafnarfjörður IS
OS
Windows XP,7,10,11 Linux Arch Linux
1. The host OS manages the WiFi adapter and WiFi connection and it presents it to the guest OS as a Microsoft Hyper-V Network Adapter, which is recognized as ethernet by the guest OS system.

2. Yes. As long as the USB drive is not recognized as a removable drive and can be placed offline. There are some USB flash drives that are not marked as removable in their controllers and you can use them with no special hacks. Some USB flash drives that do have the "removable" bit set in their controllers can be used as well with a modified driver .inf file that causes them to appear as fixed. Once the drive is placed offline, then it can be attached to a Hyper-V VM as a disk drive, and the VM can boot from it.

Code:
C:\Windows\System32>diskpart

Microsoft DiskPart version 10.0.22621.1

Copyright (C) Microsoft Corporation.
On computer: RAIDER

DISKPART> list disk

  Disk ###  Status         Size     Free     Dyn  Gpt
  --------  -------------  -------  -------  ---  ---
  Disk 0    Online          953 GB      0 B        *
  Disk 1    Online          465 GB  2048 KB        *
  Disk 2    Online          119 GB   119 GB

DISKPART> select disk 2

Disk 2 is now the selected disk.

DISKPART> offline disk

DiskPart successfully offlined the selected disk.

View attachment 38446
View attachment 38447

Let me work on #3....


Hi there
What I'm trying to do is attach the laptops built in webcam as a physcal USB (or even PCI) device to the VM and then use the VM's Webcam application to run.

I'm not showing my ugly mug on the webcam but it works brilliantly on a KVM/QEMU host with a W11 Guest.

1) display the USB components on the Host (or PCI too)

Screenshot_20220905_212935.png


Add device to the VM's config



Screenshot_20220905_211933.png

Now simply run the webcam app (or teams / zoom etc) on the Guest -- no probs. W11 guests have no probs with this.

Cheers
jimbo
 

My Computer

System One

  • OS
    Windows XP,7,10,11 Linux Arch Linux
    Computer type
    PC/Desktop
    CPU
    2 X Intel i7

cereberus

Well-known member
Pro User
VIP
Local time
2:01 AM
Posts
2,521
OS
Windows 10 Pro + others in VHDs
Well, I just used this tutorial, and webcam works great in a Hyper-V windows VM - I could see my debonair features with no problem with default camera app.

Of course my host is Windows 11 Pro.


In fact, you even replied to it (post is 18 months old!)
 
Last edited:

My Computer

System One

  • OS
    Windows 10 Pro + others in VHDs
    Computer type
    Laptop
    Manufacturer/Model
    ASUS Vivobook 14
    CPU
    I7
    Motherboard
    Yep, Laptop has one.
    Memory
    16 GB
    Graphics Card(s)
    Integrated Intel Iris XE
    Sound Card
    Realtek built in
    Monitor(s) Displays
    N/A
    Screen Resolution
    1920x1080
    Hard Drives
    1 TB Optane NVME SSD, 1 TB NVME SSD
    PSU
    Yep, got one
    Case
    Yep, got one
    Cooling
    Stella Artois
    Keyboard
    Built in
    Mouse
    Bluetooth , wired
    Internet Speed
    72 Mb/s :-(
    Browser
    Edge mostly
    Antivirus
    Defender
    Other Info
    TPM 2.0

jimbo45

Well-known member
Power User
VIP
Thread Starter
Local time
1:01 AM
Posts
2,040
Location
Hafnarfjörður IS
OS
Windows XP,7,10,11 Linux Arch Linux
Well, I just used this tutorial, and webcam works great in a Hyper-V windows VM - I could see my debonair features with no problem with default camera app.

Of course my host is Windows 10 Pro.


In fact, you even replied to it (post is 18 months old!)
Thanks

Must be getting old !!! anyway it works in W11 pro.

Cheers
jimbo
 

My Computer

System One

  • OS
    Windows XP,7,10,11 Linux Arch Linux
    Computer type
    PC/Desktop
    CPU
    2 X Intel i7
Top Bottom