HCHTech
Well-Known Member
- Reaction score
- 4,227
- Location
- Pittsburgh, PA - USA
So, I'm refurbing a server for the shop, and taking this opportunity to familiarize myself more with virtualization. I've got a couple of new servers for clients coming up next month, so want to break things on my own bench before subjecting my clients to my learning experiences.
I've got two RAID1 arrays in my setup, a 240GB (I thought I'd split this down the middle, 120GB for the host OS, Server 2016 in GUI mode with the Hyper-V role, and 120GB for the OS drive for the single VM, which will be running Server 2016. Then, I've got a 1TB array for the storage drive of the VM.
To this end, I've created 3 virtual disks in the RAID manager (This was my first UEFI server - first I had to FIND the RAID configuration, I spent an embarassingly long time thinking my RAID card was bad before the light dawned), two 120GBs and one 1TB.
So far so good, but I'm getting confused about the actual VM setup. When I install the host OS on the first 120GB virtual disk, I have to have a create a place to store the VHD file(s) for the VM (which would be 120GB is size if it uses up all of the space on it's C: drive), so from within the host OS, I have to initialize and format the 2nd 120GB virtual disk. Then, if I want the VM to have access to the 1TB Storage array, from within the host OS, I have to initialize and format the 1TB virtual disk.
So...my host has a C: drive of 120GB, an E: drive of 120GB, and an F: drive of 1TB.
Then, when creating the VM machine, I would choose to store the VHD file on drive E: (of the host) and assign the VM (up to) 100% of that space for it's drive. Once created, that amount of space shows as the C: drive of the VM. and the VHD file for the VM is stored on the E: drive of the host. I can then go into the settings for the VM and add an additional hard disk, choose to store the VHD for that disk on the host's F: drive, and give it (up to) 100% of that space.
Have I got this right? Obviously, you can't store a VHD on a disk that is smaller than the size the VHD will grow to if it fills up all of the storage allocated to it, yes? I can see that it becomes important to NAME the VHD files so you can identify exactly what you are looking at. VM1OS.vhd, VM1Storage.vhd, VM2OS.vhd, VM2Storage.vgd, etc. Also, the deduplication and other space saving features in Hyper-V may be more important than I thought.
I've got two RAID1 arrays in my setup, a 240GB (I thought I'd split this down the middle, 120GB for the host OS, Server 2016 in GUI mode with the Hyper-V role, and 120GB for the OS drive for the single VM, which will be running Server 2016. Then, I've got a 1TB array for the storage drive of the VM.
To this end, I've created 3 virtual disks in the RAID manager (This was my first UEFI server - first I had to FIND the RAID configuration, I spent an embarassingly long time thinking my RAID card was bad before the light dawned), two 120GBs and one 1TB.
So far so good, but I'm getting confused about the actual VM setup. When I install the host OS on the first 120GB virtual disk, I have to have a create a place to store the VHD file(s) for the VM (which would be 120GB is size if it uses up all of the space on it's C: drive), so from within the host OS, I have to initialize and format the 2nd 120GB virtual disk. Then, if I want the VM to have access to the 1TB Storage array, from within the host OS, I have to initialize and format the 1TB virtual disk.
So...my host has a C: drive of 120GB, an E: drive of 120GB, and an F: drive of 1TB.
Then, when creating the VM machine, I would choose to store the VHD file on drive E: (of the host) and assign the VM (up to) 100% of that space for it's drive. Once created, that amount of space shows as the C: drive of the VM. and the VHD file for the VM is stored on the E: drive of the host. I can then go into the settings for the VM and add an additional hard disk, choose to store the VHD for that disk on the host's F: drive, and give it (up to) 100% of that space.
Have I got this right? Obviously, you can't store a VHD on a disk that is smaller than the size the VHD will grow to if it fills up all of the storage allocated to it, yes? I can see that it becomes important to NAME the VHD files so you can identify exactly what you are looking at. VM1OS.vhd, VM1Storage.vhd, VM2OS.vhd, VM2Storage.vgd, etc. Also, the deduplication and other space saving features in Hyper-V may be more important than I thought.