Hyper-v Ubuntu 21.10


Pirilampo2

Well-known member
Member
Local time
10:17 AM
Posts
118
Location
Abrantes, Santarém, Portugal
OS
windows 11 Pro 64-bits 21H2 22000.708
My Hyper-v Ubuntu 21.10, enhanced session full screen (3840x2160).
Ubuntu 21.10-2.png
Windows 11 21H2 22000.593.
 
Windows Build/Version
windows 11 21H2 22000.593

My Computers

System One System Two

  • OS
    windows 11 Pro 64-bits 21H2 22000.708
    Computer type
    PC/Desktop
    Manufacturer/Model
    Custom self built
    CPU
    AMD Ryzen 3 2200G with Radeon Vega Graphics 3.50 GHz
    Motherboard
    MSI B350 PC MATE
    Memory
    16,00 GB TeamGroup DDR4-2667
    Graphics Card(s)
    Nvidia GeForce GT 730 & Radeon™ Vega 8 Graphics
    Sound Card
    nVIDIA GK208 HDMI/DP High Definition Audio Controller
    Monitor(s) Displays
    AOC 27"
    Screen Resolution
    3840x2160
    Hard Drives
    Seagate 1TB BarraCuda 64MB 7200rpm SATA III 3.5 - ST1000DM010
    PSU
    LC-Power 650W V2.3
    Case
    ATX Nox Hummer ZS
    Cooling
    No cooling
    Keyboard
    Logitech
    Mouse
    Logitech
    Internet Speed
    500/100
    Browser
    Firefox 100.0.2
    Antivirus
    Windows Defender
    Other Info
    Optical Drive ASUS DRW-24D5MT
  • Operating System
    Windows 11 Pro (x64) 21H2 Build 22000.708
    Computer type
    Laptop
    Manufacturer/Model
    Asus VivoBook Max X541NA
    CPU
    Intel Celeron N3350 @ 1.10GHz
    Motherboard
    ASUS X541NA
    Memory
    4 GB
    Graphics card(s)
    Intel Apollo Lake SoC - Graphics and Display Controller (12 EU) [B1] [ASUS]
    Sound Card
    Intel Apollo Lake SoC - High Definition Audio Controller
    Monitor(s) Displays
    NT156WHM-N42 15.6"
    Screen Resolution
    1366 x 768
    Hard Drives
    Seagate ST1000LM035-1RK172
    PSU
    Asus Battery
    Internet Speed
    500 Mbps / 100 MBps
    Browser
    Firefox 100.0.2

Pirilampo2

Well-known member
Member
Thread Starter
Local time
10:17 AM
Posts
118
Location
Abrantes, Santarém, Portugal
OS
windows 11 Pro 64-bits 21H2 22000.708
My Hyper-v with Android 9

Android 2022-04-11_01h13_04.png
 

My Computers

System One System Two

  • OS
    windows 11 Pro 64-bits 21H2 22000.708
    Computer type
    PC/Desktop
    Manufacturer/Model
    Custom self built
    CPU
    AMD Ryzen 3 2200G with Radeon Vega Graphics 3.50 GHz
    Motherboard
    MSI B350 PC MATE
    Memory
    16,00 GB TeamGroup DDR4-2667
    Graphics Card(s)
    Nvidia GeForce GT 730 & Radeon™ Vega 8 Graphics
    Sound Card
    nVIDIA GK208 HDMI/DP High Definition Audio Controller
    Monitor(s) Displays
    AOC 27"
    Screen Resolution
    3840x2160
    Hard Drives
    Seagate 1TB BarraCuda 64MB 7200rpm SATA III 3.5 - ST1000DM010
    PSU
    LC-Power 650W V2.3
    Case
    ATX Nox Hummer ZS
    Cooling
    No cooling
    Keyboard
    Logitech
    Mouse
    Logitech
    Internet Speed
    500/100
    Browser
    Firefox 100.0.2
    Antivirus
    Windows Defender
    Other Info
    Optical Drive ASUS DRW-24D5MT
  • Operating System
    Windows 11 Pro (x64) 21H2 Build 22000.708
    Computer type
    Laptop
    Manufacturer/Model
    Asus VivoBook Max X541NA
    CPU
    Intel Celeron N3350 @ 1.10GHz
    Motherboard
    ASUS X541NA
    Memory
    4 GB
    Graphics card(s)
    Intel Apollo Lake SoC - Graphics and Display Controller (12 EU) [B1] [ASUS]
    Sound Card
    Intel Apollo Lake SoC - High Definition Audio Controller
    Monitor(s) Displays
    NT156WHM-N42 15.6"
    Screen Resolution
    1366 x 768
    Hard Drives
    Seagate ST1000LM035-1RK172
    PSU
    Asus Battery
    Internet Speed
    500 Mbps / 100 MBps
    Browser
    Firefox 100.0.2

cereberus

Well-known member
Pro User
VIP
Local time
10:17 AM
Posts
2,028
OS
Windows 10 Pro + others in VHDs

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

Pirilampo2

Well-known member
Member
Thread Starter
Local time
10:17 AM
Posts
118
Location
Abrantes, Santarém, Portugal
OS
windows 11 Pro 64-bits 21H2 22000.708

My Computers

System One System Two

  • OS
    windows 11 Pro 64-bits 21H2 22000.708
    Computer type
    PC/Desktop
    Manufacturer/Model
    Custom self built
    CPU
    AMD Ryzen 3 2200G with Radeon Vega Graphics 3.50 GHz
    Motherboard
    MSI B350 PC MATE
    Memory
    16,00 GB TeamGroup DDR4-2667
    Graphics Card(s)
    Nvidia GeForce GT 730 & Radeon™ Vega 8 Graphics
    Sound Card
    nVIDIA GK208 HDMI/DP High Definition Audio Controller
    Monitor(s) Displays
    AOC 27"
    Screen Resolution
    3840x2160
    Hard Drives
    Seagate 1TB BarraCuda 64MB 7200rpm SATA III 3.5 - ST1000DM010
    PSU
    LC-Power 650W V2.3
    Case
    ATX Nox Hummer ZS
    Cooling
    No cooling
    Keyboard
    Logitech
    Mouse
    Logitech
    Internet Speed
    500/100
    Browser
    Firefox 100.0.2
    Antivirus
    Windows Defender
    Other Info
    Optical Drive ASUS DRW-24D5MT
  • Operating System
    Windows 11 Pro (x64) 21H2 Build 22000.708
    Computer type
    Laptop
    Manufacturer/Model
    Asus VivoBook Max X541NA
    CPU
    Intel Celeron N3350 @ 1.10GHz
    Motherboard
    ASUS X541NA
    Memory
    4 GB
    Graphics card(s)
    Intel Apollo Lake SoC - Graphics and Display Controller (12 EU) [B1] [ASUS]
    Sound Card
    Intel Apollo Lake SoC - High Definition Audio Controller
    Monitor(s) Displays
    NT156WHM-N42 15.6"
    Screen Resolution
    1366 x 768
    Hard Drives
    Seagate ST1000LM035-1RK172
    PSU
    Asus Battery
    Internet Speed
    500 Mbps / 100 MBps
    Browser
    Firefox 100.0.2

cereberus

Well-known member
Pro User
VIP
Local time
10:17 AM
Posts
2,028
OS
Windows 10 Pro + others in VHDs
Try this
The problem is Hyper-V not android. Hyper-V can only do sound on enhanced mode, and that requires the guest OS to use an RDP Server.

A few linux distros can be set up with xrdp, but getting sound is trickier (I have made some posts how to do it).

I do not think the android implementation can act as rdp, and so cannot use enhanced mode.
 

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
Local time
9:17 AM
Posts
1,643
Location
Hafnarfjörður IS
OS
Windows XP,7,10,11 Linux Arch Linux
I know no way of getting sound though?
Hi there.

You can add a USB -> sound device -- that works fine. So long as the HOST can deliver a USB "host adapter" which isn't a problem usually. Attach the USB to the Guest either in the config file or via "USB re-direction" from the HOST OS.

You can then add any host device that's driven by a USB and install any required drivers on the guest. There's a load of tiny cheap USB sound devices around. Just take the std "analog" L and R outputs out and feed into a speaker or whatever -- or even into a Blu tooth Tx device for wireless headphones.

Decent (OK not top Studio Hi-Fi quality for our Opera loving fans etc) sound but more than sufficient for typical PC cheap speaker systems. This device can be got from Amazon for really rediculosly cheap prices.

From UK :

Probably even cheaper in US)

-- note UK prices INCLUDE sales tax / VAT - and outside UK you don't have to pay those when exporting from UK -- although (forget the politics I think my views on Brexit are well known enough so not getting involved --UK had a democratic vote so who am I as a non citizen of those islands able to complain about the result of a fair election) Brexit might have changed a few of those rules.

Screenshot_20220411_221635.png

Works fine on Linux Guests (Arch Linux / Ubuntu / Fedora with host HYPER-V / Windows so long as Windows has USB driver for its guests -- not normally a problem although you might need to set the USB driver to 3.0 rather than 3.1 in the HOST for the VM config.

Job done.

Q.E.D.

Cheers
jimbo
 
Last edited:

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
10:17 AM
Posts
2,028
OS
Windows 10 Pro + others in VHDs
Hi there.

You can add a USB -> sound device -- that works fine. So long as the HOST can deliver a USB "host adapter" which isn't a problem usually. Attach the USB to the Guest either in the config file or via "USB re-direction" from the HOST OS.

You can then add any host device that's driven by a USB and install any required drivers on the guest. There's a load of tiny cheap USB sound devices around. Just take the std "analog" L and R outputs out and feed into a speaker or whatever -- or even into a Blu tooth Tx device for wireless headphones.

Decent (OK not Hi-Fi quality for our Opera loving fans etc) sound more than sufficient for typical PC cheap speaker systems can be got from Amazon for really rediculosly cheap prices.

From UK :

Probably even cheaper in US)

-- note UK prices INCLUDE sales tax / VAT - and outside UK you don't have to pay those when exporting from UK -- although (forget the politics I think my views on Brexit are well known enough so not getting involved --UK had a democratic vote so who am I as a non citizen of those islands able to complain about the result of a fair election) Brexit might have changed a few of those rules.

View attachment 26692

Works fine on Linux Guests (Arch Linux / Ubuntu / Fedora with host HYPER-V / Windows so long as Windows has USB driver for it's guests -- not normally a problem although you might need to set the USB driver to 3.0 rather than 3.1 in the HOST for the VM config.

Job done.

Q.E.D.

Cheers
jimbo

I just do not see how this can work with android in Hyper-V basic mode. You can only see usb drives in basic mode IF they have the "hard drive" characteristic, and even then if you put the device offline.

You cannot attach normal removable usb drives directly although you can install a virtual hard drive on usb drive and attach that to the hyper-v vm in basic mode.

You can attach usb devices in enhanced mode but you cannot get enhanced mode with android as it does not have rdp server capability.

It is basically same problem as trying to get sound with Windows 10 Home (it can be done but involves using rdpwrapper and then you can run it in enhanced mode).

You probably have to use a type 2 hypervisor to get round this issue.
 

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
Local time
9:17 AM
Posts
1,643
Location
Hafnarfjörður IS
OS
Windows XP,7,10,11 Linux Arch Linux
I just do not see how this can work with android in Hyper-V basic mode. You can only see usb drives in basic mode IF they have the "hard drive" characteristic, and even then if you put the device offline.

You cannot attach normal removable usb drives directly although you can install a virtual hard drive on usb drive and attach that to the hyper-v vm in basic mode.

You can attach usb devices in enhanced mode but you cannot get enhanced mode with android as it does not have rdp server capability.

It is basically same problem as trying to get sound with Windows 10 Home (it can be done but involves using rdpwrapper and then you can run it in enhanced mode).

You probably have to use a type 2 hypervisor to get round this issue.
Android -- yes well I don't know anything about running Android on Windows -- nor would I want to -- although "If it can be done" people will try and good luck to them -- same as me getting a virtual TPM device to work in a Windows 11 VM on KVM/QEMU on Ubuntu 20.04 LTS.

My remarks were directed at running "bog standard" Linux VM's from HYPER-V so OK on Android I concede.

I'm sure (I'm not on Windows currently) but on a VM on HYPER-V you can initially add a physical USB device to the config before boot -- in KVM no problem either (although USB re-direction works and is simpler).

For example I want to add the video / webcam to the windows VM :

Screenshot_20220411_230512.png

I'm sure similar is available in HYPER-V.

Then once the VM starts you use the device just as you would on the original Windows physical machine,

Cheers
jimbo
 
Last edited:

My Computer

System One

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

Pirilampo2

Well-known member
Member
Thread Starter
Local time
10:17 AM
Posts
118
Location
Abrantes, Santarém, Portugal
OS
windows 11 Pro 64-bits 21H2 22000.708
The problem is Hyper-V not android. Hyper-V can only do sound on enhanced mode, and that requires the guest OS to use an RDP Server.

A few linux distros can be set up with xrdp, but getting sound is trickier (I have made some posts how to do it).

I do not think the android implementation can act as rdp, and so cannot use enhanced mode.
Yes you are right, there is no sound in hyper-v. I have installed and tested practically nothing. The solution indicated is to use when android is installed directly on the hard drive, I have it on the laptop and it works fine.
 

My Computers

System One System Two

  • OS
    windows 11 Pro 64-bits 21H2 22000.708
    Computer type
    PC/Desktop
    Manufacturer/Model
    Custom self built
    CPU
    AMD Ryzen 3 2200G with Radeon Vega Graphics 3.50 GHz
    Motherboard
    MSI B350 PC MATE
    Memory
    16,00 GB TeamGroup DDR4-2667
    Graphics Card(s)
    Nvidia GeForce GT 730 & Radeon™ Vega 8 Graphics
    Sound Card
    nVIDIA GK208 HDMI/DP High Definition Audio Controller
    Monitor(s) Displays
    AOC 27"
    Screen Resolution
    3840x2160
    Hard Drives
    Seagate 1TB BarraCuda 64MB 7200rpm SATA III 3.5 - ST1000DM010
    PSU
    LC-Power 650W V2.3
    Case
    ATX Nox Hummer ZS
    Cooling
    No cooling
    Keyboard
    Logitech
    Mouse
    Logitech
    Internet Speed
    500/100
    Browser
    Firefox 100.0.2
    Antivirus
    Windows Defender
    Other Info
    Optical Drive ASUS DRW-24D5MT
  • Operating System
    Windows 11 Pro (x64) 21H2 Build 22000.708
    Computer type
    Laptop
    Manufacturer/Model
    Asus VivoBook Max X541NA
    CPU
    Intel Celeron N3350 @ 1.10GHz
    Motherboard
    ASUS X541NA
    Memory
    4 GB
    Graphics card(s)
    Intel Apollo Lake SoC - Graphics and Display Controller (12 EU) [B1] [ASUS]
    Sound Card
    Intel Apollo Lake SoC - High Definition Audio Controller
    Monitor(s) Displays
    NT156WHM-N42 15.6"
    Screen Resolution
    1366 x 768
    Hard Drives
    Seagate ST1000LM035-1RK172
    PSU
    Asus Battery
    Internet Speed
    500 Mbps / 100 MBps
    Browser
    Firefox 100.0.2

jimbo45

Well-known member
Power User
VIP
Local time
9:17 AM
Posts
1,643
Location
Hafnarfjörður IS
OS
Windows XP,7,10,11 Linux Arch Linux
Yes you are right, there is no sound in hyper-v. I have installed and tested practically nothing. The solution indicated is to use when android is installed directly on the hard drive, I have it on the laptop and it works fine.
Guest can use a USB sound device directly same solution as webcam one or separate wifi device. Note as again I don't know anything about Android - so I'm only referring to what one might consider as "Bog standard VM's".

USB is also re-direction is supported in the 4 main VM environments -- VMWare, Vbox, HYPER-V and KVM/QEMU. It's mainstream enough now.

But : so as long as your Guest has the appropriate driver for the USB device attaching it as a physical device in the VM's config before powering on the Guest will always work. The main thing is the USB shouldn't use any of the Host's anciliary hardware if doing it this way other than the MOBO's I/O controller in the case of external USB HDD's.

Note though some environments like XP don't support USB3 so the Host USB driver itself must be able to handle the case when it passes over the "Virtual USB" controller hardware in the case of using re-direction (i.e "attach / detach" usb while the VM is running rather than a physical connection at VM Power on time.

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
10:17 AM
Posts
2,028
OS
Windows 10 Pro + others in VHDs
Guest can use a USB sound device directly same solution as webcam one or separate wifi device. Note as again I don't know anything about Android - so I'm only referring to what one might consider as "Bog standard VM's".

USB is also re-direction is supported in the 4 main VM environments -- VMWare, Vbox, HYPER-V and KVM/QEMU. It's mainstream enough now.

But : so as long as your Guest has the appropriate driver for the USB device attaching it as a physical device in the VM's config before powering on the Guest will always work. The main thing is the USB shouldn't use any of the Host's anciliary hardware if doing it this way other than the MOBO's I/O controller in the case of external USB HDD's.

Note though some environments like XP don't support USB3 so the Host USB driver itself must be able to handle the case when it passes over the "Virtual USB" controller hardware in the case of using re-direction (i.e "attach / detach" usb while the VM is running rather than a physical connection at VM Power on time.

Cheers
jimbo
What has any of this got to do with the issue i.e you cannot get sound with ANDROID in Hyper-V which was what was being discussed?

If you know of an alternative way of getting sound in ANDROID on an alternative VM, that is adding to the discussion.
 

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
Local time
9:17 AM
Posts
1,643
Location
Hafnarfjörður IS
OS
Windows XP,7,10,11 Linux Arch Linux
What has any of this got to do with the issue i.e you cannot get sound with ANDROID in Hyper-V which was what was being discussed?

If you know of an alternative way of getting sound in ANDROID on an alternative VM, that is adding to the discussion.
Misunderstanding as I read the thing as no way to add sound - I said I didn't know anything about Android - I thought it was about Guests in general on Hyper-V.

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
10:17 AM
Posts
2,028
OS
Windows 10 Pro + others in VHDs
Misunderstanding as I read the thing as no way to add sound - I said I didn't know anything about Android - I thought it was about Guests in general on Hyper-V.

Cheers
jimbo
ok.
 

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
Top Bottom