Hyper-v 2012 R2 command line help?

Soldato
Joined
30 Sep 2006
Posts
5,278
Location
Midlands, UK
Hi all,

i recently installed the free Hyper-V 2012 R2 onto a Microserver (and called it hyperserver).
The OS went onto a 500gb SSH.
There is also 4x 2TB of storage in Raid10 giving 3.6TB available.

In the HP ACU i set the 500gb to the primary boot drive (without it i couldn't install the OS). I set the storage array to the secondary.

When i boot into hyper-v it's obviously only command line based. My knowledge with such is limited.
When i use my win8.1 laptop to connect to my hyperserver (as that is what i'll use to manage it) and i'm about to create a VHD, i then become unstuck because i can't see the storage array at all, only the 500gb C: drive.
So, i'm thinking i'd need to use diskpart from the command prompt on hyperserver, but when i type diskpart in it returns the usual info about the diskpart version and the computer, but it doesn't return a prompt cursor for me to start typing. All i can do is ctrl+C to get back to regular cmd prompt.

Can anyone help please? I've no idea what to do from here, so any advice more teccy that what i've tried doing already will involve slooow deliberate instructions please.

Many thanks for any advice offered.
 
Use mmc and add disk management for a remote machine. You should be able to do all you require.
 
Thanks, i'll try that.
I followed THESE instructions to be able to manage the hyper-v from my win8.1 laptop and i can connect. It was only when i started to create a new VM that i realised i couldn't see the 3.6TB of storage on the hyperserver.
Currently doing firmware updates on hyperserver so connections to it are failing right now.
Will try later.

Cheers
 
Tried it, can't connect to hypersever.
I added the 'Disk Management (HYPERSERVER)' snap in and it just does nothing, can't see anything.
Added 'Computer Management (HYPERSERVER)' snap in and says it cannot be managed.
Talks about editing rules on the firewall, but its been disabled on both machines.

Crap!
 
Odd!
My win8.1 pc which is on the domain lets me connect to the hyperserver straight from computer mangement.
My win8.1 laptop which isn't on the domain (neither is hyperserver, they are both on WORKGROUP) couldn't.
However, its taking an age to populate the Disk Management info.
Suckage!!
 
You will need to be part of the administrators group on the server which is probably why your domain computer works and your non domain doesn't. If not your username and passwords will need to be identical.
 
Still need to play with hyper-v as it's one area I haven't played with. 2012 added some nice features for it so it deserves some attention. Shame I just can't get it to play nice with my limited hardware setup.
 
So...came in this morning and the computer management screen has now populated itself with the hyperservers drive list.....about flippin time. :rolleyes:

But when trying to initialize the 3.6TB array as either MBR or GPT it fails with an error box saying "The operation cannot be completed because selectd disk(s) are unallocated disk(s)"

Don't get that, i thought initialising the disks allowed allocation.
Couldn't see anything in the ACU that pertains to allocating disks in an array.

Any more advice on this please?
 
ok, managed to get diskpart to respond directly from the command line on the hyperserver. I'm now formatting the raid array after making it a GPT partition and given it a drive letter.
It seem that anything to do with asking for info on the 3.6TB array takes forever. All other commands are pretty quick now.
 
Right, this is driving me a little nuts now.
I decided to reinstall from scratch with WS2012 R2 and opted for the standard edition with GUI enabled.
Installed the OS onto the 500gb SSHD i have in bay 5 (ODD), but when i go into server manager to initialise the 3.74TB raid10 array, it keeps BSOD'ing with KERNAL_SECURITY_CHECK_FAILURE
Upon reboot looking in the events show:
error 51 "An error was detected on device \Device\Harddisk0\DR0 during a paging operation."

WTF??? This is really annoying. ALL disks are brand new.
Do i assume that the 500gb SSHD is the DR0 in question?

I then replaced the 500gb SSHD for a 120gb SSD, but the bios reported it didn't meet the min size hard drive reqs, so i had to swap back to the 500gb. GRRRrrr!!!!!! Doesn't even get to installing an OS stage, so that buggers me up again.

I then deleted both arrays on the B120i and recreated them with the 500gb as the first array and primary boot drive, but get the same errors after going through all the routine of installing 2012 R2 again.

I really wanted to put the host OS onto a separate drive and just use the raid10 for VM and data storage.

Is it too much to ask?
Could it be that the system doesn't like me using a hybrid disk in the slot that the ODD should be used in?

Any more advice would be appreciated.
 
Nope, but not sure what it will achieve or prove.
The os has been successfully installed to the 500gb attached to the ODD sata port.
It's only when I try to initialise the storage array that it BSODS.
I guess next thing to try is installing os onto the storage array, which is what I didn't want to do, but it should help with pinpointing the issue if I disconnect the 500gb and there are no problems with the install.
 
yeah, i read about that and installed the 2008 driver.
but i now wonder whether using provisioning on reinstall has wiped that out and used the 2012 driver, even though its unstable.
 
Ok, so I checked the driver on the b120i, then rolled it back because 'intelligent' provisioning (oxy moron anybody?) put the unstable driver back on.
I've managed to create a vim and install whs2011 onto it, using the raid10 storage that I'd previously had so much trouble with.
Thanks J1nxy for the reminder about the driver. I doubt I would have figured it out without the gentle nudge :)
 
Back
Top Bottom