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

Best VM NIC Teaming configuration? (2012 R2 host, 2008 R2 guest)

$
0
0

Hi there,

So I've got an Acer AR180 F1 server with 6 Intel 82576 NICs, running a standalone Hyper-V role on Windows Server 2012 R2 Standard. Storage is direct-attached.

In Server Manager, I've added the first 2 physical NICs to a dynamic LACP NIC team. This is to be used for management traffic (eg. RDP to the server from my workstation).

I want to dedicate the remaining 4 physical NICs to Hyper-V traffic.

Initially I only had a single VM running Windows Server 2012 R2, so for each of the 4 physical NICs I created a Hyper-V Virtual Switch with SR-IOV enabled. This allowed me to go into the 2012 R2 guest and do the team there, taking advantage of SR-IOV.

However, I now need to run a second VM on the server, running Windows Server 2008 R2.

As I understand it, you can't do native NIC teaming in the guest when the guest is 2008 R2.

So what I've done is:

  • delete the 4 Hyper-V Virtual Switches
  • in the host OS, create a dynamic LACP NIC team called "Hyper-V" on the 4 remaining physical NICs
  • create a Hyper-V Virtual Switch called "Hyper-V Team Switch" connected to the "Hyper-V" NIC team

Questions:

  1. Is there a better way of doing this, or am I on the right track?
  2. I noticed when creating the Hyper-V Team Switch that I could still choose to enable SR-IOV. Is there any point in doing this? I thought that SR-IOV doesn't work for a VM when you team the NICs at the host OS level.



VLAN on host accessible switch - PowerShell

$
0
0

I've looked through the previous posts in this forum that look like they have anything to do with my question, but they did not seem to address my question.

I'm trying to set things up on a Hyper-V Server 2012 R2 remotely via PowerShell.  I am not using SCVMM so I do not have the SCVMM PowerShell cmdlets available.  I need to be able to do this with the 'out of the box' cmdlets as this is geared toward a green field deployment.

After installation, I do the minimum amount of work required locally in the Hyper-V Server command and sconfig windows to configure for remote management, then switch to executing a variety of PowerShell scripts from my management workstation.  For this particular Hyper-V Server, I am creating a virtual switch that is shared with the host OS - no problem.  The only issue is that the network requires a VLAN tag.  I can't see anyway to include the tag in the New-VmSwitch cmdlet.  Nor have I been able to find any other cmdlet that allows me to set the VLAN tag on the parent's vNIC.  I know the Set-VmNetworkAdapterVlan can be used for setting the VLAN tag on a VM's NIC, but it doesn't appear it works on the parent's vNIC.

It seems like with the all the great cmdlets Microsoft is releasing to do everything that is possible in the GUI that this would be someplace.  But if it is there, I haven't found it yet.

My workaround is to launch the GUI remotely and set it manually.

Thanks for any pointers.


.:|:.:|:. tim

Windows Server 2008 R2 Hyper-V Manager cannot connect to Windows Server 2012 R2

$
0
0

I cannot use vmconnect or Hyper-V Manager from any of our Windows Server 2008 R2 machines to connect to Windows Server 2012 R2 Hyper-V or any of it's virtual machines.

I have no problem doing so from a Windows Server 2012 (non - R2) and can connect from Server 2008 to Server 2012 (non R2).

Just not from 2008 to 2012 R2.

I've tried many of the fixes about adding COM permissions and remote management and other obvious solutions.  None have worked.

Also, cannot connect from Server Manger either.  With this I get "WS-Management service cannot process the request" error.

Looking for a fix.

Please help!

HP OEM Server 2012 std 2 cpu/vm

$
0
0

I have a HP server with preloaded OEM Server 2012 std 2 cpu/vm

I have no iso.

I have used a eval copy of 2012 to create a vm -

I use DISM /online /Get-TargetEditions reports

Target Edition : ServerStandard
Target Edition : ServerDatacenter

but when I try the Key using

DISM /online /Set-Edition:ServerStandard /ProductKey:XXXXX-XXXXX-XXXXX-XXXXX-XXXXX /AcceptEula

I get error 0x8a010001

The specified product key could not be validated

Check that the specified product key is valid and that it matches the target edition.

The Key works on the server that is running the hyper-v and it reports that the current version is ServerStandard

Error Creating VM on 2011 iMac - The Hyper-V Virtual Machine Management service encountered an unexpected error: The remote procedure call failed. (0x800706BE).

$
0
0

I am running Hyper-V in Windows 8.1 on a late 2011 27 inch iMac. Whenever I try to create a virtual machine I get the error below and Windows warns that it will restart in 1 minute. I tried a clean install of Windows, but my PC still crashes ever time I try to create a VM. I was able to successfully use Hyper-V in prior versions of Windows on this same PC. Any clue as to what is going on? A driver? Windows 8.1? Mac Hardware related?

I see the following two entries in event viewer but have no other clue as to what is happening:

Log Name:      Microsoft-Windows-Hyper-V-VMMS-Admin
Source:        Microsoft-Windows-Hyper-V-VMMS
Date:          1/10/2014 10:48:46 AM
Event ID:      16000
Task Category: None
Level:         Error
Keywords:     
User:          SYSTEM
Computer:      Charles-PC.CHARLESPOOL.local
Description:
The Hyper-V Virtual Machine Management service encountered an unexpected error: The remote procedure call failed. (0x800706BE).
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
  <System>
    <Provider Name="Microsoft-Windows-Hyper-V-VMMS" Guid="{6066F867-7CA1-4418-85FD-36E3F9C0600C}" />
    <EventID>16000</EventID>
    <Version>0</Version>
    <Level>2</Level>
    <Task>0</Task>
    <Opcode>0</Opcode>
    <Keywords>0x8000000000000000</Keywords>
    <TimeCreated SystemTime="2014-01-10T15:48:46.770451300Z" />
    <EventRecordID>58</EventRecordID>
    <Correlation />
    <Execution ProcessID="2488" ThreadID="8704" />
    <Channel>Microsoft-Windows-Hyper-V-VMMS-Admin</Channel>
    <Computer>Charles-PC.CHARLESPOOL.local</Computer>
    <Security UserID="S-1-5-18" />
  </System>
  <UserData>
    <VmlEventLog xmlns:auto-ns2="http://schemas.microsoft.com/win/2004/08/events" xmlns="http://www.microsoft.com/Windows/Virtualization/Events">
      <ErrorMessage>%%2147944126</ErrorMessage>
      <ErrorCode>0x800706BE</ErrorCode>
    </VmlEventLog>
  </UserData>
</Event>

Log Name:      Microsoft-Windows-Hyper-V-VMMS-Admin
Source:        Microsoft-Windows-Hyper-V-VMMS
Date:          1/10/2014 10:48:46 AM
Event ID:      16010
Task Category: None
Level:         Error
Keywords:     
User:          SYSTEM
Computer:      Charles-PC.CHARLESPOOL.local
Description:
The operation failed.
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
  <System>
    <Provider Name="Microsoft-Windows-Hyper-V-VMMS" Guid="{6066f867-7ca1-4418-85fd-36e3f9c0600c}" />
    <EventID>16010</EventID>
    <Version>0</Version>
    <Level>2</Level>
    <Task>0</Task>
    <Opcode>0</Opcode>
    <Keywords>0x8000000000000000</Keywords>
    <TimeCreated SystemTime="2014-01-10T15:48:46.773497100Z" />
    <EventRecordID>59</EventRecordID>
    <Correlation />
    <Execution ProcessID="2488" ThreadID="8704" />
    <Channel>Microsoft-Windows-Hyper-V-VMMS-Admin</Channel>
    <Computer>Charles-PC.CHARLESPOOL.local</Computer>
    <Security UserID="S-1-5-18" />
  </System>
  <ProcessingErrorData>
    <ErrorCode>15005</ErrorCode>
    <DataItemName>Parameter0</DataItemName>
    <EventPayload>
    </EventPayload>
  </ProcessingErrorData>
</Event>



Cannot mount ISO from remote share in Clustered Hyper-v R2 if FCM runs on remote machine

$
0
0

If I run Failover Cluster manager on Hyper-V 2012 R2 host itself, I can mount iso that resides on another server (remote share). That was done via share option/security/cifs delagation (does it really need to be that complicated?)

But if I run FCM snapin from another machine (as one should do, as Hyper-V should NOT have GUI installed) via RSAT then there is no way i can mount iso. I always get access denied error

Any ideas?

Seb

The process cannot access the file because it is being used by another process

$
0
0

Hi ,

I found the below warning in the event log for Hyper-V

'xxx' cannot delete file D:\Hyper-V\xxx_A74D9626-E1C5-4040-B2FB-68D68B2F795D.hrl: The process cannot access the file because it is being used by another process. (0x80070020). (Virtual machine ID 944BB7AB-80DB-41CB-807C-003C344D93A9)

XXX : is the virtual machine. This log was found in the primary server.

Is this affecting the replication in any way?

Error Creating Snapshot

$
0
0

While trying to create a snapshot of any of my VM's I am getting an error.

Environment:

Windows 2012 R2 Cluster

Running System Center VMM 2012 R2

Clustered Shared Drives

Any idea what this "No such interface supported (0x80004002)" means or how I fix this?

Error (12700)
VMM cannot complete the host operation on the TUKC-HYPERV-5.corp.bittitan.local server because of the error: Checkpoint operation for 'TUKW-MWProd-106' failed. (Virtual machine ID 53B681FD-8F83-4272-861E-033101EEBB4E)

'TUKW-MWProd-106' could not initiate a checkpoint operation: %%2147778816 (0x80048100). (Virtual machine ID 53B681FD-8F83-4272-861E-033101EEBB4E)

'TUKW-MWProd-106' is unable to reset the virtual hard disk path for C:\ClusterStorage\TUK-HyperV-A-B01\TUKW-MWProd-106-1\VMM-BASE-2012R2.vhdx as a result of failure to create a checkpoint. No such interface supported (0x80004002). (Virtual machine ID 53B681FD-8F83-4272-861E-033101EEBB4E)
Unknown error (0x8000)

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


Vincent Fournier


How to delete driver?

$
0
0
Is there a way to uninstall a driver in Hyper-V Server 2012? Tried pnputil to delete driver packages but my device still appears after a reboot. I need to test a clean driver install and would like to avoid having to do a clean OS install solely for this purpose. 

HD Size VS Size on disk

$
0
0

Hi Folks,

Im not getting this....

i have a Hyper-V VM that i have connected to physical disks to from the Hyper-V host. From the VM, when i right click and go to properties on a folder i have on disk 1 it goes through and reports the same 'Size' and 'Size on disk' numbers (within a few MB at least), when i do that same thing on disk 2 the 'Size' and 'Size on disk' numbers are waaaaay different. One folder shows a size of 784 GB but the size on Disk as 29.8 MB!!!??? the other 2 folders on this disk show a similar result. Neither disk has any compression turned on.....When i right click on the disk and go to properties it reports that the space used is smaller than one of the folders by itself actually is

What am I missing? i don't seem to have any issues accessing the data.


Colin Stewart

Lost Local Password

$
0
0
New VM in Hyper-V 2012 R2. Used Generation 2, so it has a SCSI boot disk. Not a Domain joined machine. We lost the local password and have been trying to find a way to boot to a password recovery .iso, but apparently with a SCSI disk you cannot do that. I have tried converting from vhdk to vhd and then tried making that work in VMWare, but no luck. Any ideas? is there a way maybe to edit it through PowerShell or something?

MCITP Exchange 2010 | MCTS Exchange 2007 | MCITP Lync Server 2010 | MCTS Windows 2008 | MCSE 2003

Serial Ports using HyperV in Ubuntu guest OS

$
0
0

I need to run a terminal session (term) from within the guest OS, Ubuntu 12.04.3 LTS to a serial port on the Windows 8.1P host. In my case a USB to serial adapter that Windows has mapped to COM5.

I don't really know where to start.  In HyperV, under Settings, I see a Com1 and Com2 under hardware. The two options are None or Named pipe.  Not all that clear what to do here.

Presumably this is what will be visible to Ubuntu as  /dev/ttyXX   ??

Can anyone point the way to map a serial port into Ubuntu?   Or a suitable workaround?

Thanks.


Hypervisor disables Sleep and Hibernate on Windows Server 2012R2! Why? How to solve?

$
0
0

Hi,

according to the official documentation of Microsoft, Hyper-V does not block Sleep and Hibernate on Windows Server 2012 and Windows Server 2012 R2.

From powercfg I get the following output:

The following sleep states are not available on this system: Standby (S1) The system firmware does not support this standby state. An internal system component has disabled this standby state. Hypervisor Standby (S2) The system firmware does not support this standby state. An internal system component has disabled this standby state. Hypervisor Standby (S3) An internal system component has disabled this standby state. Hypervisor Hibernate An internal system component has disabled hibernation. Hypervisor Standby (Connected) The hypervisor does not support this standby state. The system firmware does not support this standby state. Hybrid Sleep Standby (S3) is not available. Hibernation is not available. The hypervisor does not support this standby state. Fast Startup Hibernation is not available.

I already installed a graphics device driver to prevent the graphics device from blocking Sleep and Hyper-V. So this should not be an issue.

What can I do to enable Sleep and Hibernate?

Regards,

Daniel

Request additional allocation of dynamic memory

$
0
0

Hyper-V 2012 host

Server 2012 R2 guest

The guest is configured for startup and minimum memory of 2 GB with a maximum memory of 64 GB.  Once per day a PowerShell script runs which uses 7-Zip.exe to compress some large files.  The 7-Zip command fails if there is less than 10 GB of memory immediately available.  I do not want to allocate that much minimum memory to the guest, as it doesn't need it for anything but this one script.

How can I programmatically request or instruct the host to allocate 10 GB to the guest before I run the 7zip command?

Currently I am launching a PowerShell job running Sysinternals TestLimit64.exe and running it until I see the allocated memory go up on the host.  But this workaround is inelegant, inexact, imprecise, and slow.

Thank you.


Tim Curwick
MadWithPowerShell.com

Multiple Tagged VLANs - Security Issue?

$
0
0

We are investigating tagging multiple VLANs on the switch port that we use for our VMs.  We have it up and running great in test by setting the VLAN ID on the individual VMs but our networking people have expressed concern about the security of this setup especially since one of the VLANs that is tagged is our DMZ.  I'm sure their concern is that if a DMZ connected VM was compromised that they could "break out" of that VLAN and somehow gain access to our internal network.

So far I haven't been able to find much either negative or positive about this particular scenario.  I did find one sentence on Aidan Finn's site froman article dated 12/1/2009 that says "A break out is theoretically impossible due to the architecture of Hyper-V leveraging the No eXecute Bit (AKA DEP or Data Execution Prevention)." but that's all I've got so far.

I guess what I'm after is some kind of information on how secure it is to have all these VLANs "flooded" on the same port and if there are good arguments pro or con for this configuration.  We currently have 1 NIC for each VLAN (including the DMZ) and they are OK with this setup security wise.

Thanks in advance!


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?

How to replace NIC and add virtual network to 2008 R2 Hyper-V Cluster

$
0
0

I have four virtual networks (three are on same subnet.) Both of my Hyper-V hosts are Dell R610's with (2) Intel dual Pro/1000 PTs and the built in Broadcomm nics.

I bought (2) Intel quad nics and would like to replace one of the Intel dual port nics on each host. Each Intel dual has two of the virtual networks on them.

What are the steps for getting this done?

Hyper-V Replica - Gauging Bytes & Bandwidth Performance & Tuning Considerations

$
0
0

I am running Windows Hyper-V Server 2012 R2 (Server Core) on 3 machines to test Hyper-V extended replication.  The amount of data being replicated is significantly more than I anticipated.  I also have some questions about the various options for the frequency of replication, i.e., what impact that will have on replication performance.

Here is an overview of the hardware configuration.

HV1 and HV2 have an Intel Core i3-4130 CPU.  HV3 has an Intel Core i5-2400S CPU.  HV1 is setup using 7 HDD Storage Space with Double Parity.  HV2 and HV3 have 6 HDD in RAID6 using a higher end LSI RAID controller.

HV1 and HV2 are on the same LAN with a Gigabit network.  There is an OpenVPN tunnel between HV1 and HV3 which are in two different LAN networks.  The upload speed of the link between HV1 and HV3 is 10 Mbps.

I am running a Windows Home Server 2011 VM on HV1.  That VM is replicated to HV2 and then the replication is extended to HV3. The initial replication of the VM was done when all 3 HV machines were on the same Gigabit LAN segment.  Afterwards HV3 was moved to a remote location.

WHS 2011 VM is setup with 3 VHDX files.  The boot VHDX is a 160 Gb Fixed VHDX file.  The data VHDX is a 4 Tb Dynamic VHDX. (My recollection is that only about 3 Tb of space is current allocated.)  The WHS 2011 Pagefile is on a Fixed VHDX which is not replicated.  Only the Boot and Data VHDX files are replicated.  Shadow Copies are disabled on WHS 2011 to eliminate any potential they have to add unnecessary disk changes that would need to be replicated.

I don't recall the exact terminology, but in case it makes a difference to performance ... I am using the Kerberos / Certificates method with HTTPS and compression to replicate the data.  Rather than the other option for setting up replication (which I believe required Active Directory?).

Q1)  The amount of data to be replicated seems significantly larger than what I would expect to see.

Last night I copied 4 VHDX files to my PC.  Three files were 8 Gb in size and one file was 10 Gb in size, i.e., 34 Gb total of new data to be replicated.  I then started a backup from my PC to WHS 2011 VM.  About 4-5 hours later I checked on the status of the replication.  The backup from the PC to WHS 2011 was complete.  There was very little data waiting to be replicated from HV1 to HV2.

But the Extended Replication from HV2 to HV3 showed 98 Gb yet to be replicated.  Given the initial change to the PC was only 34 Gb seeing nearly 3 times as much data set to be replicated between HV2 and HV3 was puzzling.

Q2) Would changing the frequncy of how often replications are done affect the amout of data that has to be replicated?  Or does the amount of data stay the same and the frequency only determines how often Windows checks on whether or not data needs to be replicated to the other machine?

At the moment I have the replication frequency on HV1 set at 30 minutes and on HV2 at 5 minutes.  In the particular scenario described above I would have expected nearly all the disk changes to be "new sectors," i.e., I would not think that the same "sector" might be updated several times?

Since the link between HV1 and HV3 is the slowest (which is used for the extended replication from HV2 to HV3) my thought was that allowing HV2 to check more often as to whether or not data needed to be replicated would help to keep the link utilization high.

But just in case the same "sector" is updated multiple times, and if that should cause HV Replica to transmit the sector multiple times, my thought was that setting the frequency on HV1 to 30 minutes might lessen the amount of data that would eventually have to be replicated from HV2 to HV3?  For example, if sector 99 is updated 10 times during that 30 minutes I wasn't sure if 10 "instances" would need to be replicated?  Or would only the last "instance" need to be replicated to HV2?

Q3) Is there any difference to replication performance depending upon whether or not a Fixed or Dynamic VHDX is being replicated?

In my scenario if I were to compare a 4 Tb Fixed VHDX versus using a 4 Tb Dynamic VHDX (of which only 3 Tb is currently allocated) will using one or the other format almost always guarantee that more data will need to be replicated?  For the initial replication I'd guess that more work would have been involved for the Fixed VHDX than the Dynamic VHDX.  But after that initial replication is done does the nature of using a Dynamic VHDX mean that there are more changes to the disk and thus more data to be replicated?  Or is there no specific correlation betwen the amount of data that would need to be replicated and the type of VHDX that is in use?

Thanks for any insight you can provide to any or all of these questions.


Theokrat

Virtual Machine Management service isn't running - Unknown Error

$
0
0

Hello , i am dealing this problem .

When i click start service i get this error message 

Previously i was able to start a windows phone emulator.

I just deactivated hyper-v so i could run vmware and then reactivated it and this error occured.

2 hyper-v nodes with shared storage (HP VSA)

$
0
0

Hi,

I want to use the HP VSA as shared storage for 2 hyper-v nodes.

Short Question: Can I start a virtual machine stored (vhdx file) on the shared storage on BOTH nodes? i.e. if one node fails
(Would be the simplest setup with manual failover, I think)

Or do I have to use fail-over-cluster?
If yes, is a cluster with only two nodes supported (I read about an additionally LUN for heartbeat or something like that)?

Thank you!

rib11

Viewing all 19461 articles
Browse latest View live




Latest Images