Archive by category "Hyper-v"

Get WWN Windows Server

Windows Fibre Channel Information Tool.
Tool for gathering configuration information on your Fibre Channel SAN based on the SNIA HBAAPI for management of Fibre Channel Host Bus Adapters and discovery of SAN resources.

Downlaod the MSI file FCINFO:
Download FCinfo

Install the MSI file on your system.
Open a command prompt typ “fcinfo ?” for the commands.

Expand disk Hyper-v 2012 R2

Online expanding of a VHDX is only possible with:
VHDX files that are attached to a SCSI controller.

Generation 1 VMs Boot always from a IDE Hard Drive.
Generation 2 VMs Boot always from a SCSI Virtual Hard Drive.

The following Windows guest operating systems are supported as generation 2 virtual machines:

  • Windows Server 2012 R2
  • Windows Server 2012
  • 64-bit versions of Windows 8.1
  • 64-bit versions of Windows 8

General access denied error (0x80070005)

This issue occurs when the VM Security permissions on the VHDx are gone. Every VM has a unique ID. This unique ID is added to the VHDx security permissions for accessing / locking files.
There are 2 possible solutions to fix this.

Solution 1:

Detach the VHDx with the “remove” remove button in Hyper-v or Failover cluster manager. Just make sure you don’t remove the actual file!

Attach the VHDx again.
Now you can start the VM.

Solution 2:
  1. In this example is the virtual machine ID 684B169F-DB4A-493F-B34A-762E205AB1E4
  2. Go to the node wich host this VM
  3. Open an elevated command prompt
  4. icacls <path of vhd> /grant "NT VIRTUAL MACHINE\<Virtual machine ID>":(F)
  5. Start the virtual machine