Hyper-v Ubuntu 21.10


Pirilampo2

Well-known member
Member
VIP
Local time
11:27 AM
Posts
270
Location
Abrantes, Santarém, Portugal
OS
Windows 11 Pro 64-bits 23H2 22631.2861
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 23H2 22631.2861
    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
    SSD Team Group T-Force Cardea Zero Z440 1TB Gen4 M.2 NVMe (5000/4400MB/s), SSD Team Group CX2 512GB SATA III (530/470MB/s) and 2x 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
    1000/200
    Browser
    Firefox 120.0.1
    Antivirus
    Windows Defender
    Other Info
    Optical Drive ASUS DRW-24D5MT
  • Operating System
    Windows 11 Pro 64-bits 22H2 22631.2861
    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
    1000 Mbps / 200 MBps
    Browser
    Firefox 120.0.1
    Antivirus
    Microsoft Windows Defender
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 23H2 22631.2861
    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
    SSD Team Group T-Force Cardea Zero Z440 1TB Gen4 M.2 NVMe (5000/4400MB/s), SSD Team Group CX2 512GB SATA III (530/470MB/s) and 2x 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
    1000/200
    Browser
    Firefox 120.0.1
    Antivirus
    Windows Defender
    Other Info
    Optical Drive ASUS DRW-24D5MT
  • Operating System
    Windows 11 Pro 64-bits 22H2 22631.2861
    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
    1000 Mbps / 200 MBps
    Browser
    Firefox 120.0.1
    Antivirus
    Microsoft Windows Defender

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

My Computers

System One System Two

  • OS
    Windows 11 Pro 64-bits 23H2 22631.2861
    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
    SSD Team Group T-Force Cardea Zero Z440 1TB Gen4 M.2 NVMe (5000/4400MB/s), SSD Team Group CX2 512GB SATA III (530/470MB/s) and 2x 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
    1000/200
    Browser
    Firefox 120.0.1
    Antivirus
    Windows Defender
    Other Info
    Optical Drive ASUS DRW-24D5MT
  • Operating System
    Windows 11 Pro 64-bits 22H2 22631.2861
    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
    1000 Mbps / 200 MBps
    Browser
    Firefox 120.0.1
    Antivirus
    Microsoft Windows Defender
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
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
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
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
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 23H2 22631.2861
    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
    SSD Team Group T-Force Cardea Zero Z440 1TB Gen4 M.2 NVMe (5000/4400MB/s), SSD Team Group CX2 512GB SATA III (530/470MB/s) and 2x 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
    1000/200
    Browser
    Firefox 120.0.1
    Antivirus
    Windows Defender
    Other Info
    Optical Drive ASUS DRW-24D5MT
  • Operating System
    Windows 11 Pro 64-bits 22H2 22631.2861
    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
    1000 Mbps / 200 MBps
    Browser
    Firefox 120.0.1
    Antivirus
    Microsoft Windows Defender
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
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
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
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

Latest Support Threads

Back
Top Bottom