Questions tagged [vhdx]

VHDX is the virtual hard disk format introduced with Hyper-V 2012. It is designed to enhance performance and data protections over the earlier VHD format.

Filter by
Sorted by
Tagged with
1 vote
1 answer
542 views

How to reduce a RDS user's vhdx?

In order to reduce RDS user's vhdx (User Profile Disks) size, I wanted to test disk2vhd to rebuild a vhdx from mounted vhdx. But it doesn't work on virtual drive. Optimize-VHD is not suitable for this ...
Alysko's user avatar
  • 121
0 votes
0 answers
70 views

Removed a VHDX disk from VM and after readding it my data has reset to 4+ months ago?

I have a HyperV server with a VM for a windows file share. I have a VHDX attached to the VM that has all the data for the file share. I needed to temporarily remove the VHDX disk, and upon clicking &...
Joe Jankowiak's user avatar
0 votes
0 answers
51 views

Deduplication inside VHDX

I want to use deduplication on files coming from a vhdx, but it doesn't seem to work as it doesn't optimize space. I tested it on another 'normal' file system (containing xlsx, pst, doc files, etc.) ...
GoldenH4ck's user avatar
0 votes
1 answer
292 views

How to (properly) trim Hyper-V Linux VMs on Server 2022?

I have tried a truckload of guides, but neither seems to work properly. My issue is the following: I have a host with 1TB SSD drives The VMs barely use ~50G/150G of space (when checked with df -h), ...
Apache's user avatar
  • 294
0 votes
0 answers
32 views

After Syspreping a VHDX on a VM, mounting it means restoring to previous state

I create a VM with a VHDX. I write some txt files in C:\LocalFiles. If I turn off the VM using Stop-VM and restart it, the files are still there. The problem arises when I run C:\Windows\System32\...
noobie's user avatar
  • 101
0 votes
1 answer
383 views

Add Partition Table to existing vhdx partition image

I have images of single paritions (not full disks) in vhdx format. I want to create VMs with Hyper-V with them. Since the images are only partitions the machines do not start. How can I add the disk ...
Fritz's user avatar
  • 103
0 votes
1 answer
327 views

Mount attached drive in virtual machine using Hyper-V from the command line

I'm trying to automate some of my processes when adding a new hyper-v vm. One of the steps I have to do manually is add the newly created and attached vhdx to the new virtual machine. It shows up like ...
ErocM's user avatar
  • 226
0 votes
1 answer
7k views

Failed to map guest I/O buffer for write access with status 0xC0000044 Hyper-V-StorageVSP Event ID 8

Full Error information: Error 8/9/2021 10:35:11 AM Hyper-V-StorageVSP 8 None Failed to map guest I/O buffer for write access with status 0xC0000044. Device name = d:\vms\servername\virtual ...
Eric Nord's user avatar
  • 111
1 vote
1 answer
596 views

Why am I unable to edit Hyper-V disks for running VMs when permissions are ok

We have a 4 node Hyper-V cluster running about 15 VMs. On none of them I have tested, can I inspect or edit VHDXs on running VMs. I get a permissions error of some kind when attempting to do so: ...
James Edmonds's user avatar
0 votes
1 answer
2k views

Completely remove virtual disks with diskpart (list volume still shows them)

I'm creating a lot of differencing disks for my project and deleting them after some time. I use "detach vdisk" command, they disappear from disk management but they are not completely ...
F Andrei's user avatar
3 votes
2 answers
1k views

Unable to start a VM with a Shared Disk

We're running Hyper-V 2019 on a 2 node cluster. We have 2 VMs in the Failover Cluster which are clustered together to run a server. This service requires a shared disk. The shared disk is located in a ...
Greg's user avatar
  • 463
0 votes
1 answer
315 views

How to boot vhdx drives?

I recovered a bare metal backup for one hyper-v vm (2012 R2) in the form of 2 vhdx files. How can I boot the backed up vm? Should I burn into a USB/DVD or can I just use an unallocated drive space?
Omar Obeid's user avatar
1 vote
1 answer
2k views

Is it possible to extract / copy the content of a VHDX file [closed]

I have recently created a Raspian VM using Hyper-V on Windows 10 so I can start learning the OS as part of a personal project. What I would like to be able to do is take the content of this VM image ...
Darren Wainwright's user avatar
1 vote
1 answer
794 views

Unable to Extend Partition on Hyper-V Generation 2 VM

I'm facing a weird problem with Generation 2 Hyper-V VM, where I'm unable to extend partition in Guest OS. Once I edit the VHDX & Expand it using Hyper-V Manager on the Host OS, and boot into ...
AlexVPerl's user avatar
  • 217
0 votes
0 answers
208 views

How do I correctly SysPrep Gen2 Hyper-V image or fix the one I'm working with?

My goal was to create a Win10 image (with programs installed) that I could quickly copy and reuse on Hyper-V for testing things. I created a Gen2 image, installed Win10+apps, then SysPrep'd and shut ...
William YK's user avatar
3 votes
1 answer
7k views

Is it possible to mount VHDX in Linux as RW?

Is it possible to mount VHDX (not vhd) disk file in Linux as a read + write block device ? I have found that qemu-img allows conversion of vhdx disks to other formats, but I am looking for read + ...
TimB's user avatar
  • 193
6 votes
1 answer
4k views

Hyper-V vhdx file is much larger than the contents

I have a virtual machine, that has dynamically expanding vhdx as a C drive. Or 'thin provisioned' to speak in terms of other hyper-visors. I'm running Windows server 2016 on it, as a DC to be exact. ...
Dennis's user avatar
  • 696
1 vote
2 answers
169 views

bitlocked VHDX security

I have a physical server deployed to a third party. On said server, runs a Windows 2016 Hyper-V VM. The VM's VHDX is encrypted with Bitlocker. The third party has admin access to the physical server, ...
resle's user avatar
  • 189
0 votes
0 answers
39 views

Can a program detect that the drive it's running on is a locally-mounted but network-stored VHD/VHDX?

This is all in the context of Windows 10, both client and server. Background: Some programs block installation/running on shared network folders. I don't mean errors due to sharing/file permissions ...
user avatar
2 votes
1 answer
253 views

Creating VHD using Microsoft's Systernals Disk2VHD program of production box

I created a VHD file of our small production server (hosting internal web pages for the company). I'd like to set up the VHD up as a dev server so that it'll be a mirror of the production system and I ...
HPWD's user avatar
  • 127
0 votes
1 answer
278 views

Command line HDD to VHDX

Is it possible to create a Windows shadow volume copy of an HDD to a VHDX using powershell? I got as far as simply creating an empty VHDX $disk = New-VHD -Path "d:/test.vhdx" -Dynamic -SizeBytes ...
resle's user avatar
  • 189
2 votes
1 answer
933 views

Unable to assign drive letter to non-booting VHDX

I am trying to get a virtual file server (Windows 8.1 Pro, inherited) running on Windows Server 2016 (Standard). In Hyper-V Manager, I can create a Gen 2 VM (when I tried Gen 1, I couldn't get past ...
s2z's user avatar
  • 21
2 votes
0 answers
126 views

Cannot recover from Windows Server Backup after expanded volume

I am running a Windows Server 2012 r2 instance on Hyper-v, I set up Windows Server Backup to run every night to incrementally back up a large folder. The folder sits on the same Virtual Hard Disc as ...
YoizFi's user avatar
  • 21
0 votes
1 answer
859 views

CHKDSK erases VHDX That threw Corrupted/Unreadable Error

A windows 7 Virtual machine instance running on a windows 12 server had a 'blue screen of death' with a REGISTRY_ERROR (Code 51). After several unsuccessful reboots (successfully to safe-mode but ...
nmattise's user avatar
  • 101
3 votes
1 answer
9k views

I can not boot my VHDX which was created from physical drive

I need to migrate my Server 2012 R2 Fileserver (physical) to another Server (virtual). That's why I need to create VHDX Files to run them later in Hyper-V All my drives were no problem, except the C ...
SimonS's user avatar
  • 785
10 votes
1 answer
23k views

Hyperv-V creates mystery .avhdx files and fills up disk space

I have windows server 2016. Also i have Hyper-V role on my server. Every day in 5:36 i have error, that disk full and my virtual machine is stopping. In Hyper-V logs: ProviderName: Microsoft-...
Piduna's user avatar
  • 571
8 votes
2 answers
1k views

Moving Hyper-V virtual disk to SMB share gives file not found error in the end

I want to move some virtual disks to from an old ISCSI disk (old NAS) to a new SMB share but for every disk it gives a file not found error in the end and gives the location of the disk on the SMB ...
aardbol's user avatar
  • 1,473
0 votes
0 answers
2k views

Is it possible for multiple users to mount a virtual hard drive?

We have a Windows Server 2012 R2 Essentials server and several Windows 10 Pro PCs. We have a drive on the server with all our company documents on which is shared over the network and mapped to all ...
Ben's user avatar
  • 123
2 votes
1 answer
9k views

how to remove avhdx file?

I use Windows Server 2012 Hyper-V role. I accidentally pressed the "Snapshot" on a running VM. During the creation of snaphost, I clicked "cancel". The operation of creating a snapshot is ...
Sergey.N's user avatar
0 votes
1 answer
1k views

Poor performance of a VHDX on RAID5

I have a high-end desktop PC. MB: Intel DX79TO CPU: Intel i7-3820 @ 3.6GHz RAM: Quad Channel Kingston Hyper-X DDR3 16GB @ 2400 MHz SSD: Kingston Hiper-X 120GB (Host OS resides here) RAID5: 4 x 1TB - ...
Bozhidar Stoyneff's user avatar
0 votes
3 answers
947 views

Discrepancy between VHDX size and what the OS reports

I have an ubuntu 16.04 VM on a Server 2012 R2 Hyper-V server. The VHDX (dynamically expanding VHD) size is 1.8TB but the VM inside reports that only 3% of the disk is used. I don't understand why ...
user2629636's user avatar
0 votes
1 answer
3k views

User profiles as VHDX files - paging operation errors

Hello we have this terminal server on w2k12. Users login and have their profile mounted as virtual disk from VHDX file with filename like this C:\Users\Public\Documents\RDS_UserProfileDisks\UVHD-S-1-5-...
Vitas's user avatar
  • 147
1 vote
1 answer
2k views

Migrate Windows 7 guest VM to Generation 2?

Yes, I know that officially Hyper-V Gen 2 VMs don't support Windows 7, but maybe there is some workaround or fix? Had anybody such experience? I created new Gen 2 VM, converted my Win7 VHD to VHDx ...
Suncatcher's user avatar
5 votes
2 answers
1k views

Ubuntu on Hyper-V and VHDX

I have a setup where I will run a Ubuntu Server on two VHDX disks. System 50GB and Data 4TB. They are located on a mirrored Storage Spaces Pool and are dynamic expanded. During the Ubuntu ...
Sam's user avatar
  • 370
1 vote
0 answers
74 views

Better to deduplicate inside VHDX on client or outside VHDX on host? [duplicate]

I have a 16TB array that I'm hosting in a virtual environment. It contains video and photos from our marketing department. The data resides on the Hyper-V host itself as a VHDX file on a 8-drive SATA ...
Mike Capps's user avatar
5 votes
3 answers
965 views

Hyper-V guest failover cluster file server

Environnent is full Windows Server 2012 R2. I have a Hyper-V cluster on which I host a testing fail-over cluster file server with 2 guests. Guest cluster is running and file server role installed ...
Cyril's user avatar
  • 51
0 votes
0 answers
28 views

Server 2012 R2 - Sharing 'cluster shared volume' .VHDX hard drives between two VMs, are they supposed to not live update? [duplicate]

I have a .VHDX volume that's a cluster shared volume in a Server 2012 R2 failover cluster. I'm able to share the hard drive between two VMs. If I create a folder on VM2, it doesn't show in VM1 in the ...
Christopher Bruce's user avatar
1 vote
2 answers
5k views

Use a shared vhdx as shared drive

I have a Windows Cluster made up of two nodes connected via SAS to a storage array. I have two virtual machines configured with their hard disks (vhdx) on the shared storage. They are up and running ...
maurice's user avatar
  • 61
3 votes
1 answer
893 views

Converting virtual drives from .vmdk to .vhdx produces huge files

I'm using powershell and ConvertTo-MvmcVirtualHardDisk cmdlet to convert .vmdk disks into .vhdx disks to be able to run them in our hyper-v environment. For some reason, the .vhdx files produced are ...
f0rsman's user avatar
  • 131
4 votes
0 answers
1k views

How to dismount a VHD that has been absorbed into a Storage Space

Normally in Windows, you can create a Virtual Hard Disk (VHD), see it in the Disk Management, right-click, and remove it: No problem. Storage Spaces Hides Disks I want to test the resiliency of ...
Ian Boyd's user avatar
  • 5,343
1 vote
0 answers
3k views

Can't mount or edit VHDX file, in use

OS is Windows Server 2012 I have a VHDX file that we've been using for backups since Windows won't play nice with our NAS. The first 6 backups worked flawlessly, and they show up in the Windows ...
anthozep's user avatar
  • 111
0 votes
1 answer
44 views

Refreshing VM with limited Disk SPace

I have a Hyper-V machine that crashed. I am trying to refresh it but the disk is too small when I load the disk.ISO in. I tried to expand it but I still get the screen. Is there a way to add the added ...
Jason's user avatar
  • 3,941
2 votes
1 answer
3k views

Hyper-V VHDx Compacting & SIzing Issue - No Minimum Size, Unable to Shrink

Trying to recover ~450GB unallocated space from a VHDx total filesize. Thanks for taking a look at this issue: Hyper-V Server 2012. Dynamic VHDx (we'll call it disk2.vhdx) with a file size of 1.5TB ...
TSga's user avatar
  • 121
1 vote
0 answers
945 views

Hyper-V Ubuntu vhdx scsi ide

I have a Hyper-v 2nd gen Ubuntu machine (scsi). I did add the vhdx file to a 1st gen (ide) machine (not as start disk, but to try to use some system rescue cd tools to srink the vhdx zerrofill). I ...
Sam's user avatar
  • 370
0 votes
0 answers
136 views

Preventing a read-write first automount after adding a VHDX onto a CentOS7 HyperV VM

I have a VHDX file (representing a non-boot ext4 fs) that I need to run some forensics on. I have a working CentOS7 HyperV VM on a Win2012R2 host. I want to attach the VHDX to the CentOS7 VM, which ...
Kev's user avatar
  • 984
9 votes
5 answers
20k views

What are the possible reasons why Hyper-V can't compact a VHD?

I am hosting several virtual machines on a host running Hyper-V Server 2008 R2. The disks were originally provisioned on a different server (2008, not R2) about 16 months ago, and were migrated onto ...
Nic's user avatar
  • 13.5k