Hyper-V with Redhat Enterprise Linux 9 as a guest - sharing files between host and guest


kwgagel

Member
Local time
8:48 PM
Posts
20
OS
Windows 11 Pro
I am running Windows 11 Pro and have the Hyper-V role installed with one guest. The guest is Redhat Enterprise v9 linux. My host uses WiFi for all networking and it is setup to share the internet connection with the guest. The guest can access the internet.

I'm having difficulty getting either a share on the host or a share on the guest to be seen by the other.

I do have ExpressVPN on both the host and the guest. While trying to setup a share that the other can see I turn off the VPN.
I also have firewalls on both the host and the guest. While trying to setup a share that the other can see I turn off both firewalls.

On the Windows host I setup a share called "Share". It is visible in Network. No hint of the linux share is visible from the Windows network.
On the Linux guest I setup a share called "Sambashare". It is visible in its network. Also visible in the linux network is a "Windows Network". However, when I go into it, it is empty. I have put a file into the windows share so it should be there...

I don't care which one shares. I just want to be able to share files between the two of them. How do I do this?

Windows View of Windows Share.pngLinux View of Windows Share.png

1667078336390.png
 
Windows Build/Version
Windows 11, Version 21H2 (OS Build 22000.1098)

My Computer

System One

  • OS
    Windows 11 Pro
    Computer type
    PC/Desktop
    Manufacturer/Model
    N/A
    CPU
    Intel i7-8700K @ 3.70GHz
    Motherboard
    Gigabyte Z370 AORUS Gaming 5 (rev. 1.0)
    Memory
    64GB
    Graphics Card(s)
    Nvidia Quadro K2200
    Sound Card
    Realtek® ALC1220 codec
    Monitor(s) Displays
    Samsung
    Screen Resolution
    1920*1080
    Hard Drives
    Samsung SSD 970 EVO 2TB
    Browser
    MS Edge
    Antivirus
    MS Defender
I managed to get the share on the linux guest configured well enough to allow Windows' File Explorer to access IF I access by IP address of the guest. The windows host still cannot "see" by browsing. The Linux vm still cannot see/browse the windows host.
 

My Computer

System One

  • OS
    Windows 11 Pro
    Computer type
    PC/Desktop
    Manufacturer/Model
    N/A
    CPU
    Intel i7-8700K @ 3.70GHz
    Motherboard
    Gigabyte Z370 AORUS Gaming 5 (rev. 1.0)
    Memory
    64GB
    Graphics Card(s)
    Nvidia Quadro K2200
    Sound Card
    Realtek® ALC1220 codec
    Monitor(s) Displays
    Samsung
    Screen Resolution
    1920*1080
    Hard Drives
    Samsung SSD 970 EVO 2TB
    Browser
    MS Edge
    Antivirus
    MS Defender
I have no idea how to properly set up network shares between redhat and Windows.

However, sharing network drives in hyper-v can be complicated

If the guest is on the same pc as the host, and can run as an rdp server, then hyper-v can run in enhanced mode and then it is easy to share drives on same pc


There are guides how to use xrdp server on ubuntu and use hyper-v enhanced mode. Other distros have done it as well.

The easiest distro is Kali.
 

My Computer

System One

  • OS
    Windows 11 Pro + Win11 Canary VM.
    Computer type
    Laptop
    Manufacturer/Model
    ASUS Zenbook 14
    CPU
    I9 13th gen i9-13900H 2.60 GHZ
    Motherboard
    Yep, Laptop has one.
    Memory
    16 GB soldered
    Graphics Card(s)
    Integrated Intel Iris XE
    Sound Card
    Realtek built in
    Monitor(s) Displays
    laptop OLED screen
    Screen Resolution
    2880x1800 touchscreen
    Hard Drives
    1 TB NVME SSD (only weakness is only one slot)
    PSU
    Internal + 65W thunderbolt USB4 charger
    Case
    Yep, got one
    Cooling
    Stella Artois (UK pint cans - 568 ml) - extra cost.
    Keyboard
    Built in UK keybd
    Mouse
    Bluetooth , wireless dongled, wired
    Internet Speed
    900 mbs (ethernet), wifi 6 typical 350-450 mb/s both up and down
    Browser
    Edge
    Antivirus
    Defender
    Other Info
    TPM 2.0, 2xUSB4 thunderbolt, 1xUsb3 (usb a), 1xUsb-c, hdmi out, 3.5 mm audio out/in combo, ASUS backlit trackpad (inc. switchable number pad)

    Macrium Reflect Home V8
    Office 365 Family (6 users each 1TB onedrive space)
    Hyper-V (a vm runs almost as fast as my older laptop)
Back
Top Bottom