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

SCVMM 2012 SP1 Virtual Switch on Cluster Node Disappears

$
0
0

I have been running into an interesting but an alarming issue with virtual switches. I have recently built a 4 node Server 2012 Hyper-V failover cluster. I have built numerous 2008R2 and 2012 Hyper-V clusters before, so I am pretty familiar with the process. I have rebuilt my VMM due to software problems, and on this new cluster, I have configured the virtual switches with nic teaming on 2 of the virtual switches.

I have 4 clusters being managed by this VMM.. and this newly built cluster keeps losing all of the VMM virtual switch configurations, meaning if I go to properties on the problem host and click on virtual switches, its blank. Refresh host cluster flags all virtual machines in this cluster as "Unsupported Configuration," making the vm unmanageable via VMM. 

Information (26844)
Virtual switch (Virtual Switch Name) is not highly available because the switch is not available in host (One of the Hyper-V Hosts).

Recommended Action

All virtual servers on that host still has connectivity, as all virtual switch configs are normal when looking at it with Hyper-V Manager or Failover Cluster Manager..

The workaround is to evacuate the host using Failover Cluster Manager and reboot the host. Then refresh the host. Then refresh the VM's. I cannot consider this a 'workaround' as I cannot be rebooting my hyper-V hosts every week.. and migrating virtual servers constantly just for this reason. (DPM backups have a FIT with csv's if it tries to backup a vm on a same csv as another vm thats being migrated.)

I have been wrestling with this problem for a few weeks now. The cluster has been slicked and completely rebuilt.. Still same problems. Has ANYONE else out there seen this issue? Does ANYONE out there suggest a way to go about further troubleshooting this issue? 



Hyper-V 2012R2 FO Cluster with synthetic Fibre Channel guests - Quick Migrate ok, Live mostly not

$
0
0

Hi,

another post with more or less the same issue as numerous other posts, for example:

http://social.technet.microsoft.com/Forums/en-US/a09e56fc-f952-427d-8dc5-53fbd1c3ca38/live-migration-failed-while-quick-migration-is-ok?forum=winserverhyperv

http://social.technet.microsoft.com/Forums/sharepoint/en-US/822bb097-e7ff-47ac-ad83-c40174e7b441/live-migration-failed-while-quick-migration-is-okvirtual-machine-with-synthetic-fc-hba-?forum=winserverhyperv

http://social.technet.microsoft.com/Forums/scriptcenter/en-US/51ddfc57-4250-4553-9592-1702ad87c12a/live-migration-failed-using-virtual-hbas-and-guest-clustering?forum=winserverhyperv

Mentioned post were of no heklp though. In this setup I have 2 2012R2 Hyper-V boxes in a Failover Cluster and a HP MSA2040 SAN. Within this cluster I have 2 2012R2 guests that are also clustered. They have 2 Synthetic Fibre Channel Adapters, each one connected to another physical port on the host. Quick Migration works any time, Live Migration only once in a while. I get messages like:

'<GuestOS>' Synthetic FibreChannel Port: Failed to finish reserving resources with Error 'Unspecified error' (0x80004005). (Virtual machine ID 8AABB243-7333-4729-A060-120EF8E993A7)

Facts:

  • Basic stuff like NPIV support is ofcourse enabled and all HBA's and switches support this;
  • MPIO is setup accordingly to HP recommendations;
  • The hosts have 2 fibre ports each connected to a seperate fibre switch;
  • Guest VM's have 2 Fibre Adapters, each connected to a seperate Virtual SAN;
  • Initially I had all WWPN's defined in one host on the SAN, as per a recemondation in one of the mentioned threads I split that up and made a seperate host on the switch for each WWPN set. As the switch only cares about WWPN / WWNN's rather than the aliases they are 'bound' to this did not help;
  • Virtual SAN's are equally setup on the hosts, and each matching Virtual SAN is connected to the same Fibre Switch so physical pathing should be ok;
  • Zoning is correct; all 4 wwpn's are added to zoning and can access the luns (if not it would not work 'sometimes');
  • When I start the live migration, the 'not-active-WWPN-set' is immediately presented at the switches and the switches see the respective WWPN's as active. At that point all 4 WWPN's of the guest are active according to my switches. The switches also recognize these WWPN's as 'NPIV' WWPN's;
  • When I stop the guest, and manually switch the addresses of set A and B over and start again, I see all my storage. This again to make sure zoning is ok and all storage is available on all 4 WWPN's;

Now the point of interest: The MSA2040 seems to be rather slow to recognize or 'discover' as HP calls it presented WWPN's. This is the same for physical hosts as well as virtual hosts. Sometimes it takes up to a minute or two before a host is actually discovered by the SAN. Then it presents the configured LUNs to it and that step again takes a while. I think this is the base issue here. When I do a live migration all 4 WWPN's are available but the storage only discovered 2 of them. At the sporadic times Live Migration DOES work, the SAN (ofcourse) discovered the WWPN's and as soon as the LUN's are presented to them, the migration immediately continues as expected.

The same happens when starting a guest with Synthetic Fibre Channel Adapters: Starting such VM immediately presents the WWPN's at switchlevel, then 'stalls' at 10% for about a minute and then continues booting. Sometimes the SAN discovers the WWPN's faster, and as soon as the LUN's are presented the booting continues and everything is ok. However most of the times the SAN is 'too slow' and after a timeout of a minute or so the VM continues booting. This results in the storage not being available in this guest until the SAN discovered the WWPN's.

The same happens with Quick Migration. With Quick Migration there is no requirement for the LUN's to be active and therefore it works. And again when the SAN is quick enough the storage is there immediately when the migration is done, when it's too slow the storage is not available after migration, until the SAN discovered the WWPN's again.

With Live Migration ofcourse there is a requirement that the LUNs are available to all 4 ports at time of migration. Unlike a quick-migration, Live Mgration will not continue when LUN's aren't available.

So I have 2 options here that I think would fix my issue:

  • Have the SAN to pickup new presented hosts faster;
  • Have Hyper-V to wait longer before a live migration times out.

The first is not an option, HP does not have any settings for this in the MSA2040 (and neither in the P2000 G3 which we have as backup as well in this setup).

So maybe we can increase the Hyper-V live-migration-wait-for-lun-timeout?

The concrete question:

Is there a regkey or something for increasing the 'waiting for storage' timeout on live-migration?

Ofcourse any other 'magical' solution to this issue is welcome :)


drivers/integration services problem in vm win2012r2.

$
0
0
First,thanks for everything.
I have awindows2012r2 virtualizedon a2012r2.
In the virtual machineI havea legacy cardinstalled,but not running at over 100.
To useonegbpsI added a secondnormal network card, butnot appear in thevirtualmachine.
Integration servicesare installed onthe VM.
the network cardisInteli350host.I downloadedthe driversand tried toinstall them in thevmbut does not recognizeanyinteladapter.

Can you think ofanything?Thank you !!!

http://kinomakino.blogspot.com

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 file corrupted

$
0
0

Hi guys,Really need your help on this one.

I have a customer that uses Hyper-V on Windows Server 2012 RTM.

The earlier IT guy (who was fired today) have been running the whole setup on dynamic disks.

One of the disks have 3,5 TB of data, and is therefore a VHDX file.
Today because of the heat the RAID controller reset, and that sadly corrupted the VHDX file.
Almost all of the VM's are dead, but this VHDX file holds ALL of the company data - such as dokuments, pictures, contracts, profiles, homedirs, and so on (you probably get the picture).
To top it all, the (now fired) IT guy didn't really check on the backup jobs - so no backup at all.

This company really needs help. I tried Bing'ing and Googling everything but no help as it is a VHDX and not a VHD file.

Whenever I try to start the machine, all I get is "Attachment 'D:\VHDs\FILESERVER1.vhdx' failed to open because of error: 'The file or directory is corrupted and unreadable.'."

I tried attaching it in disk manager with no luck (it will not open). I read that extending the size with VHDResize could uncorrupt the drive could help (but sadly it does not support VHDX format).

I really need your help here. Please join in with every crazy idea available.. These guys really need help.

The guy that comes up with a solution will not only recieve the credit, but I personally promise you an ice cold beer if you ever get to Denmark..

Or if you live in a country that I will ever visit, I will buy you one in your town.

THANK YOU SO MUCH!!


Microsoft: MCP, MCTS, MCITP: SA, MCITP: EA || CIW: Associate, Security Professional || CompTIA: A+, Server+, Linux+ || Citrix: CCA on XenApp || HP: ASP, ASP:SMB || Astaro: ACA, ACE

Install in Virtual Machine from Host machine

$
0
0

I've installed Hyper-V service on my windows 8.1 64 bit laptop and create a virtual server of

Windows 2012 server .

Now I need to know how can I install other software like SQL Server ,.... on my virtual marching from Host (windows 8.1 ) hard drive .


Ahsan Kabir Please remember to click Mark as Answer and Vote as Helpful on posts that help you. This can be beneficial to other community members reading the thread. http://www.aktechforum.blogspot.com/

VMNetworkAdapter trunk (8021q) mode for a Hyper-V Guest

$
0
0

Hello,

I am running a Windows 2012R2 Server (Datacenter) as a Hyper-V host. On top of it I am running a Virtual Machine with CentOS 7 (I'm using the Integration Services installed by default). The VM has 1 network adapter (normal, NOT legacy). I want to configure the VMAdapter of the virtual machine in trunk mode allowing all VLANs.

In PowerShell I executed the following commands:

PS C:\Users\Administrator.PUB> Get-VMNetworkAdapterVlan

VMName                VMNetworkAdapterName Mode   VlanList
------                -------------------- ----   --------
 test                  test                 Access 0
PS C:\Users\Administrator.PUB> Set-VMNetworkAdapterVlan -VMName "test" -Trunk -AllowedVlanIdList 1-4094 -NativeVlanId 0
PS C:\Users\Administrator.PUB> Get-VMNetworkAdapterVlan

VMName                VMNetworkAdapterName Mode   VlanList
------                -------------------- ----   --------
test                  test                 Trunk  0,1-4094

At this point, the VLAN tagging is working correct. I have acces in the VM to all my VLANs using VLAN tagging (8021q). If I reboot the VM, things doesn't work anymore. I do not have acces to the tagged VLANs anymore (only the native one).

I'm looking in the VLAN configuration of the Host and all seems ok:

PS C:\Users\Administrator.PUB> Get-VMNetworkAdapterVlan

VMName                VMNetworkAdapterName Mode   VlanList
------                -------------------- ----   --------
test                  test                 Trunk  0,1-4094

If I reexecute the command "Set-VMNetworkAdapterVlan -VMName "test" -Trunk -AllowedVlanIdList 1-4094 -NativeVlanId 0" all is working again. If I shutdown the VM and start it again, the things are working OK. If I reboot the machine, somehow the configuration gets lost. Has anyone experience this problem until now?

Thank you,
Mihai

Hyper-V Storage Migration Clean Up

$
0
0

I have noticed in Hyper-V 2012R2 when migrating a VM around it leaves behind an empty folder structure. Is there a way cleaning this up automatically after the successful migration?

For instance,

VM located at C:\clusterstorage\FOLDER_A\VM

Moved to C:\clusterstorage\FOLDER_B\VM

But.... The FOLDER_A\VM still exists after a successful migration. This should be deleted to prevent confusion and allow a VM if migrated back to FOLDER_A to reside in a folder called VM and not VM_1.



Hyper-V failover confusion

$
0
0

I'm trying to study for 70-414 and am trying to setup a home test lab to help out.  I have two physical servers and an iSCSI storage device.  I've been trying to figure out on my own how to best set this up but am at a loss.

I think I want a failover Hyper-V cluster.  Is this even possible with my current setup?  Or do I need a file server to host the storage?

I've tried creating a failover cluster with shared storage pointing directly to my iSCSI device and I created a single VM and that worked.  But, when I tried to create another VM it wouldn't work because it said the storage disk that I created was already owned by the first VM.  It is a 1 TB drive that I want to share with multiple VMs.  I'm wondering if I need to have a file server hosting this so that I can have multiple VMs on a single shared disk or if I'm just doing something else wrong.

Applications Crashing on Virtual maschine hosted by Hyper-V with Heap Corruption

$
0
0

Hello everbody,

we currently investigate an issue regarding services/applications which crashing with internal .net error

The process was terminated due to an internal error in the .NET Runtime at IP 00007FFAD128A48F (00007FFAD0EA0000) with exit code 80131506.

Using Paged Heap Verfication and Analyzing serveral dumps, it seems that the GC causes that issue, if it runs on gcServer mode. This only happens since we update .net to 4.5 on that virtual maschine and it only occurs if the memory of the VM is 64 GB (which is used by the crashing service/application up to 90%).

We can produce the same error with a real simply .net application and it only occurs with gcServer (gcConcurrent is independet). As the crash can only reproduce on high memory VMs (meaning not on small memory VM - 10 GB -  and not on real hardware up to 64 GB). We want to ask if this is maybe a Hyper-V issue, and is maybe allready known and can be fixed. In the past, that crash sometimes causes also a restart of the whole VM.

Thanks for your support!

VM's disconnecting from network

$
0
0

Hello,

I recently created a remote desktop collection using windows server 2012 R2 on an HP ProLiant BL620c G7 Blade Server (which has completely up to date firmware and drivers). There are 30 VM’s running on the server, and it is running great – for the most part. My issue is that, it seems to be at random (maybe once every 48 hours), users will be disconnected from their session, and they are unable to log back into their session remotely. I can log into their session as a local user by going through hyper-v, however once I am in there I notice that I have no internet or network access. To solve this problem, I have to go onto the network adapter of the VM, disconnect the virtual switch assigned to the VM, and reconnect it again. Doing this provides remote access to the VM again.

I initially thought the issue came from the configuration of the virtual switch. The HP Blade Server has 4 10 gig NIC’s, and they were teamed into two teams (each team having 2 physical NIC’s). I created two separate external network virtual switches from each Team. I also had “allow management operating system to share this network adapter” checked. I noticed a warning on the server side when a disconnect would occur which was Event 16945 “MAC Conflict: A port on the virtual switch has the same MAC as one of the underlying team members on Team Nic Microsoft Network Adapter Multiplexor Driver.” Because this error occurred at the same time as a disconnect, I assumed that this warning message was causing the problem, and I was able to resolve it by redoing the NIC team to where there of the physical NICs were teamed together and a virtual switch was created from them without the checkbox that allowed management operating systems to share the network adapter. This left one NIC available for management purposes, and I haven’t seen the error message since, however disconnects still continue occur.

I do not see any helpful information in the event logs of the client VM when one of these disconnects occur, and the users are doing nothing out of the ordinary that would cause it to happen. In fact this problem has happened when a user has been disconnected from their machine for over 10 hours.

Anyone have any thoughts as to what is going on here?

diskpart won't make disks offline

$
0
0

Hi.

I have a Hyper-V Server 2012 with a single VM for Server 2012 R2. I gave that VM access to two 1TB disks as physical disks, and had Server 2012 R2 add those disks to a storage pool. That configuration worked for awhile, and then I added a third 1TB disk to the system. When I rebooted the Hyper-V Server, the physical disk mappings in the VM were lost. On the Hyper-V Server, diskpart reports the two older drives as online. I can only get diskpart to change the status of the new drive, and naturally only get the new drive to show up as a option to use as the physical disks in the VM.

Diskpart reports the older drives as online, 0 bytes free, and there's only an '*' in the Gpt column. When I ask to make those disks online, diskpart reports success; but the status never changes. Rescan doesn't make a difference, they always show up as online. I've tried making them online, and diskpart reports they are already online. I've also tried booting the VM without these drives; but the status is the same.

I could live without the content of these drives; but I'm not sure nuking them will ever allow them to be made offline again. So, I'd rather try to persist the data for awhile.

Thanks for any help.


Brian Klamik, Software Design Engineer - Direct3D

Invoke a process inside a VM from outside?

$
0
0

Hi all

Is there a way to programmatically execute a process inside a virtual machine from outside? I couldn't find any Hyper-V API that supports this. Neither did I find a PowerShell Cmdlet that could help me out with this. Note that I cannot simply do a remote execute because sometime we have network isolation in place and I therefore cannot reach such virtual machines via network.

Thanks

Hyper-V 2012 R2 - Linux Guest VLAN Settings lost after reboot

$
0
0

Hi Guys,

last night a have seen a strange behavior with a Sophos UTM 9.204020 Linux Guest VM. (This VM is based on SUSE SLES v11? i think)

So i have Setup this in my home lab and experienced the same problem.

----Setup-----

2 External VM Switches

Management OS is on VLAN 4093 with IP 192.168.20.1

The guest network adapter is in Trunk Mode, VLAN Tag (4093) is set in the guest OS with IP 192.168.20.100

Everything works until you kick off a reboot from the guest or hyper-v console, after the reboot you loose the connectivity on the network adapter with the vlan trunk.

If you shutdown the guest and start it everthing works again - this happens only on reboot!!

I have tried diffrent things (static mac, enable disable hardware features (vmq/offloading etc) on the vm network adapter but always the same error.

After some search on the net i have found this article: Link 

This guy has the same problem with another linux vm (based on debian) his workaround was to trigger a powershell script with the eventlog after reboot of the vm, this works for me too but this must be bug?

Has anyone else experienced this problem?

André

Capacity Planner Error

$
0
0

I am trying to use the Hyper-v Capacity Planner but keep getting an error. The Planner runs completely through and then errors out with "Errors occurred while collecting counters on primary. Check logs for more details." I check the logs and it has this error

"Exception recvd. at CollectPrimaryCounters One or more errors occurred.    at Microsoft.Virtualization.HVRCapacityPlanner.CalculateCapacity.CollectPrimaryCounters(Int32 MachineIndex)
   at Microsoft.Virtualization.HVRCapacityPlanner.CalculateCapacity.<>c__DisplayClass1.<CalculateCapacityInternalStep1>b__0(Int32 currentCounterInfoList) Inner Exception: One or more errors occurred.    at Microsoft.Virtualization.HVRCapacityPlanner.Utilities.<>c__DisplayClasse.<CountersCalculation>b__c(Int32 line)".

I have no idea what this is. All firewalls are off.


Fred Wilburn


Pet peeve: Numlock of Host

$
0
0
OK, I am sorry if this may seem "childish", but I have to let know my little frustration about the Hyper-V manager and the VM windows that keep changing the state of my Numlock!!!!!!

I want it ON, but everytime I open a VM, it keeps switching it to OFF, and for the love of me, I can't find a way to make it stop that...

There, I feel better, and who knows, maybe this little thing may get corrected in the final version ;)

Serge

VM lost ethernet conectivity

$
0
0
Hello, I have a cluster Hyper-V 2012 R2, all machines work ok, but one machie lost ethernet conectivity, I disconect virtual switch and reconect and the etehrnet y conected again. Some can help me with problem? Thanks you.

Isaias

Hyper-V AD guest freezing

$
0
0

Hello all!

I hope someone can help us with our issue.

We are running Windows 2012 Datacenter on a Host. The guest VM is running 2012 as well. Over the past couple weeks we have been having an issue where the guest that is the AD controller just freezes up. Sometimes we are RDP'ed into it and open the start menu to do something and other times no one is logged in but all the folder shares, RDP, etc goes unavailable.

We thought it had to do with the backup system. But the backup isn't running at the time of the freezes. Today we had 2 seperate times that the AD server froze up once in the morning and it affected the other guests so we had to power cycle the host. Then in the afternoon I caught it soon enough to where I could shut the other guests down. When I went to try and shutdown or reset the AD guest it just stated shutting down.. So I ended up having to power cycle the host again.

The event log doesn't show anything in the host or the guest..

We have disabled write caching on the host to hope this will help but we are getting to a loss.

Host system specs are as follows:
Windows 2012 DC
Dual Quad Core Xeon's
72GB Ram
2 x 500GB RAID 1 config through the OS
2 x 4TB RAID 1 config through the OS

We are planning to purchase an iSCSI storage array in the next couple weeks but are afraid it won't fix the issue.. 

Thoughts?

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?

"Virtual Hard Disks" vs. 'Virtual Machines"

$
0
0

Under Hyper-V Manager, right-click HOST PC, select "Hyper-V" settings. Under Server is shown
Virtual Hard Disks (....path....) and  Virtual Machines (..path...)

 

 

What is the difference between those two options and why are seperate paths offered? (In the past I stored all VMs
in a folder called "C:\VM\<servname>" and this seemed to work fine.)

 

TIA,

 

barkingdog

 

Viewing all 19461 articles
Browse latest View live


Latest Images