How to have 2 or multiple drives in a single Hyper-V VM?


CSharpDev

Member
Member
Local time
9:24 AM
Posts
180
OS
Win11
I want to boot from an SSD but for the rest of the content of the VM *MDT Server* I only want to use an external USB3.0 HDD *not a flash drive*

How can I do this? I want that second drive, the HDD, to appear in File Explorer like it would on my physical host
 

My Computer

System One

  • OS
    Win11
I want to boot from an SSD but for the rest of the content of the VM *MDT Server* I only want to use an external USB3.0 HDD *not a flash drive*

How can I do this? I want that second drive, the HDD, to appear in File Explorer like it would on my physical host
This has been answered before by a load of people.

The simple answer is a) attach the drive as a "physical drive" (Enhanced mode needed) or b) attach as a Network shared drive.

Not sure why you seem to have a problem with this now after loads of replies to your original post in another thread.

Maybe if English is a problem

try this :

Þessu hefur fjöldi fólks svarað áður.

Einfalda svarið er a) tengdu drifið sem "líkamlegt drif" (Enhanced mode nauðsynleg) eða b) tengdu sem Network shared drive.

Ekki viss um hvers vegna þú virðist eiga í vandræðum með þetta núna eftir fullt af svörum við upphaflegu innlegginu þínu á öðrum þræði.


Cheers
jimbo
 

My Computer

System One

  • OS
    Windows XP,7,10,11 Linux Arch Linux
    Computer type
    PC/Desktop
    CPU
    2 X Intel i7
This has been answered before by a load of people.

The simple answer is a) attach the drive as a "physical drive" (Enhanced mode needed) or b) attach as a Network shared drive.

Not sure why you seem to have a problem with this now after loads of replies to your original post in another thread.

Cheers
jimbo
So if I go the network shared drive route, will the server VM AND all the other client VMs still be able to simultaneously access the same drive?
 

My Computer

System One

  • OS
    Win11
So if I go the network shared drive route, will the server VM AND all the other client VMs still be able to simultaneously access the same drive?
Of course.

Have you never worked in an office where you get access to a Network drive --where many other users can also access it. The sharing protocol will ensure that concurrent updates are "staged".

Cheers
jimbo
 

My Computer

System One

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

Have you never worked in an office where you get access to a Network drive --where many other users can also access it. The sharing protocol will ensure that concurrent updates are "staged".

Cheers
jimbo
So 'Im having some issues with setting this up. I am inside the "Share" option within the properties of my external HDD, but I of course cannot add (not found) the user account that's the admin on my VM, to the list of users the HDD is shared with, if this makes sense... Or do I have to create this same user on my physical PC too? Hope this question makes sense
 

My Computer

System One

  • OS
    Win11
So 'Im having some issues with setting this up. I am inside the "Share" option within the properties of my external HDD, but I of course cannot add (not found) the user account that's the admin on my VM, to the list of users the HDD is shared with, if this makes sense... Or do I have to create this same user on my physical PC too? Hope this question makes sense
Hi there

For Network Sharing then users have to exist on the physical possibly remote machine the HDD is attached to. Also if using Windows hosts remote machines then depending on the security level you might have to enable SMB1 on both Host and Guest.

The Logic for an account on the remote machine for Network sharing is that the "sharee" must have an account on the sharing system - otherwise that opens all sorts of insecurity. You could create a very limited privilege guest account on the host system if you really want to minimize access on the Windows host.

Normally in this situation when using VM's on your own (internal) machine(s) you'd have an account on all of them so not an issue.

Finally you need to set on the machines -- allow remote access to this computer (via computer control panel).

A good hint (not necessary) but a really easy way to see if its all set up properly is to install on the GUEST the optional feature (via settings - in Windows - not the Hyper-V config settings) openssh-server and start it in services (use windows tools to start services).

Then just from command (on the guest) type ssh <name of remote computer>. you'll be prompted for your user password on that machine and if OK you'll be on the console of the remote machine. Now type dir:x where x is the disk you want to share in the VM/ If you can see the fiiles --type exit and job done. On the guest simply add the disk (or whatever level the directory you want) as a network drive -- then it will be accessible -- usyally starts as Z: and works backwards for each HDD / directory you add to the shares.

It's totally simple and the remote machine can be Windows, Mac, Linux, Citrix, Xen or whatever. The file system is handled by the SMB protocol so you don't need to do anything but just read / write etc.
Skjámynd 2024-02-23 081502.png

Now simply connect network drive from file explorer - check re-connect at logon if you want to automatically have the shared drive available at Guest logon.

Skjámynd 2024-02-23 081832.png

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

Latest Support Threads

Back
Top Bottom