H
I created a few checkpoints of VM. How to check what is the phisical size of avhdx file of the checkpoint?
Using Get-VMSnapshot I can get the size of "SizeOfSystemFiles" but it is not avhdx file.
Thank you for help.
Kind Regards Tomasz
H
I created a few checkpoints of VM. How to check what is the phisical size of avhdx file of the checkpoint?
Using Get-VMSnapshot I can get the size of "SizeOfSystemFiles" but it is not avhdx file.
Thank you for help.
Kind Regards Tomasz
Symptom
You use Hyper-V on a computer that is running Windows Server 2008 or Windows Server 2008 R2.
In this scenario the export may fail with an error that resembles the following:
An error occurred while attempting to export the virtual machine.
Failed to copy file during export.
Failed to copy file from ‘<source path of VHD file>’ to ‘<network share>’: General access denied error (0x80070005)
Cause
When you export a virtual machine in Hyper-V manager, it is the System account of the Hyper-V host that executes the export. This problem occurs because the Hyper-V host does not have permission on the network share
Resolution
Ensure the permissions allow the Computer account of the Hyper-V host performing the Export to update the shared folder.
Note: While following steps are specific to 2008, the idea is the same for updating the share and NTFS permissions if the share is hosted on other versions of Windows. You can adjust the steps accordingly.
Updating the NTFS level permissions:
1. On the destination server, Right-click on the shared folder and select Properties.
2. Select the Security tab.
3. Click Edit button and click the Add button in the permissions dialog box.
4. Click Oject Types and select Computers if not already done and click OK.
5. In the dialog "Enter the object names to select" provide the name of Hyper-V host machine and click Check Names.
6. With the Hyper-V host machine name select, click Allow by "Full control" and click OK.
Updating the share level permissions:
1. On the destination server, Right-click on the shared folder and select Properties.
2. Select the Sharing tab.
3. Click Advanced Sharing...
4. On the Advanced Sharing dialog, click Permissions and then Add.
5. Click Oject Types and select Computers if not already done and click OK.
6. In the dialog "Enter the object names to select" provide the name of Hyper-V host machine and click Check Names.
7. With the Hyper-V host machine name select, click Allow by "Full control" and click OK.
Applies to
Windows Server 2008
Dell PowerEdge T110 II Tower Server
Windows Server 2012 R2
Hyper-v VM manager
Windows 7 Pro (Guest OS)
______________________________________
Here goes a seemingly mind-boggling situation: The Hyper-V guest OS (win7 pro) serves as the database server (MySQL) for storing customer data. Power outage occurred, network switch connecting the tower server to the outside world was at the moment (for some reasons) not connected to power backup systems therefore was turned off along with other devices except the DELL server. I wasn't 'on-site' when this happened so local personnel (NO login access to the DELL server tower's host OS), thinking it was just a simple matter of power cycle, powered up the network switch but after having been informed by the front-line tellers that the SQL database server (installed on guest OS) within the tower server's host OS is still not accessible, pressed the server's POWER BUTTON to initiate a soft shutdown (again thinking it was just a simple power-cycle feat). Database still not accessible, I was called and turned right up to find out- Guest OS is in a "SAVED" state with a few parent and child snapshots (checkpoints). The attempt to turn it ON pulled up errors after errors that hindered me from even seeing the guest OS' boot screen. I selected the option to "Delete Saved State" and start but to no avail. So I went ahead to just create a NEW virtual machine using the same VHD file that the troubled VM was using. Creation successful, logged in to the Gust OS, check all installed programs especially the SQL database and other supporting applications. Everything looks perfectly fine even from the front-line teller's workstation's end. Problem fixed so I thought I'd call it a day. Then the most dreadful thing happened - all daily inputs of data from FOUR MONTHS AGO went missing! Now the tellers are breathing down my neck. I had no choice but to resurrect the poor old VM. Fortunately, I was able to pull it off. How did that happen? Isn't data supposed to be stored in the actual guest OS and NOT the snapshots associated with it?
Hi, A bit of a strange one....
We have a number of clients replicating their IT Environment to our own server using Windows 2012 R2 Hyper-V Replication. For the most part this all works very well. However, for one client, when we do a Test-Failover of either of the DCs we are replicating, the DCs start up as though they are not DCs. The Sysvol and Netlogon shares do not exist.
Other clients replicating to the same server do not have the same problem and the Test-Failover VMs start up without issue.
The Production DCs can restart and there are no issues encountered.
I've removed the Replication and restarted it with no change.
Anyone have any ideas?
Dear Server Expert,
I am trying to create VM via the virtual machine wizard in hyper v. however, I found that currently the specify generation option is not available, hence I am not able to create generation 2 vm. I am currently using Windows Server 2012 Standard
Please advise on this.
THanks so much
Regards,
What i am trying to do is to import an exported Hyper-v machine from network share using Powershell command:
invoke-command -ComputerName MACHINETOIMPORT -Credential admin@domain.local -ScriptBlock {Import-VM -Path "\\FILESERVER\SHARE$\machinetoimport\Virtual MAchines\xxxxxxx.vmcx" -Copy -GenerateNewID
As you can see i try to use PSRemoting functions for importing. Above command produces Access is Denied error. I have allready modified share and ntfs permissions Full Control for target Computer Accounts im am going to import Virtual Machine to.
If I copy exported machine to local disk, it can be imported with no problems. I would prefer to import form Network share becouse that way i save hours of copying files to local disk first.
Dear Hyper V Expert,
may I know is it possible to do conversion from Gen 2VM to Gen 1, so I can attach the VHD into my Gen 1 Hypervisor?
thanks.
Hello there,
I'm running some test to see how the replication is performed between hyper-V and azure site recovery. It's been a week now that i'm trying to replicate a VM which contains active directory 2012. Each time I launch the replication I have the error with the id 33680. the replication stops abruptly just after and I don't know how I can solve it. Can you please help with with this issu??
Thank you in advance for your help.
B.regards,
Sara
Hi Everyone,
We're testing Windows Server 2012 on Hyper-V with Fiber Channel.
When we try to fetch the FC port mapping using HBA_GetFcpTargetMappingV2 routine - it fails.
I did a query on MSFC_FiberPortHBAAttributes, which returned 0 for NumberOfDiscoveredPorts, although the machine has a volume on a remote storage box connected throw the FC port.
The host server does return the remote ports (The physical HBA vendor is QLogic).
Do you know another way for discovering the remote ports or an update to resolve this issue?
Thanks
Hello Everyone,
Trying to get list of VMs using WMI and am only getting the host machine.
Found a question in this forum with the same subject from a few years back, the problem there was the user didn't own local Administrator permissions.
I'm trying with a user which is in the Administators group - so supposedly should be fine.
The OS however is Windows 10.
Does anyone have an idea what should I tweak to get the full list of machines?
Sincerely,
Michael
Hello,
How to get to know of the hyperv server that the VM is residing in using the WMI queries?
especially when the vm is in the cluster, how to get to know the hyperv server hosting it?
Thanks in advance
Hi,
When I try to start emulator the start task fails, with message like below.
10.08.2015 14:06:01: [Critical] Unable to add user to the Hyper-V Administrators group. Exit code 2220.
I was using it on Windows 8.1 where it worked well on the same PC. This proves that my PC meets all requirements and it is properly configured. After clean install of Windows 10 emulator doesn't work.
Hyper-V on my PC is running well. I can create and run 32 and 64 bit vm's. There is problem with creating android vm's by vs emulator. There is no group "Hyper-V Administrators" and it can't be created.
Tried these solutions:
http://blogs.msdn.com/b/virtual_pc_guy/archive/2010/09/28/creating-a-hyper-v-administrators-local-group-through-powershell.aspx
also i tried to recreate InitialStore.xml for Hyper-V with needed group and operations but without success. It seems that hyper-v bundled with windows 10 doesn't require any special group to run, create, manage and remove vm's, switches, etc. Emulator thinks different and it can't assign me to group which does not exists.
I am running 2 VMs in Server 2008 R2 with Hyper-V. But am running out of space on the partition where the VMs were created. I have another larger partition on the same Hyper-V server and want to move the VMs to this larger partition.
I was able to successfully export one of the VMs to the larger partion and import it succesfully. The process ran perfectly.
However when I try to export the second VM the following error is is generated...
-------------------------------------------------------------------------------------
An error occured while attempting to export the virtual machine.
Export filed for virtual machine 'SALVO'.
Export failed for virtual machine 'SALVO'
(41322DFC-B316-4CF8-9B19-7753078F0D4B) with error 'The system cannot find the file specified.' (0x80070002).
-------------------------------------------------------------------------------------
What can I do to resolve this error. The VM is functioning fine. I don't understand why I am not able to export it. At one point in time I did have a second vhd attached to the system. But I removed it long ago and there were no observable side effects.
Thanks, David
We are running Hyper-V on a 2012 server and for the 20nd time in as many months I've logged into a VM and restarted or migrated to another host it but it's stuck in the "stopping" state in Hyper-V 3.0 and doesn't give me any Turn Off, Shutdown, Save, Pause or Reset options. The only thing I've been able to do is to schedule a time to reboot the Hyper-V server. Has anyone else experienced this? Is there any command I can run get the VM top turn off w/o having to reboot or restart the Hyper-V service?
Our host environment as below:
HP C7000 Blade Chasis
16x ProLiant BL460c Gen8 Server (Intel(R) Xeon(R) CPU E5-2650 0 @ 2.00GHz (8 Cores) - 256GB Ram)
Blades server have Hp FlexFabric 10Gb 2-port
2x HP VC Flex-10 Enet Module on Chassie
HP VC 8Gb 20-Port FC Module on Chassie
Also We turned off tcp checksum offloading but it didn't work.
We've opened case to HP support but they analyzing our system and didn't find any problem to themself.
Does anybody have any fixes for these problems?
Hi Team,
I have Windows server 2012 R2 with 6 Virtual servers. When there is heavy network load towards Hyper-V switch, host server loose network connection. I need go to and restart server by login locally to server.
When I checked event log from host server. I found event at the time of server restarted.
WAS was disconnected.
HRESULT: -2147024787
Process Name: SMSvcHost
Process ID: 2016.
is this is the cause server loosing network connection.? I even cant ping to server before restarting server.
Please help me resolve this issue.
Hello,
I have Pretty decent server 2008 R2 that I'm preparing for small office 5-users.
Dental office, so there will be SQL application and bunch of file (images) storage.
I already created a HyperV host, and Virtual machine ready.
Im not sure if it is worth to use one virtual for DC and one for APP/storage server.
What do you guys think?
MIke
Hi there,
I'm trying to install Hyper-V 2012 R2 using the UEFI install.
The installation goes most the way through until the UEFI is updated and contains the Windows Boot Manager. However as soon as Hyper-V boots within the boot manager for the first time an unexpected error occurs with the status code 0xc000017.
The Hardware I am running on is as follows
ASRock FM2A85X-ITX Motherboard. (most recent firmware) CPU = AMD A6-5400K APU 3.6Mhz FM2 Black Edition.
16Gb Ram (x2 8GB 1333Mhz DRAMM) Intel Pro 1000 PT PCIE x16 Dual NIC.
x3 1TB WD (HDD) hard disks x1 Sandisk SSD 120Gb (Used as the Primary partition for install).
x1 150 WD HD x1 500Gb WD.
In terms of troubleshooting what would be the next steps? Should I start stripping out hardware until the OS boots?
I have attempted a reinstallation with the same result. I have also performed the memory check and no issues are reported.