SCVMM and "Virtual Hard disks" directory
Hello,
We have noticed that Virtual Machines created using SCVMM doesn't create "Virtual Hard Disks" directory and puts the VHDX files into the Virtual Machine data root.
But if VM are created using Hyper-V defaults values this directory is created.
How can we set/define SCVMM to use also this directory?
We would like to have the same directory structure when VM are created, and the usage of "Virtual Hard disks" directory is quite clean directory sctructure.
Best Regards.
To add - the feedback from the majority of folks is that they expect / prefer the way that SCVMM does this and wish that Hyper-V would do it this way by default. (each VM neatly in its own folder and not spread across the Hyper-V Server file system
is what most folks prefer.)
As Samir mentioned, only performing disk move actions in SCVMM or using PowerShell to drive the SCVMM deployment (and defining more granular settings) would change this default action.
Brian Ehlert
http://ITProctology.blogspot.com
Learn. Apply. Repeat.
Similar Messages
-
Virtual PC and Virtual Hard Disk
Hello,
Any infos on the Virtual PC for Ideapad Y650 ?
because I can't access at the part CPU of the BIOS ?
Thanks
EROL
Moderator edit: Split this post and the next EROL posts out of the "Availability of Windows 7 Beta Device Drivers for some Lenovo Thinkpads" thread, to give this separate subject more exposure.
Message Edited by bananaman on 05-29-2009 08:35 AMAny one have test this :
To add a native-boot VHD to an existing Windows 7 boot menu
If you are deploying the VHD to a computer with an existing Windows 7 or Windows Server® 2008 R2 installation, you can use the BCDedit tool to make the new VHD bootable and add it to the boot menu.
Note Before you begin, you can backup your BCD store using the BCDedit tool with the /export option. For example, at a command prompt, type:
bcdedit /export c:\bcdbackup
1. Copy an existing boot entry for a Windows 7 installation. You will then modify the copy for use as the VHD boot entry. At a command prompt, type:
bcdedit /copy {default} /d "vhd boot (locate)"
2. When the BCDedit command completes successfully, it returns a {GUID} as output in the Command Prompt window.
3. Locate the {GUID} in the command-prompt output for the previous command. Copy the GUID, including the braces, to use in the following steps.
4. Set the device and osdevice options for the VHD boot entry. At a command prompt, type:
bcdedit /set {guid} device vhd=[locate]\windows7.vhd
bcdedit /set {guid} osdevice vhd=[locate]\windows7.vhd
5. Set the boot entry for the VHD as the default boot entry. When the computer restarts, the boot menu will display all of the Windows installations on the computer and boot into the VHD after the operating-system selection countdown completes. At a command prompt, type:
bcdedit /default {guid}
6. Some x86 systems require a boot configuration option for the kernel in order to detect certain hardware information and successfully native boot from a VHD. At a command prompt, type:
bcdedit /set {guid} detecthal on
For more information about using the BCDedit tool, see ( go.microsoft.com ).
Thanks EROL -
Creating a Master virtual hard disk and using the same for all other VM's
Hi,
We would like to create a master virtual hard disk and use the same for all other VM's. Can we do that ?
my requirements :
1) create 10 VM's
2) first create a master virtual hard disk with win OS and use the same to create the 10 VM's.
3) After creating the VM's change the HDD size.
-- if i have created master virtual disk with 500GB , and use the same for creating a virtual machine. can we change the HDD size to 1TB ?
After creating the VM's ,i will change the system names and activate the windows accordingly.
Will there be any implications ,if we can/will do like this.
Thanks.Hi Suren424,
I think Using Differencing Disks may cover your needs .
Please refer to following setps:
"Create the Parent Virtual Machine Configuration and Virtual Hard Disk
Install the Operating System, updates, and common software
Generalize the installation
Prepare the parent virtual hard disk
Create the differencing disks
Create virtual machines that use the differencing disks
For details please refer to follwing link:
http://social.technet.microsoft.com/wiki/contents/articles/1393.hyper-v-virtual-machine-vm-parent-child-configuration-using-differencing-disks.aspx
Hope this helps
Best Regards
Elton Ji
We
are trying to better understand customer views on social support experience, so your participation in this
interview project would be greatly appreciated if you have time.
Thanks for helping make community forums a great place. -
When attempting to delete a VHD in the library, I am getting the below error message. Any thoughts on where I might look for the dependency "Virtual Hard Disk deployment configuration"?
Exact error message:
The library object (os_disk) cannot be removed because following objects are dependent on it:
Virtual Hard Disk deployment configuration
Please ensure that no objects are dependent on this library object and try the operation again.
ID: 848On the final version (tested in 2012 SP1)
Suggest this instead of hacking around in the database:
You will receive a message that objects are dependent on the library object. Note the name that is listed after "VM Template"
Go to powershell in scvmm
Run:
remove-scvmtemplate -vmtemplate "NAME_YOU_RECORDED_FROM_ERROR"
Then, you can delete the template from SCVMM,
Wow Microsoft, Wow. -
Experts !
Error (23317)
The operation Change properties of virtual machine is not permitted on a virtual machine that has shared virtual hard disks.
Recommended Action
The operation Change properties of virtual machine is not permitted on a virtual machine that has shared virtual hard disks.
Is this limitation by design? If we have a shared VHDX between two VMs, then I am not able to change the VM properties from SCVMM.
SCVMM 2012 R2 with Windows Server 2012 R2 Hyper-V.
Appreciate any help !
Optimism is the faith that leads to achievement. Nothing can be done without hope and confidence.
InsideVirtualization.comHello,
that is a VMM issue.
If you did not deploy your virtual cluster from a VMM service template, VMM doesn't recognize the configuration.
Until MS got it fixed, you could use the workaround from system center central:
http://www.systemcentercentral.com/tag/shared-vhdx/
This posting is provided >AS IS< with no warranties. -
Hi All,
I am new to the hyper V stuff. I have managed to install hyper-V on Windows 8. Now I am trying to import VM which got three foleders and one file batch file
Snapshots
Virtual Hard Disks
Virtual Machines
VM-Pre-Import 10961A-LON-CL1 (Batch file)
but I am getting this error
Please help me.
ThanksHi Tom,
Thanks for giving me direction. I am student and totally new to this hyper-v, so bit slow in understanding right now
This is the location of the files when i had extracted from rar file
Directory of C:\Program Files\Microsoft Learning\10961\Drives\10961A-LON-CL1
06/13/2014 07:54 AM <DIR> .
06/13/2014 07:54 AM <DIR> ..
03/16/2013 12:05 AM <DIR> Snapshots
06/13/2014 07:25 AM <DIR> Virtual Hard Disks
06/13/2014 06:25 AM <DIR> Virtual Machines
03/15/2013 07:38 PM 135 VM-Pre-Import-10961A-LON-CL1.bat
1 File(s) 135 bytes
5 Dir(s) 477,346,160,640 bytes free
when I opened the bat file -- location of the file
SET SUBDIR=%~dp0
mklink "%SUBDIR%Virtual Hard Disks\Base12B-W8.vhd" "C:\Program Files\Microsoft Learning\Base\Base12B-W8.vhd"
pause
and then i have changed the dir path to
SET SUBDIR=%~dp0
mklink "%SUBDIR%Virtual Hard Disks\Base12B-W8.vhd" "C:\Program Files\Microsoft Learning\10961\Drives\10961A-LON-CLI\Base12B-W8.vhd"
pause
When I tried to run the batch file then I got following message -- Can't creat a file when that file already exists.
Please advise -
Hyper-V Error 0x80070050 Virtual Hard Disk already exists.
Hi All,
I'm new to this form and virtualization. I was able to create a Virtual computer with Hyper-V but ended up deleting it due to an error I couldn't resolve during the OS installation process. When I try to create a new virtual computer with the same name I
get an error saying "The system failed to create a virtual hard disk (hard disk path and name .vhdx) the file already exists 0x80070050" I can not find that file anywhere to remove it even though I already deleted the virtual computer. Anyone ideas
on how to fix this, I don't want to always have to make new unique names if I delete one to make a new one. I'm using this server to learn on and I will most likely be doing a lot of deleting and creations.
Thank you,
JamesJames,
Most likely under "c:\ProgramData\..." which is a hidden folder by default on your system. Look around under this directory - "c:\ProgramData\Microsoft\Hyper-V" or something similar.
BTW - You can configure Hyper-V to tell it where to store the VHDs.
Regards,
-Steve -
Error adding VM through Powershell: Virtual hard disk in the chain of differencing
I'm trying to programmatically create a VM from a .vhd file - my code is below. I'm getting a weirdo file not found error about disk chaining, but I've TRIPLE checked all my paths. Help is much appreciated!!!
Thanks,
Error:
ADD-VMHardDiskDrive : 'Testing' failed to add device 'Virtual Hard Disk'. (Virtual machine ID ADC7CF7D-2EC5-4428-B27C-6EDCF29F5922)
Failed to open virtual disk 'E:\will\VMTesting\Flash.480x800.vhd'. A problem was encountered opening a virtual hard disk in the chain of differencing
disks, 'E:\will\VMTesting\Flash.vhd' (referenced by 'E:\will\VMTesting\Flash.480x800.vhd'): 'The system cannot find the file specified.' (0x80070002).
My PowerShell code:
$n = "Testing";
$directory = "E:\will\VMTesting";
$vhdxPath = "$directory\$n.vhdx";
$vhdPath = "$directory\Flash.480x800.vhd";
$vm = Get-VM $n;
if($vm -ne $null) { Remove-VM $n -Force; }
New-VM -Name $n -MemoryStartupBytes (Invoke-Expression "1000MB") -Path $directory;
Set-VMMemory -VMName $n -DynamicMemoryEnabled $true -MinimumBytes 512MB -MaximumBytes 4096MB -StartupBytes 2048MB -Buffer 20;
ADD-VMHardDiskDrive -VMName $n -Path $vhdPath;
Start-VM $n;Hi Will ,
According to the error message , please try to check the chain of differencing disk via "inspect disk.." .
# Create our New Differencing Disk
New-VHD –ParentPath T:\02R2June2012\08R2TemplateJune2012.vhdx –Path T:\lab50\lab50-PSDiffDiskVM\lab50-PSDiffDiskVM.vhdx -Differencing
For creating a differencing disk please refer to following link:
http://lyncdup.com/2012/06/creating-hyper-v-3-differencing-disks-in-server-2012-with-gui-and-powershell/
Hope this helps
Best Regards
Elton Ji
We
are trying to better understand customer views on social support experience, so your participation in this
interview project would be greatly appreciated if you have time.
Thanks for helping make community forums a great place. -
Hello,
Issue:
On a Virtual Machine with a secondary VHDX attached, I cannot manage (bring online, initialize, partition, format, or write to) the VHDX hard drive once it has "Enable Virtual Hard Disk Sharing (VHD Sharing)" enabled.
Questions:
Should I be able to manage (bring online, initialize, partition, format, and write to) a VHDX hard drive once it has VHD Sharing enabled? If I should be able to manage it, what am I missing?
Topography:
One SuperMicro Cluster In a Box (CIB) with 2012 R2 Data Center on each node. Microsoft Failover Cluster installed and working on each node. The Failover Cluster Servers on each host passes all cluster validation tests. Two Hyper-V 2012 R2 Data Center Virtual
Machine (VM) servers, one on each node. 1 common Cluster Shared Volume (CSV) and 1 Generation 2 Scale-Out File Server (SOFS) shared volume both Resilient File System (REFS) formatted. One 5 Gigabit (Gb) Virtual Hard Drive Type X (VHDX) file on the CSV and/or
SOFS. Integrity bit and read only turned off on VHDX file.
Each of the two Hyper-V VMs have one 127Gb VHDX Generation 2 primary hard drive and 1 VHDX secondary hard drive attached, both on SCSI Controller #1.
Background:
If I start VM1 without the VHD Sharing enabled on the secondary hard drive, I can bring the drive online, initialize, partition, format, and write to the drive.
If I enable VHD Sharing, I can no longer modify the drive in Disk Management in any way. With or without VM2 running.
Both VMs and the CSV and SOFS are on the same host cluster server, or not, no difference…
The VHDX is referenced either by the CSV name C:\ClusterStorage\Volume1\TEST1.VHDX
or a Shared Folder name
\\sharedfolder\folder\Test1.VHDX .
If I start VM1 with VHD Sharing disabled and I format the drive, then shut down and enable VHD Sharing, the drive is offline and requests initialization which fails with an "I/O device error", every other attempt to manage the drive fails with
the same "I/O device error", error.
Events:
VDS fails to write boot code on a disk during clean operation. Error code: 8007045D@02070008
Log Name: System
Source: Virtual Disk Service
Date: 3/3/2015 11:39:18 AM
Event ID: 10
Task Category: None
Level: Error
Keywords: Classic
User: N/A
Computer: Server1.Domain.local
Description:
VDS fails to write boot code on a disk during clean operation. Error code: 8007045D@02070008
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="Virtual Disk Service" />
<EventID Qualifiers="49664">10</EventID>
<Level>2</Level>
<Task>0</Task>
<Keywords>0x80000000000000</Keywords>
<TimeCreated SystemTime="2015-03-03T19:39:18.000000000Z" />
<EventRecordID>27318</EventRecordID>
<Channel>System</Channel>
<Computer> Server1.Domain.local </Computer>
<Security />
</System>
<EventData>
<Data>8007045D@02070008</Data>
</EventData>
</Event>
AND
Log Name: System
Source: disk
Date: 3/3/2015 12:16:42 PM
Event ID: 153
Task Category: None
Level: Warning
Keywords: Classic
User: N/A
Computer: Server1.Domain.local
Description:
The IO operation at logical block address 0x0 for Disk 1 (PDO name: \Device\MPIODisk1) was retried.
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="disk" />
<EventID Qualifiers="32772">153</EventID>
<Level>3</Level>
<Task>0</Task>
<Keywords>0x80000000000000</Keywords>
<TimeCreated SystemTime="2015-03-03T20:16:42.017090000Z" />
<EventRecordID>27333</EventRecordID>
<Channel>System</Channel>
<Computer>Server1.Domain.local</Computer>
<Security />
</System>
<EventData>
<Data>\Device\Harddisk1\DR1</Data>
<Data>0x0</Data>
<Data>1</Data>
<Data>\Device\MPIODisk1</Data>
<Binary>0F01040004002C00000000009900048000000000000000000000000000000000000000000000000000020488</Binary>
</EventData>
</Event>
Thanks again for any help,
RobertHi All,
I had to buy a Willy Wonka bar and spend a golden ticket to get an answer to this one.
We found that the default LogicalSectorSizeBytes of a VHDX is 512b. It needs to be 4kb.
The Host drive doesn't seem to matter CSV or SOFS. Below is a way to create a VHDX with the correct LogicalSectorSizeBytes.
In Power Shell, type --> New-VHD -Path C:\ClusterStorage\Volume4\Cluster2DataDisks\Cluster2Disk1.vhdx -SizeBytes 200Gb -PhysicalSectorSizeBytes 4kb -LogicalSectorSizeBytes 4kb
Attach the resulting file to your guest cluster servers and set the Enable Virtual Hard Disk Sharing option on both server. You should now be able to bring the drives on-line and initialize them. They will also add to the guest cluster pool.
Change the size, path and file name above to fit your Cluster Servers configuration.
Thank You
Sachin Kumar Support Engineer | Windows Server Setup Team | Microsoft Enterprise Platform for finding the answer to this one.
Hope this helps others.
Robert -
The server encounter an error while attaching Virtual Hard Disk in Windows Server 2008R2
Unable to add an existing virtual hard disk in new VM(windows server 2008r2).
Please repost here:
https://social.technet.microsoft.com/Forums/windowsserver/en-US/home?forum=winserverhyperv
And include the actual and full error message. -
i was add new hard disk in my VM and choose the parent is my old one but it overwrite on the basic Virtual Hard Disk and i lost all data i only have file .avhdx same size for the old Basic virtul hard disk .i need to back an recover my data can i use the
.avhdx file to recover my data? or how can i do that?
please urgent.
If you had an AVHDX, then you had a checkpoint / snapshot.
If this was the case, you should not edit the configuration directly, but instead mange checkpoints.
Simply attach to the correct AVHDX and you will see the data contained within the AVHDX.
Brian Ehlert
http://ITProctology.blogspot.com
Learn. Apply. Repeat.
Disclaimer: Attempting change is of your own free will. -
Operations Manager log flooded with 11903 errors due to "Virtual Hard Disk free disk space" monitor
Management Pack: Microsoft Windows Hyper-V 2012 R2 Monitoring (7.1.10104.0)
Monitor: Virtual Hard Disk free disk space
There appears to be an issue with this monitor. Every hour, each of my Hyper-V servers is reporting dozens of errors similar to the following. It seems like there is a disconnect between the expected return type (integer) and the actual type (decimal) when
checking the free space on VHDX files.
Log Name: Operations Manager
Source: Health Service Modules
Date: 2/5/2014 7:59:47 AM
Event ID: 11903
Task Category: None
Level: Error
Keywords: Classic
User: N/A
Computer: BEAST.corp.technologytoolbox.com
Description:
The Microsoft Operations Manager Expression Filter Module could not convert the received value to the requested type.
Property Expression: Property[@Name='Microsoft:9AC8FCAB-800D-424F-ABCB-747063E5FCF1\559D22F4-A565-4AD4-9B71-44FC5D815C0C\0\0\L.FreeSpace']
Property Value: 488033.99609375
Conversion Type: DataItemElementTypeInteger(5)
Original Error: 0x80FF005A
One or more workflows were affected by this.
Workflow name: Microsoft.Windows.HyperV.2012.R2.VirtualDrive.FreeSpaceMonitor
Instance name: Hard Disk
Instance ID: {0C0E0759-D846-963C-21E6-3C1A1C096D5F}
Management group: HQ
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="Health Service Modules" />
<EventID Qualifiers="49152">11903</EventID>
<Level>2</Level>
<Task>0</Task>
<Keywords>0x80000000000000</Keywords>
<TimeCreated SystemTime="2014-02-05T14:59:47.000000000Z" />
<EventRecordID>32395</EventRecordID>
<Channel>Operations Manager</Channel>
<Computer>BEAST.corp.technologytoolbox.com</Computer>
<Security />
</System>
<EventData>
<Data>HQ</Data>
<Data>Microsoft.Windows.HyperV.2012.R2.VirtualDrive.FreeSpaceMonitor</Data>
<Data>Hard Disk</Data>
<Data>{0C0E0759-D846-963C-21E6-3C1A1C096D5F}</Data>
<Data>Property[@Name='Microsoft:9AC8FCAB-800D-424F-ABCB-747063E5FCF1\559D22F4-A565-4AD4-9B71-44FC5D815C0C\0\0\L.FreeSpace']</Data>
<Data>488033.99609375</Data>
<Data>DataItemElementTypeInteger(5)</Data>
<Data>0x80FF005A</Data>
</EventData>
</Event>SCOM agent is running as SYSTEM. (I used to run SCOM agents as a low-privilege domain account but eventually surrendered to "The Dark Side" due to the number of issues encountered with that approach.)
PS HKU:\.DEFAULT\Control Panel\International> dir
Hive: HKEY_USERS\.DEFAULT\Control Panel\International
Name Property
Geo Nation : 244
User Profile Languages : {en-US}
ShowAutoCorrection : 1
ShowTextPrediction : 1
ShowCasing : 1
ShowShiftLock : 1
User Profile System Backup Languages : {en-US}
ShowAutoCorrection : 1
ShowTextPrediction : 1
ShowCasing : 1
ShowShiftLock : 1 -
How do I access virtual "Hard Disk 2"?
I have created a new virtual machine. I have a initially created a Parent drive and set it as READ ONLY. In my new VM I created Hard Disk 1 as a Differencing disk that references the parent drive. I created Hard Disk 2 as a Dynamic Disk. When I launch
the machine I only have the single virtual "C" drive available. I was expecting another drive to be available. How do I access Hard Disk 2 - or am I not understanding the purpose of the additional hard disks?Have you gone into Disk Manager and initialized the drive? When you create a new VHD, it's just a blank virtual hard disk. You need to initialize, partition, and format it before it's usable in Windows.
-
Help - The chain of virtual hard disks is corrupted
I took a snapshot of a VHD that I tried to expand to 40GB. After expanding I tried to restart the VM but got the error that "The Chain of virtual hard disks is corrupted".
Apparently because I expanded the Parent VHD it threw up this error ( i assume because the snapshot differed in size?)
This led me to Vhdtool which I ran: vhdtool.exe /repair parentvhdfile.vhd snapshotvhdfile.vhd /quiet
This appeared to have run okay. However when I went to restart the VM again I got the error:
Servername Failed to start
Microsoft emulated IDE controller failed to power on with error - the chain of virtual hard disks is corrupted. There is a mismatch in the virtual sizes of the parent virtual hard disk and differencing disk.
Failed to open virtual disks. The size of the vurtua;l disk is not valid.
etc...
I notice that my parent VHD = 40GB in size, whilst the Snapshot (avhd) file = 109K
I think I need your help, I don't know what to do!!If you made changes to the parent drive, your chain will be corrupted. Changes to the parent disk invalidate all the child disk.
Do you have a backup of the original parent disk? -
The storage where the virtual hard disk is located does not support virtual disk sharing
Hi everyone,
I deployed 2 hyper v vitual machines a while ago, and i did that because I needed to test my current game Project, which is an
online game. However, i've had some problems with my Windows installation then I had to reset the pc by making it a refresh
install. I still have the hyper v virtual disks, but i cannot attach it to a new hyper-v virtual machine. it pops up this message:
"the storage
where the virtual hard disk is located does not support virtual disk sharing". I dont know anything about virtual machines, so I
didnt know I had to make the disk sharable. How can I force to attach the hard disk to a new hyper-v? I dont want to go t
hrough the whole proccess of installing the operating system all over again and updating it....
Any help is greatly appreciated!
Thanks in advance,
Romulo RomeroHi MrDebugging,
>>
When I Try to add a SCSI Controller, and then I click browse to add a UNC I get this:
C:\Users\Public\Documents\Hyper-V\Virtual hard disks\ClienMachine.vhdx
but I tried placing in different location, and the same problem occurs!
By the way, Im not on a server , I am a domestic user and I am running it on my
Windows 8.1
According to the error message , it seems that it is not a permission issue .
The VM is Gen 1 or Gen2 ?
Generally the error message occurs when you enable "shared vhdx" on standalone/client hyper-v host :
Please try to attach the VHDx file to IDE controller if it is a Gen 1 virtual machine (because only the SCSI controller has the option "virtual hard disk sharing" and Gen 1 VM only can boot from IDE )
All in all , please do not use this feature without CSV or Scale-Out File Server with SMB 3.0 on file-based storage .
If it is not the case , please detail steps what you did .
Best Regards,
Elton Ji
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected] .
Maybe you are looking for
-
User Unable to change Ship to address in SC while creating
Hi All, When user is trying to change the ship to address which was defaulted is unable to make change. USer is trying to make manual entry in the NAME field change so that the other field would automatically gets changed withrespect to NAME in the S
-
Hi, I am new to Golden Gate. I have query I am setting up a UNIDIRECTIONAL replication from Source to Target (very simple default configuration.GETINSERT,GETUPDATE,GETDELETE) to replica of source and target. Table :SOURCE_A(SOR_COL). Insert below thr
-
HOW to create TAX code in FTXP SCREEN
Hi gurus Can anybody explain , hot to maintain the tax code for below mentioned structure. Bed16% ed2%secess1%8.5%deductible4%non deductible. Please explain me stet by step , inFTXP.. what are inputs I need to give.because in ftxp screen, Thanks mm
-
Multiple Speaker box shows a locked Apple TV speaker option.
In my Multiple Speaker box under iTunes my Apple TV icon has a small image of a "Lock" in the locked position. I think this is the reason I can't play music through the speakers connected to my Apple TV. How do I unlock this?
-
In Settings\iCloud Don't See "upgrade to iCloud drive" or "set up family sharing"
I would like to use family sharing. We have iOS8, but in Settings\iCloud we don't see "upgrade to iCloud drive" or "set up family sharing". I am unsure what else to do. I searched support, but they all see to assume we can see these settings. Help