Archive

Posts Tagged ‘Hyper-V’

Cannot connect to the virtual machine because the authentication certification is expired or invalid

December 2nd, 2009 Ashley Moore No comments

The above error message can be seen when trying to connect to a virtual machine from the Hyper-V console on the Hyper-V host.

image

The reason for this is that the self signed Hyper-V machine management service certificate has expired, this is the certificate issued to itself for authentication when Hyper-V role is installed on the server.

The workaround for this is to: Shut down all VM’s, restart the Hyper-V VMMS, start the virtual machines again. This renews the self signed certificate for another year. However a better resolution is to install the following handy-dandy, super duper Microsoft KB! By doing so this will in the future auto-magically update the Hyper-V VMMS certificate………

KB967902

Hope this helps!

Categories: Uncategorized Tags: ,

Create a SCVMM 2008 template from a running virtual machine

October 21st, 2009 Daniel Davies No comments

So you’ve created your VM and know you would like to create a template so this VM can be distributed onto multiple VM’s.

SCVMM will take care of this for you, so there is no need to sysprep your machine as the template procedure does all this for you.

Please Beware that creating a template destroys the VM !!!

Creating a Template

1, Press the Virtual Machine Tab and go to your VM.

image

2, Turn off the VM and then single click the VM

3, Now the New Template option on the right hand window should be accessible, so press this.

 image

4, If you then complete the wizard and hit create this should then start creating your template.

5, The Job pane will then pop up on your screen and start completing the steps that are shown below, once this has completed you’ve successfully made a template.

 

image

Categories: Uncategorized Tags: , ,

SCVMM 2008 R2 Forcefully Remove Virtual Server Host From SCVMM Console

October 16th, 2009 Daniel Davies No comments

You may have an issue where you are struggling to remove a hyper-v host for a reason such as you, re-installed the OS on the machine and not removing the SCVMM agent first and when you go to remove it from the SCVMM console it just fails as it can’t communicate with the hyper-v host.

To Forcefully remove the Hyper-V Host you first have to open SCVMM’s Powershell.

Untitled picture

Then run the following command “Get-vmhost changetoservername | remove-vmhost –force” .

image

The Hyper-V host will now be gone.

Daniel Davies

Categories: Uncategorized Tags: , ,

Space has Ran out on Hyper-V Host Drive because a VM VHD has Expanded

October 15th, 2009 Daniel Davies No comments

You may see this issue if you are running Hyper-V hosts, this issue occurs when you have set your VHD to dynamically expand, and over time the VHD has actually increased to the size of the drive it is held on. When this occurs the offending machine will be stuck in a paused-critical state.

image

A way to fix this issue is to compact the VHD and in my experience it tends to get back quite a lot of space. Compacting the VHD basically claws back any space that isn’t being used by the VHD. To do this there must actually be Free Space on the drives inside the VM otherwise this will have no effect.

To look at a way of clearing up some space to compact the VHD as temporary measure is to have a look at my previous article”http://support.risualblogs.com/blog/2009/10/14/running-low-on-disk-space-on-a-drive/”.

Fixing this should probably be only a temporary measure as you are having this issue because the drive that hold’s the effected VM’s VHD is stored on does not have to space. And the real solution is to move the vhd to a bigger disk. That said if you must get the VM back up quick read on!!

 

To Compact a VHD 

First of all if we connect to the Virtual server host, that holds problematic VM.

image

Now we  need to shut down the effected VM, as the VM is in a paused-critical it can be quite a pain, you can keep hitting resume on the VM and try shutting it down through the Guest OS. Or You can just right click and turn off the machine, which is basically the same as just pulling the plug out of the server.

Now we need to compact the VHD , so if we right click the VM again and choose settings

Now you will see all the VM’s Settings, but what we are after is the VHD which is causing the issue, so if you look at the left hand side of the Settings windows and you’ll be able to see the VHD. So if you Just single click on the VHD in question.

Now you will see and Edit option, if you just press that and then a “edit virtual hard disk wizard” will appear and if we simply choose the compact option and follow the wizard through and then we are done.

The Process should take 10-15 minutes and then you can just turn the VM back on and it will run successfully.

image

Daniel Davies

Categories: Uncategorized Tags: , ,