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

Strange blazing-fast IO performance inside Hyper-V VM

$
0
0

Hello!

We have just set up couple of clusters:

- One cluster for VMs: 7 nodes 6x1Gbps NetAdapters (team), 160 shared disks in JBODs, connected through LSI SAS Switch (disks are in mirrored storage spaces)

- One cluster for SoFS: 2 nodes, 2x1Gbps (team) + 2x10Gbps NetAdapters, 60 shared disks in JBOD (disks are in mirrored storage spaces too).

OS on hosts and guests is Win 2012 R2. Guests are Generation1 VMs.

Before using them in production and decide, which variant is better/cheaper/easier to deploy/etc, we want to test these scenarios:

- IO performance inside VM when virtual disk located on CSV, Direct Mode

- IO performance inside VM when virtual disk located on CSV, Redirected Mode

- IO performance inside VM when virtual disk located on SoFS

We expected moderate or, maybe, worse performance (especially in last two scenarios), bus unexpectedly it was blazing-fast and just theoretically unreachable. We have spent almost a week, searching for any explanations with no success :(

So, we're testing virtual SCSI disk (500 Gb, dynamic) with SQLIO.

First - disk on CSV, Direct mode (VM host and owner of CSV is the same node)

random write 8Kb IO:

IOs/sec: 239856.70
MBs/sec:  1873.88

Avg_Latency(ms): 0

This CSV is two-way mirror created on pool of 24x2.5 600Gb SAS disks. I just can't believe in 250K random 8kb write IOPS on this array. Other hdd performance measurement tools report same counters.

Then, when I move CSV to another node, leaving VM itself where it was (as I understand - this forces use of redirected mode for operations on that CVS).

Almost nothing changes in IOPS/throughput counters, but I see network activity on VM host and CSV owner. However, it is just 60-80 Mbps!

Finally, the SoFS.

random write 8Kb IO:

IOs/sec: 125737.93
MBs/sec:   982.32

Avg_Latency(ms): 0

SQLIO shows almost 1Gigabytes/s throughput, but Network usage on SoFS node is just 160-180 Mbit/s.

Using sqio with 256KB sequential writing IO shows 5829.57 MB/s, but just 1Gbps of network activity (it's a limit, because 10Gbps adapters and SMB multichannel were not set up).

I've tried to test SoFS share and CSV directly from host and got more realistic results:

random write 8Kb IO on \\sofs1\share1\test\testfile.dat:

IOs/sec:  4931.03
MBs/sec:    38.52

Avg_Latency(ms): 18

random write 8Kb IO on C:\ClusterStorage\pool1vd1\test\testfile.dat

IOs/sec:  2206.29
MBs/sec:    17.23

Avg_Latency(ms): 42

So, can anybody explain these strange results, when performing IO inside VM?

I can run any other test or post any specific performance counters/screenshots. I would like to understand, what’s happening before moving to production.

Thanks in advance,

Best regards, Dmitry.


Hyper-V Replica failover to multiple non clustered hosts.

$
0
0
We have 2 hypervisors on our domain and currently a single replication server hosting 24 hours of replication data. We want to setup a second replication host in a colo with multiple days of replication data. We do not have or plan to have any of these hosts clustered. What I'm wondering is how to go about doing this. We can setup the secondary server as a replica host, but how does failover work? Can failover be specified to first one host then another?

MPIO ISCSI and Hyper-V Cluster

$
0
0

I have a question regarding MPIO on Hyper-v. I know that teaming NIC's is not supported for ISCSI SAN's. So I have MPIO installed and configured for my SAN NIC's. My SAN is a Dell EqualLogic 6100. So here is the NIC configuration of my host.  I am using windows server 2012 R2.

NIC 1 - Mgmt

NIC 2  - SAN MPIO

NIC 3 - SAN MPIO

NIC 4 - Production Teamed

NIC 5 - Production Teamed

NIC 6 - Production Teamed

NIC 7 - LAB

NIC 8 - HB/LM

So the issue is when I run the cluster validation I get a warning that my SAN nics are on the same subnet which I know is not recommended.  I also need to introduce a SAN nic to my hyper-v virtual network so I can connect an ISCSI volume directly to my guest VM's.  

Basically how do I handle the 2 SAN NIC's?  I would like to have the ability to have both NIC's available to my guest VM's but it does not appear that is possible.  I can't find any great documentation that is clear on the best way to set that up.

Any advice is appreciated.

Thanks,

Restoring VM settings

$
0
0

Hello Everyone,

I've been running Server 2012 Datacenter on ProLiant DL380 G7 but this the second server to fail(after restarting the server boots but doesnt boot completly it hangs) and i've had to reinstall the OS and attach the VHDs afresh,

  1. Is there a way of copying previous HyperV settings and importing them to the new HyperV installation?
  2. which key do we press to launch startup repair on Proliant servers?


Meshack

Windows Server 2012 - Can occasionally not access second virtual hard drive inside a VM

$
0
0

I run Windows Server 2012 RTM Hyper-V and I can occasionally not access the second virtual hard drive (dynamically expanding VHDX) attached to the VM through the virtual SCSI controller. I can however access the first hard drive that is connected with the virtual IDE controller.

I get the following warning in the event log under “Administrative Events” every 30 seconds when this happens:

  • Log Name: System
  • Source: Storvsc
  • ID: Storvsc
  • Message: “Reset to device, \Device\RaidPort0, was issued.”

I get this error once or twice a week and it has caused serious problems since one of the virtual servers that have this problem is a fileserver and the second hard drive contains all the data.

The only quick solution to the problem that I have found is to force the virtual machine to stop using the “Turn Off” feature since a normal shut down does not work (stops at shutting down the event log or similar) and then start the virtual machine again.

You can also wait for about 30 minutes or longer until the disk for some reason becomes accessible again by itself.

My research into this problem shows that:

  • Only 2 of the 10 VMs running Windows Server 2012 RTM that I have, have this problem.
  • Both these VMs have a second virtual hard drive (dynamically expanding VHDX) that cannot be accessed for 30 minutes or longer.
  • Check Disk of the virtual hard drive shows no errors.
  • The second hard drive is attached to the virtual SCSI controller.
  • I can find no problems at all with the physical storage on the (not related) 4 hosts that I have. The problem exists only in the VMs.

I have now attached the second virtual hard drive to the virtual IDE controller to see if this permanently fixes this problem (i.e. does not happen for at least a week).

Is there something wrong with the virtual SCSI controller or the virtual SCSI device driver that comes with Windows Server 2012 RTM? Does anyone else have this problem?

RDP to VM "Internal error".

$
0
0

Hi.

Have a test environment on Server 2012 R2 with Hyper-V.

The server have one configured NIC. 192.168.2.100

Hyper-V configured with "internal" network virtual switch. 10.10.0.1

To access my VM's on 10.10.0.0/24 I configured my router with static route 10.10.0.0/24 192.168.2.100.

Routing and Remote Access role installed on server.

Everything working fine except RDP to VM's.

When I'm trying connect to VM's from my laptop 192.168.2.5/24 GWT 192.168.2.1, I'm getting "Internal Error" on black rdp screen. And after this RDP completely stop working to VM's and physical server at the same time. The only restart of physical server is helping. When I'm trying to restart RRAS service the following Event ID's are generated:

Closing a UDP socket with local port number 62174 in process 664 is taking longer than expected. The local port number may not be available until the close operation is completed. This happens typically due to misbehaving network drivers. Ensure latest updates are installed for Windows and any third-party networking software including NIC drivers, firewalls, or other security products.  

Closing a UDP socket with local port number 68 in process 984 is taking longer than expected. The local port number may not be available until the close operation is completed. This happens typically due to misbehaving network drivers. Ensure latest updates are installed for Windows and any third-party networking software including NIC drivers, firewalls, or other security products.  

And so on.

Any idea? 


RFT




Get Storage Drives Info for ALL VM's in a Given Cluster

$
0
0
Hello, I am trying to create a script that lists all the virtual machines in a given hyper-v cluster, and it also needs to list the maximum and the current size of the virtual disks that are attached to each virtual machine.

I started by getting this line that lists all the virtual machines in a given cluster –

Get-ClusterGroup -Cluster “myclustername” | Where GroupType –EQ ‘VirtualMachine’ | Get-VM

But unfortunately it does not give me any info about the maximum and the current size of the virtual disks that are attached to each virtual machine.

Can anyone help me here?

Windows 2012 server cluster configuration

$
0
0

Hi Gurus

I have a quick question. I am setting up a brand new infrastructure. It consists of two servers, two switches and an iSCSI SAN. I have not done Hyper-v clustering before and hence have the following questions. The server has 4 X 1GB NICs and 2 x10GB iscsi Nics.

  • I believe I can use MPIO on the iscsi Nics. With the 1GB NICs can I use 2 for VM access and 2 for live migration? What is the best or most logical practice in this regard?
  • Should the cluster nodes be on different subnets/vlan?
  • How do I tell Hyper-v which network to use for the live migration?
  • I believe as a minimum I need to create 2 LUNs, one for the quorum disk and the other for the VM storage. Will any of these need to be a CSV?
  • If I use the NICs as explained above, should the iscsi, live migration, vm all be on separate subnets/vlans?
  • Also is it necessary to use SMB for the quorum disk and VM storage, or just provisioning the LUN and making them available to the server is enough?

Any help will be greatly appreciated. Thanks in advance.

Regards



Bind external device into Hyper-V by bridging adapters and using VLAN?

$
0
0

Hi,

i tried several hours and researched the web but no solution.

I am running a Windows Server 2012 with Hyper-V virtualizing several networks. Each network is in its own vlan (Network 1 = Vlan 100 , Network 2 = Vlan 200,  Network 3 = Vlan 300 etc.). They are all connected to an external network vSwitch TESTNET.

This vSwitch TESTNET is connected to one NIC on the host. I can send/receive VLAN tagged packets to this NIC from outside and it works. I can reach the corresponding networks.

NOW I have an external device which I have to physically connect to that server on a new NIC. It has to be placed into Network 1 means be reached directly from there.

The first idea I got is to bridge this network connection with my vSwitch Testnet. Due to the fact that the virtualized Network 1 is in a vlan I also tag the new NIC with Vlan 100. Several attemps later I still can't get it working.

1.) Is it possible to bridge a vSwitch with a physical NIC? Will the tagged vlan packets from the physical NIC be sent to the corresponding VMs with the same vlan configuration over the vSwitch Testnet?

2.) Or Do I need to create another vSwitch for the second NIC for my external device? And afterwards bridge these two vSwitches together?

3.) Or is the only way to add this network device to a virtual router in a virtual machine?

Hope somebody can help me.

Regards DrWho

How to import hyper-v s2008r2 exported vms in hyper-v s2012r2?

$
0
0

My name is Florin Nicolescu and I am a MCT.

I usually want to promote last MS technology in my classes.

So I want to use s2012 r2 hyper-v as host for my MOC courses VMs which are created by s2008 r2 hyper-v export (ver 1 vms).

I already switched to s2012 hyper-v and things seems to work ok.

Now I want to switch to S2012 r2 Hyper-v.

I saw that support for ver 1 VMs is discontinued in s2012 r2 hyper-v. (thanks to Taylor Brown)

So import in s2012 r2 hyper-v of an exported s2008 r2 hyper-v vm is no longer possible

For now the only workaround I identified is to import the vms in a s2012 hyper-v and copy each Virtual Machine folder with the new content done by import (and it works).

Is any tool or powershell cmdlet that can transform the .exp file obtained by export in s2008 r2 into {guid).xml file and a folder with the same name as the xml as it happens during the import of ver 1 vm in s2008 r2/s2012?

 All the best

 

Florin (Nicolescu)

florin@learningsolution.ro

mmc could not create the snap-in (WIN8)

$
0
0

I got the following error when I run the hyper-v manger in win 8 , any idea?



Please click the Mark as Answer button if a post solves your problem!

Set a delay for automatic shutdown of virtual machines

$
0
0

Hallo,

is there a way to set a delay for the automatic shutdown of the guests when the host is shutting down? Just like the automatic startup delay but for the shutdown. The simplest possibility would be to shutdown the guest in the opposite of the startup delay.

I want to shutdown the Exchange Server first and then the rest - the virtual Domain Controller should be shutdown as the last server.

Hyper-V could not initialize (rights?)

$
0
0

Hello,

I have an WIN2012 R2 Server.
Unfortunatley it is serving as a DC (I know this is not recommended).

I set up the HYPER-V role and when I start I receive with a newly created VM (no etwork connected yet):

'TEST111' could not initialize. (Virtual machine ID 49608249-F381-43E8-BCCF-F6C61CDE68A0)
Event ID 3040

Most likely it has something to do with the rights. I tried to apply this thread, but no luck:

http://social.technet.microsoft.com/Forums/windowsserver/en-US/ae8a90a2-4251-4fbd-b644-72dcd4b5f08c/error-an-attempt-to-initialize-vm-saved-state-failed-when-starting-any-vm?forum=winserverhyperv

I reinstalled the role and it still does not work. It looks like the old Settings of the hyper-v program stay on the machine after deinstalling the role, because after the reboots and Setting it up again it Shows the old Settings.

The process Monitor Shows:

HKCR\Applications\vmconnect.exe : NAME NOT FOUND Desired Access: Read.

Q:

Is there a way to completly clean the hyper-v stuff?

It might be that hyper-v only accepts local admin users (especially on a DC)?

Teaming with Windows 2012 DC (Datacenter Edition) Hyper V Host servers

$
0
0

HI

We are preparing 2 Windows 2012 R2 DC edition servers, each of them has 4 NICs, planning to configure both HV host and guest clustering. One NIC will be used for host / HV management and Host cluster traffic, other 3 NICs will be configured in a single team. These 3 NICs are connected to 2 differenet switches and our intention is to utilize the full bandwidhth. Teaming is configured as Switch Independent / Dynamic load balancing mode. Is this the right configuration? Also each of the VMs will configured in different VLANs through VLAN IDs.

Thansk in advance


LMS


Network configuration

$
0
0

Hello,

I have two hyper-v hosts (failover cluster on Win2012) with two 10 Gbps each.

I'm using manual http://technet.microsoft.com/en-us/library/jj735302.aspx#bkmk_2

It says that I should set AllowManagementOS attribute to false

New-VMSwitch “20GbE switch” –NetAdapterName “2x10GbE” –MinimumBandwidthMode Weight –AllowManagementOS $false

but when I'm creating virtual nics it changes to true

Is it normal and why should I set this option if it's not working ?

 

What is the best practice for my configuration ?

1. Use nic teaming for redudancy(http://technet.microsoft.com/en-us/library/jj735302.aspx#bkmk_2)

2. Do not use teaming (http://technet.microsoft.com/en-us/library/ff428137%28WS.10%29.aspx)

1st nic      Virtual machine access + Management
2nd nic      Cluster,CSV + Live migration

no nic redudancy

Thank you








Multiple Hyperv connected to singel network over Wifi

$
0
0

Hi All

I have a Problem when connecting more than two hyperv and their Hosts to the same Network. As soon as i connect the third the connection looses 99% of the pings. On the Hyperv Hosts i have created a external switch with the wifi Adapter connected to it. As expected the System creates a Network Bridge. On every System there is one VM and the host connected to the virtual Switch.

I have tested it with 3 different Accesspoints. In the last Scenario i just used one accesspoint with fixed ip addresses and tryed to ping the VMs on the other Hosts. The result was the same. As soon as i connected the third hypervisor and its vm to the wifi the communication broke down.

Does anyone have an Explanation for this?

Thank you.

Taking Snapshots

$
0
0

Hi, I just want to verify, in taking snapshots, is it ok to take a snapshot on Hyper-v while its online? or it's much better to take the snapshot offline?

I tried it online before and it's still operating fine :) but based from the others experience, is it better offline? or online?

Thanks

Jeff

Ping from VM to ouside fails: 'Redirect Network (New nexthop: ...)'

$
0
0

Hi,

after installing Visual Studio 2013 Ultimate with the Windows Phone 8 "emulator", my old Hyper-V VM cannot access the outside network anymore. My network is like this, the VM uses the PC's shared network IP as the gateway.

[ PC-NIC (shared with internal switch 1) ] <-> [ Hyper-V internal switch 1 ]

                                                          <-> [ Hyper-V external switch ]

                                                          <-> [ Hyper-V internal switch 2 ]

The last two Hyper-V switches were created automatically recently by the VS2013 setup. Since then my VM won't ping to any network except its internal network anymore. The PC's NIC is shared with the internal switch1, to which the VM is connected to.

When the VM tries to ping an outside network, its gateway, the PC, replies with a redirect message:

'Redirect Network (New nexthop: [ IP of PC/gateway (shared network IP) ])'

I can connect the VM again by using the external Hyper-V switch for instance, but I'd like to keep the old setup. Is this possible?




Just FYI, New! Blog post with link, "New Hybrid Cloud Services Planning and Design Guide in the Windows Server Technical Library," at http://bit.ly/1jhatA9

Unable to connect to Hyper V server via Remote Management

$
0
0

Hi all,

 

I've spent the last 5 hours or so Googling for the answer, checked the forums for an answer and even (because I'm desperate) asked the dog just in case he knew. So now I figure its time to just ask...

 

 

The Problem:

In short, I cannot use the hyper V remote manager to connect our Hyper V server.

 

The Details:

So the weird thing is, I am able to user Remote desktop to connect to Hyper-V without issue. However, if I try to ping it from any machine, it fails. I cant even ping from the virtual Win server 2008 R2 command line.

 

I am able to ping Win server 08 from any machine on the network without a problem, can ping machine to machine, server to machine but Hyper V wont respond when I ping it.

 

I do admit, when it comes to servers I know about as much as a horse does about flight, so please forgive my miss use of terminology or if this is an obvious mistake Im making on my behalf.

 

Hopefully, the plan is to have remote hyper V access from a client machine if this gets resolved.

So any help would be greatly apprecaited.

 

Thank you for your time!

Viewing all 19461 articles
Browse latest View live




Latest Images