Help with my first Hyper-V setup
-
@lj said in Help with my first Hyper-V setup:
Thanks for everyone for everything I've learned so far. Here is my next problem. I decided to expand my volume the Hyper-V OS is on. I was able to use Diskpart to shrink the other volume but was unable to extend the OS volume. They must not be adjacent but without Disk Management I don't have a visual. I tried booting Gparted and Partition Wizard mini tool. Neither would boot. They may be a few years old. How can I extend the volume?
You can use disk management remotely.
Open up
compmgmt.msc
on Win10 computer, then right-click to connect to another computer. Connect to your Hyper-V host, then under Storage, select Disk Management.But yeah, if they aren't adjacent, you won't be able to extend, but you may be able to span or whatever if you convert it to a Dynamic disk... but if you dont' have any production VMs going, I'd start over.
Make your partition like 65-85 GB, and for partition, use the rest of it for VM storage.
-
@obsolesce That is the one thing I haven't been able to get working. computer management will allow some of the functions like users and groups but the disk management won't work and I've tried a lot of googled solutions. Most of them are Powershell commands to run on both machines. None of them have worked.
Starting over may be good experience anyway. I will backup my VMs with Altaro and also with Hyper-V manager if I figure out how. If I lose the VMs I still wouldn't be in too bad a shape. -
@lj The message when attempting Disk Management is "You do not have access rights to Logical Disk Manager on...
-
@lj said in Help with my first Hyper-V setup:
@lj The message when attempting Disk Management is "You do not have access rights to Logical Disk Manager on...
Is your Win10 computer and Hyper-v host joined to a MS AD domain?
-
@obsolesce The Win10 is and the HyperV host is not.
-
There's things you need to do like allow remote access to the Plug and Play interface, open up some firewall rules, allow remote server management through WinRM, automatic startup of Plug and Play service and Windows Remote Management (WS-Management) service, etc.
-
Also, run
winrm qc
on both. -
Isn't it a PITA if you're not accustomed to it all?
This is why KVM is so nice.
-
@obsolesce Thanks. I've done a lot of those but actually can't remember all of them right this second. I think most of those were required for Hyper-V manager, Windows Admin Center and the parts of Computer mangement that do work.
I'll start through your list and try to see what I've missed. -
@lj Just ran winrm qc on both. Each one said "WinRM
service is already running on this machine. WinRm is already setup for remote management on this computer" -
@obsolesce I have considered KVM but for now am trying Hyper-V. I still plan to load KVM on an old desktop when I get a chance.
-
@obsolesce Windows Remote Management was already set to automatic. Plug and Play was running but wasn't set to automatic.
How do I allow remote access to Plug and Play interface?
(BTW I plan to archive this whole thread for reference) -
@lj said in Help with my first Hyper-V setup:
How do I allow remote access to Plug and Play interface?
Open up mmc on your desktop, and add the Group Policy Object Editor, connecting to your Hyper-V host.
Browse to:
Computer Configuration/Administrative Templates/System/Device Installation
then enableAllow remote access to the Plug and Play interface
.But is that the error you get when trying to access Disk Management of your Hyper-V host remotely?
Are you connecting as a user that has permissions on the Hyper-V host?
There are also some firewall rules that need to be opened for remote Disk Management (on your Hyper-V host).
Remote Volume Management - Virtual Disk Service (RPC)
Remote Volume Management - Virtual Disk Service Loader (RPC)
Remote Volume Management (RPC-EPMAP)Enable-NetFirewallRule -name RVM-RPCSS-In-TCP,RVM-VDSLDR-In-TCP,RVM-VDS-In-TCP
-
@obsolesce I think I'm getting closer. I updated the local group policy and on the desktop and ran your commands on the host. Now instead of You do not have access rights to Logical Disk Manager on..I am getting "unable to connect to virtual disk service"
Are you connecting as a user that has permissions on the Hyper-V host? Not sure. I am logged into my domain user on the desktop and created a user with same name and password on host. that may not be enough. Is there a run as option for opening computer management?
-
@lj said in Help with my first Hyper-V setup:
@obsolesce The Win10 is and the HyperV host is not.
Why not? This does nothing but over complicate your set. You already have an AD environment. why are you not leveraging it?
-
@jaredbusch I guess I just thought that since this was a trial I shouldn't mess up my existing domain.
I will add the host to the domain.
-
@lj said in Help with my first Hyper-V setup:
@jaredbusch I guess I just thought that since this was a trial I shouldn't mess up my existing domain.
I will add the host to the domain.
It is not like to are adding an AD server or anything. You are just adding another member to the domain. No different than adding a desktop.
-
@jaredbusch OK. I just glanced at Windows Admin Center and Hyper-V manager. How and where do I add the host to a domain? on the AD? command line on the host?
-
@lj said in Help with my first Hyper-V setup:
@jaredbusch OK. I just glanced at Windows Admin Center and Hyper-V manager. How and where do I add the host to a domain? on the AD? command line on the host?
Yes on the host. same as anything else.
You don't add a new desktop form WAC.
-
@jaredbusch OK. I figured it out. Option 1 on sconfig menu. Now I am typing correctly the name of the domain, then trying domain\admin and admin only for the user. After typing the password I get "The specified domain either does not exist or could not be contacted". I am guessing the host needs the equivalent of Network browsing, network neighborhood or something turned on.