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

network issues for both host (8/8.1) and vm

$
0
0

Hello,

I have several users reporting connectivity issues with their laptops, what these users have in common is that they run virtual machines using Hyper-V on their laptops.

OS: 8 & 8.1

NIC: some have Ethernet connection & Wifi but some only have wifi (with a USB to Ethernet adaptor)

VM connection to the internet:

- some user have our "recommended" settings: a "shared" internal NIC (the VM has its own separate network and the laptop "routes" the VM to the internet)

- some users have a direct external connection (not "recommended" because our pool of IP is not infinite and to avoid to VM with the same ID in case they did not import the template VM correctly)

1. Usually, they notice the connectivity issue when the switch from physical LAN: in that case, I tell them to go for ipconfig /release then /renew (it solves the "mix up" between old & new DHCP)

2. Some of them have only a wifi NIC on their laptop (no "physical" ethernet connection). In theory, Hyper-V can now run over wifi although it is not ideal yet. Is there any solution beside running only one VM at a time and avoiding browsing on both the VM and the host at the same time ?

3. in the Hyper-V virtual switch, some testing on a desktop that has no wifi but also had connection issues (it was used to check the configuration of Hyper-V) showed that unchecking the VLAN ID option in 8.1; before (in Windows 8) we used to check that option) somewhat improved things. Does anyone know how the VLAN ID option could affect the connectivity to Internet of both the host and the VM ?

Is there a more permanent solution to the connectivity issues than ipconfig /release / renew on the VM each time they swap location or VM ? because some of my users will complain that "this is not a solution..."

Has there been any changes to the latency of the DHCP cache for the VMs in Hyper-V between Windows 8 and Windows 8.1 that would explain the increased number of complains ?

Thanks for the ideas


hyper v failed to enable replication hyper v cannot connect to replica server

$
0
0

Hello All,

I got an issue. I have two servers A and B(Both are not joined to Domain). Server A is primary server and Server B is replica Server and i have enabled replication from A to B successfully. After few days Primary server was due to some physical issue and servers are replicated to B and working well. Now we have repaired the A server and changed the OS and we want to move the VMs from Server B to Server A. I configured replication in Server A and B newly. Now Server B is primary and server is A Replica. But i am not able to enable replication. I am getting the above mentioned Error. I need to move VMs from Server B to Server A without any Down time.  Please find the below error log.

Hyper-V failed to enable replication for virtual machine 'IE-TEST-REP01': A security error occurred (0x00002F8F). (Virtual Machine ID 90408129-968B-41B6-BA05-9C99555E57CA)


Thanks


CentOS 6.5 / Linux VM KVP IP can't be shown on Hyper-V Manager after querying its KVP/IP information on Hyper-V host several times

$
0
0

Hello

I am using a CentOS 6.5 VM (Linux kernel 2.6.32-431) with Hyper-V KVP daemon installed, and I periodically query its IP (via using WMI or Powershell to query its KVP information) to manage it.

However, after querying its IP (KVP) for several times, its IPcan’t be queried or shown on Hyper-V Manager anymore.

I attached a simple KVP query Powershell script as the follows, and this problem can be reproduced in couple minutes if you run two instances with this script at the same time.

$VMName = $args[0]
write-host "$VMName"

filter Import-CimXml
{
    $CimXml = [Xml]$_
    $CimObj = New-Object -TypeName System.Object
    foreach ($CimProperty in $CimXml.SelectNodes("/INSTANCE/PROPERTY"))
    {
        if ($CimProperty.Name -eq "Name" -or $CimProperty.Name -eq "Data")
        {
            $CimObj | Add-Member -MemberType NoteProperty -Name $CimProperty.NAME -Value $CimProperty.VALUE
        }        
    }
    $CimObj
    $CimObj = $null
}

for ($i=1 ; $i -le 10000 ; $i++) {    
    $a = Get-Date
    write-host "$i - Time: " $a.ToLocalTime()
    $vm = Get-WmiObject -Namespace root\virtualization\v2 -Query "Select * From Msvm_ComputerSystem Where ElementName='$VMName'"
    $vm.ElementName
    $vmkvp = Get-WmiObject -Namespace root\virtualization\v2 -Query "Associators of {$vm} Where AssocClass=Msvm_SystemDevice ResultClass=Msvm_KvpExchangeComponent"
    $vmkvp.GuestIntrinsicExchangeItems | Import-CimXml
}

By the way, I found the following patches and gave them a try, but the problem still remains (And the generation 2 Ubuntu 14.04 with Linux kernel 3.13 also has this problem).

 - Patch "Drivers: hv: util: Fix a bug in the KVP code" has been added to the 3.14-stable tree

 - Drivers: hv: vmbus: Fix a bug in the channel callback dispatch code

P.S. Generation 2 CentOS 7 VM (Linux kernel 3.10.0-123) also has this problem, but Windows VM is ok

Thanks,

Paul

Is there PowerShell Command to Display the Active vHBA WWPN for a VM?

$
0
0

Hello,

I am running a Hyper-V cluster with a VM that I have setup to run NPIV for its data volumes...!  I have been searching for a PS cmlet that will display the active vHBA WWPN for the VM but can find anything. 

Still Hunting! 

VHDX Support for W2008R2 Guest

$
0
0

I'm a little confused about the support for guest o/s's using the VHDx format. I have seen quotes on this forum saying that any supported guest o/s can be run using VHDx, yet when I create a virtual HD using W2012R2 Hyper-V, it says that W2012 is the oldest o/s to support VHDx.

Currently, I have a pre-production environment running on a Hyper-V W2012R2 platform. All the guest VM's are (Gen 1) W2008R2 servers. Currently I am using the VHDx format for the boot and data disks on these VM's. Everything seems to be running OK now, but I am concerned that if this is not a supported configuration that I may have trouble in the future.

Can someone clarify if my environment would be supported by Microsoft going forward, and if not, can I simply convert the existing VHDx volumes into VHD's using the Hyper-V Manager GUI?

Thanks!

VMQ Connection Policy in on Cisco UCS Enviornment

$
0
0

Hello,

I have built a Windows 2012R2 Hyper-V cluster on Cisco  B200M3's 2.21d firmware VIC 1240. I was unable to get the OS to enable VMQ on the NIC's that I presented to Hyper-V for VM networking. I finally found that I needed to create a  VMQ Connection policy and assign that policy to the NIC's at the hardware level that I wanted to use VMQ on. In this policy there are two settings required 1) Number of VMQ's and 2) Number of Interrupts. This is where my question comes in, how do I figure out what values to use here?

So I opened a support ticket and was given the following:

  • The number of interrupts value is calculated by - the total number of CPU threads that the server has
  • The number is VMQ’s is calculated by  The Number of VMQs = Number of Synthetic NICs (VM NICs) + 1) - this was clarified again later as the number of NIC's on the VM's that are present on the host. So if I have 25 vm's 1 NIC each my value should be 25.

The Interrupts makes sense however the VMQ's does not. I have a cluster and VM's are migrated back and forth between nodes for obvious reasons and we also add and remove VM's on a regular basis. I can obviously change the number of VMQ's to match when changes are made but seems very unreasonable to me.

So that all said, does anyone else have feedback on these settings?

Windows Azure Pack for IaaS

$
0
0

Dear All,

            I have setup my Fabric Cluster and Fabric Management Cluster.  Now, I want to integrate Windows Azure Pack with my solution so that end-users can access it via portal and request accordingly.  I am unsure of the exact steps required, so basically I am looking for any documentation that can guide me through with this implementation.  Essentially, I want to implement Windows Azure Pack to provide IaaS to my end-users.  Thanks. 

Slow backup performance when the owner of the VM and CSV are not in the same host

$
0
0

3 hosts in the Hyper-V 2012 cluster and few CSV volumes.

The slow backup performance (around 1xxx MB/min in backup exec) will occure when it meets the following scenario :

1. VM on Node 1 and CSV 1

2. CSV 1 owner is Node 2

When i change the owner of CSV 1 to Node 1, the backup performance will return to normal (over 6000MB/min in Backup exec).


Repair corrupt VHD

$
0
0
I have a VHD that was damaged it appeby a RAID failure.  The RAID didn't fail the disk but it logged a "A block on the physical disk has been punctured by the controller" and "There was an unrecoverable disk media error during the rebuild or recovery operation" error last night.  The VHD now is showing as blank internally.  If I boot the VM with a 2008 R2 ISO and use recovery tools it shows the main partition as blank.  Also if I attempt to mount VHD via disk manager it prompts me to format disk.  I am moving the VHD to another disk, but is there any chance of recovery or is the VHD too damaged?

Why do I need to install RSAT on Windows 8.1 for accessing Hyper-V Server 2012 R2?

$
0
0
Since Windows 8.1 has Hyper-V Platform and Hyper-V Manager built in to it, if I just enable the Hyper-V Manager on my Windows 8.1 client machine I should be able to access the standalone Hyper-V Server 2012 R2 (which I'm planning to install on my 2nd machine) right?  

Then why every article I found on this suggests to install RSAT on my client machine?

Recover a VHD file from a formatted volume

$
0
0

Apologies if this is not the right forum.

So I was preparing a new server to host virtual machines. This is a Dell PE r710, Dual quad-core Xeon processors, 48 GB RAM, 2x 72 GB SAS drives. The server has Hyper-V Server 2008 R2 installed. iSCSI volumes hosted in a Dell EqualLogic SAN will host the actual virtual machines. We have 5 of these with similar setups, 3 of which are setup in a cluster. We have 2 set aside for additional projects. These will not be clustered as they will be hosting Lync virtual machines. Anyway we have 1 server setup and working with 2 VM's. The 2nd server will initially host 2 additional VM's. My goal was to format the iSCSI volume on the 2nd server and prepare it to host VMs. Except I accidentally logged into the 1st server (it's one of those days - I was interrupted as I was typing in the server name into Remote Desktop and it auto-populated the first server instead of the 2nd) and begin formatting the volume. Needless to say Lync stopped working and the VMs crashed. I immediately recognized my mistake and stopped the format but obviously it was too late.

I was hoping I could recover the data on that volume. We have a trial of this software called GetDataBack NTFS edition. It can recognize the volume ok and it can scan it and see files. Unfortunately it does not see actual VHD files. Instead what happens is that it sees the VHD files as separate volumes/partitions/etc and recovers the data within the VHD files. Not sure if it should do that, waiting on a response from Runtime. Kind of cool in a way if we ever needed to recover data within a VHD file. Anyway, does anyone know of software that can recover data from a volume but not scan the contents of the vhd file and include that data in the recovery? By this I mean I want to recover the actual VHD files, not the data within. Perhaps Virtual Machine Manager can do something? We do have it installed and manage our VM's with it. It would save us the trouble of re-deploying Lync. Apparently there's a lot of ADSI edits needed to undo the changes Lync did to AD/ Even migrating users back requires some ADSI edits. Trying to find those online someplace just in case.

We did not have backups yet of these 2 VMS as we just recently got them setup and have moved a few users over (some of us from IT). We still had some configuration/tweaking/adjustments to make before migrating the remainder of our OCS users. I know, I know, backup backup backup. The SAN we have can even do snapshots of iSCSI volumes but we didn't even think of enabling it yet.

Regardless in what happens with the VM's, I enabled Windows Server Backup and will immediately setup nightly backups once the VM's are operational again. I will also have our SAN admin enable snapshots, and just for laughs I will also enable snapshots on the individual VM's. We're also currently testing out Data Protection Manager. Kind of wish we already had it implemented....sigh...

 

Thanks,

Banging my head against a board with a nail in it...

Creating Hyper-V cluster - do all virtual machines lose his disks?

$
0
0

Hi everyone,

I didn't find the answer in Technet documentation, so, I have two Hyper-V 2012 R2 servers. I want to build a failover cluster with CSV. My question is, when I'll run the cluster creation wizard - will be my VM's lose his virtual disks? In example, I have a VM with attached .vhdx on the disk F:, and then I'm adding F: to CSV - will the VM stop or fail into BSOD?

SOS!!! Recover Lost VHD

$
0
0

Hello,

I urgently need your help with this request and I will appreciate a quick response.

I performed a live migration of my VMs from one HYPERV host to another. Unfortunately, I lost the physical disk of the second HYPER-V host and I can't recover any files from it.

Is there a way I can recover the VHD from the initial Host as I think this is my best option right now. What usually happens to exported VHD during live migration?

Many thanks

SAN


SAN

How to recover from a corrupted VHD file?

$
0
0

 

There is a tool that can recover logical problems in the VHD structure?

A friend called me and told me that his VS R2 Enterprise with 4 VMs suffered a power falure and after that, one of the VMs does not startup anymore. The erros is the same as using VHDMOUNT, something similar: "VHD file could not be mounted"

There is a CHKDSK for VHD files?

How to "rebuild" a corrupetd VHD file? How to analyze logical structure of a offline VHD file?

 

Error creating VM on Hyper-V Windows server 2012 R2 (0x80070569).

$
0
0
I recently installed in my domain a member server 2012 r2 with Hyper-V Role, and got the following error when creating a new vm:

Logon failure: the user has not been granted the requested logon type at this computer.(0x80070569).

The user is momber of Domain Admins group and is logged on the server. I noted that the domain admins group has not the right "log on as a batch Job". Is this right required to create vm ? What are the others requirements to install and admin virtual machines in Hyper-V?

VMM 2012 R2 unable to start VM in Fusion Lab - Event ID 15130 20144

$
0
0

I have created a System Center lab on my Macbook using Fusion with 4 x Windows 2012 R2 VM's and 1 Windows 2008 R2 VM

2 Hyper-V Hosts

1 System Center VMM 2012

1 Windows 2008 DC

I have created my first VM without HA on the host group but it fails to start with:

Error (12700)
VMM cannot complete the host operation on the msschv04.mssc.com server because of the error: 'VM1' failed to start. (Virtual machine ID C479CA36-3131-44C9-94AF-602EBC572078)

The Virtual Machine Management Service failed to start the virtual machine 'VM1' because one of the Hyper-V components is not running (Virtual machine ID C479CA36-3131-44C9-94AF-602EBC572078).
Unknown error (0x8000)

Recommended Action
Resolve the host issue and then try the operation again.

The Hyper-V server reports event ID:15130

'VM1' failed to start. (Virtual machine ID C479CA36-3131-44C9-94AF-602EBC572078)

and 20144

The Virtual Machine Management Service failed to start the virtual machine 'VM1' because one of the Hyper-V components is not running (Virtual machine ID C479CA36-3131-44C9-94AF-602EBC572078).

I don't have any AV installed on either Host

I have not configured a virtual switch

I dont have the verifier enabled

I have configured Fusion to allow VT-x/EPT inside the VM

Can anyone advise what I can check to determine the issue.

TIA


Vista Ultimate Dell XPS M1330

How to determine the Host a VM runs on, if VM is 2012

$
0
0

Morning all

HyperV host on Win2012 (standard, not R2), guest is the same.

Time was, you could query HKLM\SOFTWARE\Microsoft\Virtual Machine\Guest\Parameters\PhysicalHostName on a VM to find out the name of the host it was running on, and this is handy for us as we run various scripts to update inventories and such. With a 2012 guest, sometimes that key is no longer populated and for the life of me I can't work out why. The Parameters key is there, but totally empty.

Any thoughts? As you'll know, W2012 has the HyperV integration stuff built in, so it's not like they're out of date or anything. One working and one not-working are both at the same patch levels.

Thanks

A

VM reset by guest operating system .Event ID 18514

$
0
0

Hi,

I have created two VMs(one Red Hat and another Windows Server 2008 R2 ) in 2012 R2 server. It seems that the VMs are being reset by Guest operating system daily. I confirm this on checking the log under Applications and Services Logs --> Microsoft --> Windows -->Hyper-V worker.

Have any one experienced this ? Searching the net yields no luck.Please help

Hyper-V Replica Stuck on Merge in Progress - No Percentage

$
0
0

Running Windows Hyper-V Server 2012 core on two machines.  Attempting for the first time to backup one VM from each Hyper-V Server to the other.

HV1 has a 1.5 Tb fixed VHDX that was approximately 1/4 used.  I initially attempted to start replication from HV1 to HV2 across the WAN, but realized that was going to take too long.  So I put HV1 and HV2 on the same LAN and restarted replication.

I also tried to replicate from HV2 to HV1 a 4 Tb fixed VHDX.  There was about 1.5 Tb used of the 4 Tb VHDX.

The VMs on both Hyper-V Servers have been shut down.  The files look like they copied from one Hyper-V Server to the other, but my HV1 has been showing "Merge in Progress" for over a week.  HV2 seems to have completed whatever it needed to do within 1-2 days.  There is an AVHDX file on HV1, but it is not obvious to me that is changing in size at all (either growing larger or smaller - as I assume should occur as part of the merge).

On HV1 the status shows "Merge in Progress" with several periods, which cycle between 1 and 5, but there is no other progress indicator.  I was expecting something to say X% completed?  It looks like something is going on.  The HDD indicator is on and I can hear a lot of disk activity on HV1.

I have tried rebooting HV1 twice to see if something was stuck, but that didn't seem to make any difference.  Shortly after the reboot both VMs on HV1 were back to "Merge in Progress" status.

When I look at the DIR output on either Hyper-V Server I see some slight changes in the amount of the HDD used, but not nearly as much as I would think given the amount of disk activity.

Given both Hyper-V Servers are on the same LAN right now my intention was to wait for the merge to complete before returning HV1 to its home and restarting replication across the WAN.

But this has been running for over a week.  Copying the whole VHDX shouldn't take more than a few hours, so I don't understand why a merge is taking so long.

Any ideas as to why this doesn't seem to be making any progress?

P.S.  Both Hyper-V Servers have a RAID hardware controller.  HV1 is running RAID5.  HV2 has a better controller and is running RAID6.


Theokrat


how to use previous snapshots of a vm after re-installing windows

$
0
0

hi friends

i have deployed a virtual machine via hyper-v in windows 2008 R2. i have also created some snapshots of this VM.

after i removed current windows & installed new windows 2008 R2 & i create a new virtual machine via existing VHD hard disk, is there any method to have previous snapshots of that virtual machine in hyper-v console?

i mean i want when i create a new virtual machine & select the previous hard disk (.VHD), under that vm, i see the list of previous snapshots & use them



Viewing all 19461 articles
Browse latest View live




Latest Images