Quantcast
Channel: Hyper-V forum
Viewing all 19461 articles
Browse latest View live

How to bind checkpoints and avhdx files using powershell

0
0

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


Forum FAQ: Error 0x80070005 when exporting Hyper-V VMs over the Network

0
0

Symptom

 

You use Hyper-V on a computer that is running Windows Server 2008 or Windows Server 2008 R2.

  • In Hyper-V Manager, you try to try to export a virtual machine to a network share.
  • You have the full control permissions on the network share.

 

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

DATA NOT STORED IN GUEST OS??

0
0


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?





Hyper-V windows 10 cannot create virtual switch

0
0
I have been trying to create a virtual switch and keep getting an error which is beyond my understanding can some please help me. I have attached a couple of images which I hope will help to explain what I am saying. Any help would be appreciated. 

Hyper-V Replication of Domain Controller

0
0

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?

Unable to find the specify generation when creating Hyper V using wizard

0
0

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,

Importing virtual machine with powershell from networkshare

0
0

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.

How to convert Gen 2 VM to Gen 1?

0
0

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.


Problem getting network connectivity when creating a Virtual Network Adapter

0
0
Hi Everyone

I am having a strange problem configuring my Hyper-V Virtual Switch and Virtual Network Adapters and I am hoping someone can lend me their expertise.

To start, I created a team of 2 physical NICs:
    New-NetLBFOTeam "PhysicalTeam" –TeamMembers "Ethernet 1", "Ethernet 2" -TeamingMode SwitchIndependent -LoadBalancingAlgorithm HyperVPort


Next, I created a Hyper-V Switch:
    New-VMSwitch "HVSWITCH" –NetAdapterName "PhysicalTeam" –MinimumBandwidthMode Weight –AllowManagementOS $false

At this point, the "Allow management operating system to share this network adapter" is unchecked in the Hyper-V Manager -> Virtual Switch Manager GUI.


Finally I created a new Virtual Network Adapter which I plan to give the Management OS network connectivity from:
    Add-VMNetworkAdapter –ManagementOS –Name "Management" –SwitchName "HVSWITCH"
    Which resulted in the "Allow management operating system to share this network adapter" becoming checked.

    Set-VMNetworkAdapterVLAN -ManagementOS -VMNetworkAdapterName "Management" -Access -VLANID 300
    Which resulted in The VLAN ID section of the "Virtual Switch Manager" becoming checked and being populated with "300" in the box.


Then I set a static IP on the "Management" Adapter with an address from VLAN 300.

The problem I am having is that the Management Network Adapter I have created does not see any network connectivity, cannot ping the gateway, etc..



I know that the problem does not lie in the outside network because I took the following troubleshooting steps:

I deleted the Hyper-V Switch and the Virtual Network Adapter that I previously created. I then proceeded to statically IP "PhysicalTeam" using the same address as before and setting the VLAN for the team

in the LBFO GUI to 300. After doing this, I get connectivity and can ping, etc..


To further add to my confusion, I wiped the static addresses from "Physical Team" and removed the VLAN settings from the LBFO GUI.
Then I created the Hyper-V Switch again using the same command as before.
This time instead of using PowerShell to create the "Management" Network Adapter, I went into the "Hyper-V Manager -> Virtual Switch Manager" and checked off "Allow management operating system to share this network adapter" and in the VLAN ID section, I checked off the box and entered 300.

This created a Network Adapter with the same name as the Switch - "vEthernet (HVSWITCH)", and to my surprise this method worked to get connectivity once the static IP was set.



My question at this point is why didn't it work through powershell? Is there something different that the Virtual Switch Manager does?
I tried wiping everything a few times over. Everytime I create the "Management" adapter and set the VLAN through powershell there is no connectivity, but doing it through "Virtual Switch Manager" always
works.

I must be doing something wrong. I am trying to get this to work through powershell since I want to use a script to automate this task on multiple servers.

Thanks

VM replication from local hyper-V to Azure site recovery failed with the error event id 33680

0
0

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

Discovering remote FC ports on Hyper-V Windows Server 2012

0
0

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

MSVM_ComputerSystem WMI class returns only Hyper-V host

0
0

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

how to get the hyperv server of the VM residing using WMI

0
0

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 


Visual Studio Emulators for Android doesn't work on Windows 10

0
0

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

http://blogs.msdn.com/b/virtual_pc_guy/archive/2008/01/17/allowing-non-administrators-to-control-hyper-v.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. 

Error exporting Hyper-V VM

0
0

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


Best Cloud Serverice for Sever2012r2 Hyper V virtualization/testing

0
0
My slow PC can't handle all the VMs or emulate HyperV (a VM engine).  I want to to experiment with HyperV.  I heard it's possible to setup VMs with EC2.  Can anyone please explain the best and easiet method - AWS, GCP, or what?

Hyper-V 3.0 VM stuck in "Stopping" state

0
0

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?

Windows server loose network connection if there is heavy network load towards Hyper-V Switch.

0
0

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.

2008 R2 Hyper V for small office- Do I need to seperate DC and FIle/App server?

0
0

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

Unable to install Hyper-V 2012 R2. Error 0xc0000017 occurs on Windows Boot Manager after inital install.

0
0

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.

Viewing all 19461 articles
Browse latest View live




Latest Images