Hyper V Server 2019 Sd Card
Hi, I am trialling Hyper-V server 2019. The server is HP Proliant ML30 Gen 10 with 32 GB RAM. When I check the RAM in the Hyper-V server it shows 32 GB (with systeminfo). However when I try to create a VM (Gen 1 or 2) the maximum RAM I can allocate is 12 GB (12,582,912). What am I doing wrong here.
- I am in the process of planning my companies migration from VMware to Hyper-V, and therefore my question - i currently run my ESXi-servers from a 32GB SD card, will i be able to do this with Hyper-V Server? Does it support installation to SD card? How much space is required to run it? I cant seem to find any definite answers for the question.
- After about a seven-month delay, Microsoft finally published the free Hyper-V Server 2019. As usual, the new version benefits from some innovations of the full product as well as add-ons for Windows Server. These include the Admin Center and Core App Compatibility, which allows Microsoft Management Console (MMC) execution.
Feb 7th 2019 - An addition from tfl (thx for your comment Tom): 'I am using Hyper-V in Windows 10 and you do not need to do this. WIth this version of Hyper-V, you can simply use the New-Hard Disk feature in the Hyper-V MMC to create a new VHDX. As long as the device has a drive letter, you are good to go. That means you can create a VHDX on a thumb-drive, an external USB disk, and even an SD Card.'
The following instructions refer to the 'old' version of Hyper-V, when things were not as easy as today. (No native VHD-Mounting.)
This is how you get an USB-Drive, connected to the host, to show up in an Hyper-V VM (MS Guest).
This will only work with Harddrives, NOT with CD/DVD, Thumbdrives, printers, usb2serial, smartcardreaders etc.
I've tested this on Hyper-VR2 with running Microsoft-Guests (Servers W2k8 & W2k8R2), i'm sure this will work with other Guest-OS too (Maybe with shut down machine, and mounted as IDE-Device e.g.).
2 Steps total
Step 1: On the Host
Connect your USB-Drive, wait until you can access the Drive in Explorer.
Open up Computer Management console.
Microsoft Hyper-v Server 2019
Expand Storage, click on Disk Management.
Please be careful here. If you don't know what Diskmanager is good for, or what a Partition is, you should better stop reading right now. Dataloss is possible, you've been warned. ;)
Rightclick on the appropriate Partition(s) in the Graphical View (right lower pane), select 'Change Drive Letter an Paths...', click on Removebutton.
Make sure Driveletter(s) is/are gone.
Rightclick on the Frontrow (where it say's 'Disk 1' e.g.) select 'Offline'.
An addition from JonE (Thx for that Jon):
I was trying to do this using Hyper-V 2012 Core and to offline the USB drive:
1. RDP into the Hyper-V server
2. At the command prompt, type: diskpart
3. Type: list disk
4. Find your USB disk in the list. It should say status is Online
5. Type: select disk # (where 'disk #' is the value under the Disk ### column)
6. Type: offline disk
Now if you type 'list disk' again you should see that the disk has been offlined in the host OS
Server 2019 Hyper-v Features
Step 2: In Hyper-V Manager
You don't have to shut down the VM. (Tested with w2k8 & w2k8r2 Guests)
Hyper-v Server 2019 Sd Card
Rightclick on the Virtual machine you wish to add the USB-Drive to, select 'Settings'.
Click on SCSI-Controller, select 'Disk' in the right Pane, click on 'Add'.
Select the 'Physical Disk' radiobutton, choose the appropriate Drive as seen in Diskmanager on the Host.
It will now appear inside the Virtual Machine.
To unmount the Drive, just go back to the Settings of the VM, click on SCSI-Controller again and remove the mounted Disk.
Don't do it, if you don't know what you're doing. That's about it.
57 Comments
- Pure CapsaicinJustin.Davison Jun 15, 2012 at 08:36pm
Not the most intuitive process in Hyper-V, glad to see a good guide here
- TabascoThe Schwartz Jun 21, 2012 at 02:06pm
Thanks! This will be quite useful for my laptop Hyper-V test lab.
- Serranojkladwig Jun 21, 2012 at 04:17pm
Good post, very useful to know.
If you need a 'quick' way of getting to stuff on a USB and you
1) have a VM that is windows based
2) happen to be using RDP to connect to VM on a 'remote' machine anyways
3) don't need optimized speeds
4) your remote desktop policies allow the belowTry the following:
1. Start remote desktop client (done this on 6.1 and 7)
2. Before you connect to VM with RDP go to Options > Local Resources > More button under Lcoal Devices and resources section. Then expand drives and check the USB drive if already plugged into computer OR 'Drives that I plug in later'.
3. Connect and the drive should show up in the drives list nowSince over the network it is of course slow to copy to and from. But being able to save these settings in an RDP Profile makes this a one time setup which reduces the steps to 0 for future connections. That is the tradeoff I see between these two methods.
- SerranoEarlthegrey Jun 22, 2012 at 12:32am
Thank's for your note on the topic jason.
- PimientoBurrMis1 Jul 19, 2012 at 01:25pm
as an addendum to jkladwig's method - if you have configured things 'properly' (when I figure that out I can elaborate) putting the thumb drive into a laptop that is connected to the iSCSI vlan you are using for SAN access may allow for much greater transfer speeds - this of course means that you are going to be in the server room, or at least in front of a properly configured network switch at the least...
But if you need to, then you need to.
- PimientoJoin Oct 3, 2012 at 08:40pm
@ Earlthegrey : Thanks for the Tip
- SerranoMarkJBL Oct 11, 2012 at 01:48pm
Brilliant worked a treat, thanks for the information! Spiceworks to the rescue again!
- Ghost ChiliNick42 Dec 19, 2012 at 09:31pm
Thanks for this!
- PoblanoRick (beiNVENTiV) Jan 30, 2013 at 06:08pm
Does this work for removing drives and reconnecting new ones? Say, for example, I have to copy a file to three USB drives. Can I do that process, then unplug USB-Drive-A and plug in USB-Drive-B and have it present in the guest OS, or do I have to go through this process every time I plug in a USB drive?
- SerranoEarlthegrey Jan 31, 2013 at 04:32pm
You have to do it again for each device you wish to copy to.
- Anaheimnogero Feb 18, 2013 at 11:49pm
I'm running Ws2008R2, If I use the above method by Earlthegrey, would I then be able to dedicate that attached USB disk for Windows Server Backup on the VM?
- SerranoEarlthegrey Feb 19, 2013 at 06:31am
@nogero: Yes.
- PimientoRupesh_systems Feb 20, 2013 at 07:03am
Thanks. It worked. Good.
- Thai PepperHAPCAP Apr 17, 2013 at 02:03am
Good info to know. I just setup my first vm with server 2012 and have been trying to figure out backups.
Is there any noticeable transfer speed penalty by having the drive connected to the vm?
Is there any data lost by removing the drive letter/ taking the drive offline? Ideally, I'd like to be able to backup individual files on the vm and then restore them on a separate system, if needed.
- SerranoEarlthegrey Apr 17, 2013 at 05:49am
I assume the speed is same or better, since you have no VHD between VM and physical Hardware.
As long as you don't delete the partition, there is no data loss during this process.
- 1
- 2
- 3
- 4