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

Problem communicating over vNICs

$
0
0

I am implementing a Hyper-V converged network (4 cluster nodes), however having an communications issue on the vNICs connected to my management switch.

The same issue on all 4 nodes. If anyone has any suggestions, I would appreciate it.

 Each host has the following

  • 8 physical NICS (NIC1-NIC8)
  • NIC1 –a temporary management of IP of vLAN151
  • NIC4 - spare

 2 Teams (Configuration below)

  • ManagementTeam – NIC6/7
  • VirtualMachineTeam – NIC2/3/5/8

2 Virtual Switches

  • Management Switch – 3 virtual NICs created for Management (vLAN151), Live Migration (vLAN152) & CSV traffic (vLAN153)
  • Virtual Team Switch – no virtual NICs

 1 Physical Switch Stack

  • NICs 6/7 – ports trunked, vLAN 151, 152, 153 permitted
  • NICs 2/3/5/8 – ports trunked, vLAN 400, 800, 71 permitted

 I ran the following attached PS commands (without any errors) to create & configure Teams, Virtual Switches, Virtual NICs – per host.

# Create Management NIC Team
New-NetLbfoTeam -Name "ManagementTeam" -TeamMembers "NIC6","NIC7" -TeamNicName "ManagementTeamNIC" -TeamingMode SwitchIndependent -LoadBalancingAlgorithm “TransportPorts”

# Create a Hyper-V Virtual Switch that binds to the NIC team
New-VMSwitch “Management Switch” –NetAdapterName “ManagementTeamNIC” –MinimumBandwidthMode Weight –AllowManagementOS $false

# Create a virtual NIC in the management operating system for Live Migration
Add-VMNetworkAdapter –ManagementOS –Name “LM” –SwitchName “Management Switch”

# Create a virtual NIC in the management operating system for Cluster/CSV
Add-VMNetworkAdapter –ManagementOS –Name “CSV” –SwitchName “Management Switch”

# Create a virtual NIC in the management operating system for Management
Add-VMNetworkAdapter –ManagementOS –Name “Management” –SwitchName “Management Switch”

# Assign a weight to Management
Set-VMNetworkAdapter –ManagementOS –Name “Management” –MinimumBandwidthWeight 10

# Assign a weight to Live Migration
Set-VMNetworkAdapter –ManagementOS –Name “LM” –MinimumBandwidthWeight 50

# Assign a weight to Cluster
Set-VMNetworkAdapter –ManagementOS –Name “CSV” –MinimumBandwidthWeight 40

# assign a VLAN to a virtual network adapters in the Management OS
Set-VMNetworkAdapterVlan –ManagementOS –VMNetworkAdapterName "Management" –Access –VlanId 151
Set-VMNetworkAdapterVlan –ManagementOS –VMNetworkAdapterName "LM" –Access –VlanId 152
Set-VMNetworkAdapterVlan –ManagementOS –VMNetworkAdapterName "CSV" –Access –VlanId 153

# Create Virtual Machine NIC Team

New-NetLbfoTeam -Name "VirtualMachineTeam" -TeamMembers "NIC2","NIC3","NIC5","NIC8" -TeamNicName "VMTeamNIC" -TeamingMode SwitchIndependent -LoadBalancingAlgorithm HyperVPort

# Create a Hyper-V Virtual Switch that binds to the NIC team
New-VMSwitch “Virtual Machine Switch” –NetAdapterName “VMTeamNIC” –AllowManagementOS $false

# Now configure IP addresses on NICs

Get-NetAdapter -Name "vEthernet (Management)" | New-NetIPAddress -IPAddress 172.16.151.5 -Defaultgateway 172.16.151.1 -Prefixlength 24
Get-NetAdapter -Name "vEthernet (Management)" | Set-DnsClientServerAddress -ServerAddresses ("137.191.4.194","137.191.4.43")
Get-NetAdapter -Name "vEthernet (CSV)" | New-NetIPAddress -IPAddress 172.16.153.5 -Prefixlength 24
Get-NetAdapter -Name "vEthernet (LM)" | New-NetIPAddress -IPAddress 172.16.152.5 -Prefixlength 24

Note - Cluster Node 1 has following IPs presented to the ManagementOS 

NIC1 – 172.16.151.55/24 (temp management)

"vEthernet (Management)"    - 172.16.151.5/24  -Defaultgateway 172.16.151.1

"vEthernet (CSV)" - 172.16.153.5/24

"vEthernet (LM)"  - 172.16.152.5/24

 

Some of the testing results:

Ping 172.16.151.1 – Works Fine – Note, the system using the temp management IP 172.16.151.55 as the source

Ping 172.16.151.5 –S 172.16.151.5 – works fine

Ping 172.16.152.5 –S 172.16.152.5 – works fine

Ping 172.16.153.5 –S 172.16.153.5 – works fine

Ping 172.16.151.1 –S 172.16.151.5 – FAILS - so unable to ping the Default Gateway using "vEthernet (Management)" as source IP.

Conclusion

Therefore it seems I can’t pass any traffic via the Virtual NICS & Management Virtual  Switch. The physical Network Teams look ok. All the ports on the physical switch stack are UP. Phyiscal ports are trunked and required vLANs permitted



HyperV udp 3343 traffic spikes every half hour?

$
0
0

Hi,

We have a Hyper-V cluster with several nodes. We see that every half hour the network traffic shows a major spike around 80mb for several minutes. Then the traffic goes back to normal.

The next half hour this starts again.

We use a Windows 2012 R2 Hyper-V hosts with Systemcentre. 

Best regards!


Change VM's CPU and memory before booting at DR site

$
0
0

Hi,

i would like to know if we can automate  VM's CPU and Memory change before it boots at the DR site.

E.g. if i have an application VM running at the Primary DC is configured with 4vCPUs and 32GB RAM, the same VM would have 2vCPUs and 24GB RAM at the DR site.

But the change has to be automated (either by a powershell script or any 3rd party tool), as there would be no one at the DR site to manually change it.

Thanks in advance.


Growing in this world of MS

Managing hypervisor from windows 10

$
0
0

I have a hyperv installed on a computer (no operating system) and want to control it from a windows 10 computer through hyperv manager.

the hyper visor is not on the domain,


SOME CLUSTERED SHARED VOLUME ICONS ARE SHOWING UP AS FOLDERS.

$
0
0

Why are some of my CSV's showing up as folders?


Michael Agee

Disabling write caching on domain controller VM's with IDE disks

$
0
0

Hi folks,

I have virtualized a 2012 (non R2) DC, and am running it on a 2012 R2 Hyper-V cluster.

The DC will not allow write caching to be disabled on its disk. I've read a lot of articles about this and I believe I understand the underlying issue. I've seen some references to KB2853952, which apparently addresses this in 2012 (non R2), but I cannot find any documentation for 2012 R2.

Has the issue been definitively addressed in Hyper-V 2012 R2, such that eventid 32: "The driver detected that the device \Device\Harddisk0\DR0 has its write cache enabled. Data corruption may occur." can be safely ignored in the system log? Is any further user action necessary?

Thanks for any info,

ianc

WindowsVirtualization.V2.mof in Hyper-v on Server 2008 R2

$
0
0

Hi,

for fixing connection from Windows 10 Hyper-V manager to 2012 Hyper-V host I used this command on target server:

MOFCOMP %SYSTEMROOT%\System32\WindowsVirtualization.V2.mof

When running the same command on Server 2008 R2 Hyper-V host I am getting:

File 'C:\WINDOWS\System32\WindowsVirtualization.V2.mof' not found!

Could somebody help with proper location of "WindowsVirtualization.V2.mof" on HV of 2008 R2.

Thanks.


--- When you hit a wrong note its the next note that makes it good or bad. --- Miles Davis

File server getting hammered by DFSR

$
0
0

I have a 2012 R2 Hyper-v server. The are two VMs, a DC, and a file/print. The file server is getting hammered by DFSR. There are many files open, but I don't think that would cause such a high utilization. The hyper-v server doesn't show the same high utilization and ques.

So its definitely something in the VM disk itself.

Any suggestions? I am a VMware guy myself, but a buddy wanted to throw up a server and he already has windows 2012 r2.


2012R2 Hyper-V Core in a workgroup - unable to remotely manage from win10 machine

$
0
0

doesn't get much more simpler than this scenario - standalone 2012R2 Hyper-V Core in a workgroup (no domain exists). I am simply trying to connect to it remotely using the Hyper-V MMC from my laptop running win10 Professional with RSAT tools installed using the local administrator credentials of the hyper-v host without success.

So far I have done the following on the host and client...

- disabled the FW on the Hyper-V host
- Run WinRM quickconfig
- Enabled remote management
- done a whole load of other crap that I've seen on forums such as "winrm set winrm/config/ blah blah blah"
I've followed this guide without success: http://pc-addicts.com/12-steps-to-remotely-manage-hyper-v-server-2012-core/

I know I am authenticating successfully to the remote server as it accepts the credentials (it immediately errors if I use incorrect details) but then displays this error that I cannot resolve:

"Error connecting... check virtual machine management service is running and authorised to connect....Operation failed. WinRM client cannot process the request. Computer policy does not allow the delegation of the user credentials to the target computer because it is not trusted. The identify can be verified if you configure WSMAN service to use a valid certificate..blah...blah...blah...load more txt about SPN's and GPO settings".

It shouldn't be this difficult to connect to a hyper-v host and to me it sums up how unnecessarily complicated Microsoft software has become over the years. Anyone got any other suggestions before I rip it out and propose we install ESXi instead?

Cheers
Andy

Fix a WiFi Hyper-V Switch

$
0
0

I am getting a "Failed while adding Virtual Ethernet switch connections"  when trying to establish a virtual switch over a WiFi connection which I had previously used.  The details say "Ethernet port {GUID} bind failed.  The requested resource is in use. (0x800700AA).  "

Uninstalling and reinstalling the WiFi adapter changed the value of the GUID but still same error message.

There is no vEthernet adapter showing in the adapter properties window. My assumption is that the adapter is hidden from view in the window and / or there is some binding stored in some xml files or registry keys someplace linked to the Virtual Switch that needs to be manually cleaned.  However, I have not yet found where these are. 

Has anyone figured out a good way to resolve this issue?

Hyper-V VSS writer ecnouter errors during taking VSS snapshot on Windows 2012 R2

$
0
0

When taking VSS snapshot with Hyper-V VSS writer on Windows 2012 R2, there are frequently some warning/error logs in Windows Event log. This will make the Hyper-V VSS writer goes to a bad state and in BCD, the BACKUP_METADATA is also missing for the problematic VM.

The logs in Windows Event log are as below:

In Windows Log->Application, there will be logs as:

A VSS writer has rejected an event with error 0x800423f4, The writer experienced a non-transient error.  If the backup process is retried,

the error is likely to reoccur.

. Changes that the writer made to the writer components while handling the event will not be available to the requester. Check the event log for related events from the application hosting the VSS writer.

Operation:

   PrepareForSnapshot Event

Context:

   Execution Context: Writer

   Writer Class Id: {66841cd4-6ded-4f4b-8f17-fd23f8ddc3de}

   Writer Name: Microsoft Hyper-V VSS Writer

   Writer Instance ID: {fec29c4d-410b-4854-96b4-9637f3a24fdc}

   Command Line: C:\Windows\system32\vmms.exe

   Process ID: 2024

In Hyper-V-VMMS there are logs as:

Could not create backup checkpoint for virtual machine '********': Overlapped I/O operation is in progress. (0x800703E5). (Virtual machine ID 2AD8D389-65AE-45F7-89F8-FDF2F08CE3C2)

In Hyper-V-Worker there are logs as:

'******'has encountered a fatal error.  The guest operating system reported that it failed with the following error codes: ErrorCode0: 0x7A, ErrorCode1: 0x10EC78, ErrorCode2: 0xC000000E, ErrorCode3: 0x1BA09BE0, ErrorCode4: 0x21D8F000.  If the problem persists, contact Product Support for the guest operating system.  (Virtual machine ID 2AD8D389-65AE-45F7-89F8-FDF2F08CE3C2)

'******' has encountered a fatal error.  The guest operating system reported that it failed with the following error codes: ErrorCode0: 0xEF, ErrorCode1: 0x11F2780, ErrorCode2: 0x0, ErrorCode3: 0x0, ErrorCode4: 0x0.  If the problem persists, contact Product Support for the guest operating system.  (Virtual machine ID 16A22441-2ECB-474A-8998-ECA6102DE5AC)

'******'has encountered a fatal error.  The guest operating system reported that it failed with the following error codes: ErrorCode0: 0x7A, ErrorCode1: 0x119AEF8, ErrorCode2: 0xC000000E, ErrorCode3: 0x154C9860, ErrorCode4: 0x335DF592.  If the problem persists, contact Product Support for the guest operating system.  (Virtual machine ID A0CD6CF9-529F-4465-AD32-7A7D60069768)

The problematic VMs are with Windows OS, Windows 2008R2, Windows 2012 R2 and Windows 8.1.

My question is:

What is the cause of this problem? The event logs are not understandable at all.

How should I fix this problem?

deploy Windows from MDT image to VM

$
0
0

Hi,

I need to deploy Windows OS from MDT 2013 base image.

I created VM on Server 2012 R2 Hyper-V. Moved Network adapter as first boot device.

Theoretically, it should find PXE... But it doesn't

For physical machine I press F12. What I am missing?

A while ago I think I saw F12 in virtual machine on Server 2012 (I know it supports PXE). And I remember I was able to come to

Light touch Wizard of MDT and even start deployment. But it fail on VM. So I gave up (was not rush).

I would like to resolve this and be able to deploy from MDT to VM.

Any suggestions. MDT2013 is absolutely fine for physical machines...

Thx.


--- When you hit a wrong note its the next note that makes it good or bad. --- Miles Davis

here is the screenshot:

Server 2016: Adding Hyper-V role cause blank screen on reboot

$
0
0

Hi

I downloaded and installed Tech Preview 5 of Server 2016. Skipped specifying the license keys and installed Datacenter edition. Updated the machine through Windows update. Then added the Hyper-V role with option to reboot if required. The computer does not seem to recover from the reboot. Always get a blank screen. Can someone guide me if its 2016 not completely baked or am I missing something? 

Best Regards

SMK

Virtual Switch adapter getting link-local IP address (apipa)

$
0
0

Hi Everyone,

Not sure what I am doing wrong here.

I have installed an Hyper-V 2012 R2 core server on a brand new Dell server.

I then went to use Virtual Switch Manager via Hyper-V Manager to create a virtual switch adapter, selected external (I want to share my existing server NIC), allow management operating system to share this network adapter.

Then I configured my virtual machine to use this.

When I start the virtual machine I get a 169 type IP address, cannot ping gateway or host. The VM does not even get a proper IP using DHCP. DHCP is working fine from another physical server.

When I check the hyperv core host and select 8 for  "Network Settings", I get:

15    192.168.20.44   Broadcom NetXtreme Gigabit Ethernet #5
22    169.254.101.167 Hyper-V Virtual Ethernet Adapter #2

Why is hyperv creating a virtual adapter with an Apipa address which is not usable?

I followed all the steps correctly, but it does not work.

Can anyone point me into the right direction to solve this problem?

Thanks and regards

Ipnotech

import-vm (powershell) don't work correct on server core 2016TP4

$
0
0

by GUI export and import work OK.

But if we import-vm files .vmcx like https://msdn.microsoft.com/en-us/virtualization/hyperv_on_windows/user_guide/export_import

appeared info about: "import could not be realized due to validation errors"



Virtual Switch Confusion and Updated Images

$
0
0

Hi All,

Two questions. First is I have looked on the net for some Virtual Switch tutorials (Hyper-v 2012r2) but they seem contradictory or just confusing. I'm admittedly new at this and self taught but my first attempt seemed a little screwy.

I virtualized an old 2003 file server as a test and made it live the other day. I created an external switch connected to the physical NIC of the host machine (2012r2). The VM booted and had internet connectivity however the LAN settings did NOT seem to carry over with the image I made. It was now set to DHCP and just grabbed an address from the pool. Stuff seemed to work but I could not access the VM across the network locally which makes sense because it had the wrong address.

So far so good I guess. I'll just set it to the static settings of the VM to match the physical machine since it was now offline. When I go to set the NIC I get a warning about another machine already having that address and that the device that has it has been "hidden" on the virtual machine. So I do it anyway and the VM seems to spin it's wheels for a while and then away it goes.

So now I can connect to the VM from across the network by IP or name but it starts acting odd. For instance I can connect to the VM using RDC but only the desktop appears and no icons or mouse. I can send some E-mails internally and externally from the VM but some just never go through and give me a generic "NETWORK ERROR" message. I suspect I am not fully understanding what I am doing virtual switch wise.

Second question is a more fundamental virtual machine question. My thought was to use these VM's as sort of a "plan B" in case of  total failure of the physical servers. The plan was to keep images of all the physical machines and get whatever one failed running virtually so users can continue on while I restore the hardware machines from backups. The problem with this theory is that I have to constantly make these huge images and move them around the network to keep them current. Also how would I transfer data backwards after failure? I would think mirroring the physical server to the virtual one would be a bad idea in the event of viral infection. What is best practice for a concept like this?

Sorry for the verbosity and thanks in advance.

VXlan in HyperV

$
0
0

Hi!

It has been announced that VXlan will be supported for network virtualisation for windows server 2016. That's great! We can't wait to tinker with that and integrate it with our architecture. Curently, we are using Server 2016 TP5 in our test environment. I was looking in VMM for a way to change the encapsulation protocol from GRE to VXlan, but I can't seem to find it. Is it available yet? If so, how can I use VXLan instead of GRE? If not, will it only be available in the final product?

Thank you!

Setting for Hyper V, Multi Domain, Single Gateway, Single Internet path out

$
0
0

Greetings to all,

I've set upon my own endeavor to, within my HV (Hyper V) environment, working with the HV Switch Manager (HVSM), to build 2-5 domains. Each domain having it's own gateway, that gateway able to route traffic to other domain-and/or- route to actual real world internet. 
I don't believe a central gateway/router would be needed in this setup. Each gateway would/could utilize the path out independently. Would this be a correct assumption of the HV Switch Manager functionality? 

I am planing on each domain population to be about 4-7 Svs, Win/Linux mixed, a DB present in each, servicing it's own domain. 
I'm wondering the best way to do this? In HVSM- Would I need to create individual internal (IntnNet1, IntnNet2, IntnNet3, etc) VNetworks switches for each domain? Or better to set each as a private network?

What is the best, preferred method to use considering the total environment. IP addressing is a non issue, hence I am unsure to utilize the 'private' network option.
This would be a dev/testing type environment. I have VMware Workstation available for the use, of which has nice functionality in respect to the ability to create multiple VNetworks (Net0, Net1, Net2, etc) to support communications. But I want to do this in HV. 
Looking for advice or guidance in this endeavor.

Thank you in advance,

R.R


how to monitor VM cluster storage

$
0
0

Windows Server 2012, Hyper-V

there are times i would get suprises that a certain VM is paused only to find out that it is running low on storage (as can be seen from the Storage/Disks option of the FCM.

currently, i'm monitoring them manually (big work) but i'd like to know how the others are managing the storage.

regards,

CPU/Core/logical processor assignment.

$
0
0

Hello all,

We have 2 socket , 2 CPU with 10 core each & 40 logical processor after enabling hyper threading .

Now we have created 3 vm on this server& all 3 servers having volume of equal load.

Now can you please suggest how we  can devide CPU/core/logical processor in between 3 virtual server.

 

For eg: can we go beyond 40 cores for all 3 vm server?

Viewing all 19461 articles
Browse latest View live




Latest Images