HYPER-V using RAW (physical) HDD's


jimbo45

Well-known member
Pro User
VIP
Local time
11:30 PM
Posts
5,861
Location
Hafnarfjörður IS
OS
Windows XP,11 Linux Fedora Rawhide pre-release 45
Hi HYPER-V Gurus

How can I use a physical disk as a "RAW physical disk" not a "Virtual Hard disk".
I know how to do it for USB devices but these are internal HDD's

What I'm trying to do is create on W11 under HYPER-V either a Fedora or an Arch Linux VM which has 2 RAID 0 arrays each with 2 HDD's in the array as I currently have :

e.g

Screenshot_20210921_164526.png


so 1 array /dev/md126 of 9.1 TB and another /dev/md127 of 10.9 TB. I then want to see if the shared stuff on the "to be created" VM can be accessed remotely.
The RAID 0 arrays are formatted with Linux xfs so I need the VM to access physical devices with the native file system, not as "Virtual Hard Disks.
Easily done in VMWare but performance is a mega pain !!!!".

Thanks

Cheers
jimbo
 

My Computer My Computer

At a glance

Windows XP,11 Linux Fedora Rawhide pre-releas...2 X Intel i7
OS
Windows XP,11 Linux Fedora Rawhide pre-release 45
Computer type
PC/Desktop
CPU
2 X Intel i7
Screen Resolution
4KUHD X 2
You can select a physical drive instead of a VHD to access but the drive has to be put offline from disk management.

A key restriction is the drive cannot the physical drive containing the OS (C drive).

Also, the selected drive has to be a complete drive, not just a partition.
 

My Computer My Computer

At a glance

Windows 11 Pro + Win11 Canary VM.I9 13th gen i9-13900H 2.60 GHZ16 GB solderedIntegrated Intel Iris XE
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)
You can select a physical drive instead of a VHD to access but the drive has to be put offline from disk management.

A key restriction is the drive cannot the physical drive containing the OS (C drive).

Also, the selected drive has to be a complete drive, not just a partition.
Hi there

That's fine -- thanks for the info -- makes perfect sense -- especially using RAID with non Windows File systems on them (xfs)
currently . The OS drive will be totally separate from the RAID devices. I'm using RAID 0 for speed plus on Linux software RAID (ensure mdadm is installed for software RAID) does not require HDD's to be the same size - and whole disks can be used -- I have backup so loss of data isn't an issue -- risk in using RAID 0 is grossly over exaggerated with modern HDD's -- in about 4 years of using this I've only lost data once and that was by "User Error" rather than hardware failure - although of course HDD's can and do fail.

I'll have a go with this -- if this works I can finally start getting rid of SMB1 -- a VM should be able to use later SMB protocols without issue. Remote TV's and amazon firesticks have no probs and installing latest version of KODI on firestick (rel 19.xx) also has settings later than SMB1 for accessing shared multi-media content. Running a Linux VM on HYPER-V should be fine - especially as I only need it in Command mode (no GUI required) -- and can SSH into the CLI when required.

Cheers
jimbo
 

My Computer My Computer

At a glance

Windows XP,11 Linux Fedora Rawhide pre-releas...2 X Intel i7
OS
Windows XP,11 Linux Fedora Rawhide pre-release 45
Computer type
PC/Desktop
CPU
2 X Intel i7
Screen Resolution
4KUHD X 2

Latest Support Threads

Back
Top Bottom