Hyper-V

Go-Que offers news and technical knowledge articles from all IT visualization software brands. Go-que is sponsored by go-que.net & go-que.nl.

Why is my vhdx taking up so much space?

I have built a CentOs 7 guest VM in Hyper-V as Gen1 with two drives, both dynamically expanding drives.

I have loaded about 170 GB of data into one of the drives, but on disk on the host, it is taking up 410 GB. What is going on?

This is in the guest:

$ df -h | grep ‘sdb1|Used’
Filesystem                     Size  Used Avail Use% Mounted on
/dev/sdb1                      504G  168G  311G  36% /var/lib/data

This is from the host:

    Directory: D:VHDs

Mode                LastWriteTime         Length Name
—-                ————-         —— —-
-a—-       22/01/2019     08:35   420541890560 Lupin-Data.vhdx

Read full post . . . .

Hyper-V 2019 – Guest VM's shutdown unexpectedly

Hi,

Since upgrading my Hyper-V servers to Windows Server 2019, including KB4471332 from last night, my guest VM’s do not power down on restart of the 2019 host.

I can confirm integration components are as up to date as possible, and each guest is configured to shutdown when the host restarts.

Each guest gets the "Why did I shutdown unexpectedly message".

The even viewer yields the following all within 30 seconds of restarting the host:

Shut down physical computer. Stopping/saving all virtual machines…

‘ADFS’ failed to perform the ‘Shutting Down’ operation. The virtual machine is currently performing the following operation: ‘Shutting Down’. (Virtual machine ID 0CFDF648-EE9D-4141-9EBD-9A6D911C3442)
‘ADFS’ failed to shut down. (Virtual machine ID 0CFDF648-EE9D-4141-9EBD-9A6D911C3442)

The Update Orchestrator Service service terminated with the following error:
This operation returned because the timeout period expired.

Failed to restore configuration for port 59229EE2-C880-4BF2-9849-89A21EC17772 (Friendly Name: ) on switch 300C0E17-E123-4182-BE62-AAD1860BE841 (Friendly Name: ), status = Object Name not found..

Everything is configured as it was on the 2016 Hyper-V host.

The message ADFS failed to shut down because it is shutting down seems terribly odd to me.  Of course its shutting down, just need the host to wait. (Yes the registry is set to 120 as the default time for the host….)

Fairly simple to recreate….just spin up a 2019 server, install Hyper-V role, throw in a VM and test.

Any help would be appreciated, but my money is on it being another bug.

Read full post . . . .

SNMP Service Tabs (Agent,Traps,Security) Does not apper

I install snmp on hyper-v 2016 via command line according to 

https://www.thomasmaurer.ch/2011/10/install-snmp-on-hyper-v-r2-core-server/ with 

Dism /online
/enable-feature
/featurename:SNMP

command but I cant see Agent, Traps and security tab of snmp service

Regards,

Read full post . . . .

Hyper-V Virtual Machine Management Service doesn’t respond, cannot stop/restart

Hello, I’ve been running a functioning virtualization set on a small Server 2016 install, running a half dozen VMs. Everything was working fine for months, but I let Windows update last night and when it rebooted suddenly none of the VMs would startup. When
I attempted to check them with the management tool it tells me it’s connecting to the Hyper-V Virtual Machine Management Service, and it never stops saying that except to sometimes say it cannot be reached. This is all locally on the server, not remotely.
This has not happened in the past. When I attempt to stop or restart the Hyper-V Virtual Machine Management Service it takes a long time and then ends with Error 1503 saying that it cannot stop the service as it took too long to respond.

I tried rolling back the update, and that changed nothing unfortunately. This is pretty disastrous for me, hopefully someone can help me out!

Edit: As far as I can tell none of the VMs boot, none appear to be on the network switch, and I cannot access them through any means.

The Get-VM command hands powershell, and whether the service is stopped or not (which is does eventually stop after 10+ minutes) the network switch information in the Hyper-V configuration area for switches never becomes available.

Read full post . . . .

Failover Cluster – Cluster Storage permissions

Hi everyone, I have next scenario. In our company we are using powerhell to provision new virtual machines, we also using service user which doesn’t have admin rights on Hyper-V hosts, this user excecutes scripts remotly on our Hypers.

Sometimes we have problems, because that user can’t delete old folders of virtual machines from location C:ClusterStorageVolume1.

This user already have full ClusterRights. I want to give that user FULL rights on C:ClusterStorageVolume1, Volume2 folder and so on.

Can you give me some advice, because i didn’t find anything helpful on internet regarding to this. Current owner of ClusterStorageVolume1 is System. Should I change ntfs permissions directly on ntfs volume or?

Thank you

Read full post . . . .

Hyper-v freeze but vms working fine

I’m facing small issue with few of our Hyperv-2012, 

 

It’s getting freeze after running for continuous 12-24 hours, we can’t ping neither console its full black screen, but VM hosted on it is working fine, we can ping and RDP into it,

 

Appreciate if some can help

Read full post . . . .

REFS for a Hyper-V CSV Volume

I am currently running a 4 node Server 2016 Hyper-V cluster storage is provided by a DELL MD3200 SAN normal concepts for CSV volume on NTFS are in place as previously nodes where 2012R2 and 2008R2 prior. My main question is I am going to be adding another
SAN DELL MD3420 and I have been wondering whether to use REFS for the file system for VM’s situated on this SAN.

I came across a Veeam article advising moving to this scenario however I would like to get the opinion of you all.

Regards

Chris


MCP, MCTS, MCITP, MCITPVA, MCSA 2012, MCSE Private Cloud, MCSE Server Infrastructure

Read full post . . . .

External Ethernet Adapter is already bound to the microsoft virtual switch protocol

Hi,

I have a Virtual Switch that already bound to a Physical Adapter, and I would like to create another Virtual Switch to be bound to the same Physical Adapater, but I’m getting an error: "External Ethernet Adapter is already bound to the microsoft
virtual switch protocol" Any help?

Read full post . . . .

Use cmdlet to live migrate VM changing the vNetwork.

Good morning.

I have to live migrate VMs from “Hyper-v on Server 2012” to “Hyper-v Server 2012 R2”.
Well, at the same time I have to migrate all the storage (Config, Snapshots, Pagingfiles and VHDs).
Up to here everything is ok. 
At the same time without loose the VMs connectivity I have to change the vNetwork because the vNetworks on the new Hosts are different.

I will use Move-VM powershell cmdlet, example:

Move-VM $VM remoteServer -VirtualMachinePath $Path1 -SnapshotFilePath $Path1 -SmartPagingFilePath $Path1 -IncludeStorage -VHDs @(@{"SourceFilePath" = $OldVHDPath1; "DestinationFilePath" = $NewVHDPath1}, @{"SourceFilePath" = $OldVHDPath2;
"DestinationFilePath" = $NewVHDPath2}) 

When I do it manually through the Hyper-v Console, it ask me to change it:

How can I change vSwitch at the same time that I Move the VM using a cmdlet without loosing connection?

Thanks in advance and have a nice week,
Angel Biurrun.

 

Read full post . . . .

Virtual Machine Generation 2 Boot Issue!!! (Windows Repair Bootloop! ) Hyper-V 2012 R2

Hello people, I’m having the following with the GEN 2 in Hyper-V 2012 R2.

Issue: After bouncing my GEN2  Hyper-V VM I get this.

Then I get the Windows Repair and nothing happens after this point!  

Does someone have experience this issue ?

The bad thing with it is as it’s production there’s no checkpoints and I cannot recover it!

Note: this doesn’t happens with GEN1 VM’s.

Any help will be really appreciated

Read full post . . . .

Go Que Newsroom

Categories