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

Communication between Host and Guest

0
0

I have a 64 bit server with Windows Server 2008 R2 on it. It is also the domain controller. I want to enable hyper-v role on it and create 2 virtual machines (both running Windows Server 2008 R2). I also want these three machines (1 host and 2 guests) to communicate with each other. I have very little knowledge of networking. Can somebody please provide me the complete steps to make it happen or direct me to some link with detailed steps?

Thanks a ton in advance.

 

Thanks

JD

 


Enabling VM Guest NLB w/Multicast IGMP on 2012 Hyper-V host w/ converged SCVMM fabric switch

0
0

What a mouthful.

As short as possible: 

WHAT I'M ATTEMPTING:

I'm trying to build a new NLB cluster for a 2008 R2 SP1 Remote Desktop Services farm. And I'm trying to do it the right way, with multicast igmp, not unicast. 

The two guest VMs with NLB install converge fine. VIP gets this:

IP: 192.168.100.157

MAC: 01-00-5e-7f-64-9d

NLB NIC is on the same VLAN & "Converged switch" in VMM as our mgmt/server traffic (That is to say it's on production VLAN, not on a separate vlan) 

PROBLEM:

Can't ping 100.157. From VM guest itself, from host, or from Cisco 6509 switch. 

Cisco show mac address lookup does not see that MAC anywhere

show ip igmp groups shows not igmp traffic at all. Clearing counters show sno multicast increment.

FURTHERMORE:

Host is setup thusly:

- Dell R810

- 8x1GbE Broadcom 5709c in a Server 2012 LACP/HASH team built via VMM powershell cmdlets

- On the physical switch side, those 8 nics are in a Cisco port-channel, trunked, all VLANs allowed

-  Host has no "physical" nics per se, as in a 2008 R2 hyper-v host. Instead Host has these:

Set-VMNetworkAdapter -ManagementOS -Name "Live Migrate" -MinimumBandwidthWeight 35
Set-VMNetworkAdapter -ManagementOS -Name "MGMT" -MinimumBandwidthWeight 25
Set-VMNetworkAdapter -ManagementOS -Name "CSV" -MinimumBandwidthWeight 40
Set-VMNetworkAdapter -ManagementOS -Name "iSCSI #1" -MinimumBandwidthWeight 0
Set-VMNetworkAdapter -ManagementOS -Name "iSCSI #2" -MinimumBandwidthWeight 0
Set-VMNetworkAdapter -ManagementOS -Name "Aux" -MinimumBandwidthWeight 0

Get-VMSwitch outputs this on the converged v-switch: 

ComputerName                        : My-host
Name                                : My awesome switch
Id                                  : e2377ce3-12b4-4243-9f51-e14a21f91844
Notes                               : 
SwitchType                          : External
AllowManagementOS                   : True
NetAdapterInterfaceDescription      : Microsoft Network Adapter Multiplexor 
                                      Driver
AvailableVMQueues                   : 0
NumberVmqAllocated                  : 0
IovEnabled                          : False
IovVirtualFunctionCount             : 0
IovVirtualFunctionsInUse            : 0
IovQueuePairCount                   : 0
IovQueuePairsInUse                  : 0
AvailableIPSecSA                    : 0
NumberIPSecSAAllocated              : 0
BandwidthPercentage                 : 0
BandwidthReservationMode            : Weight
DefaultFlowMinimumBandwidthAbsolute : 0
DefaultFlowMinimumBandwidthWeight   : 1
Extensions                          : {Microsoft NDIS Capture, Microsoft 
                                      Windows Filtering Platform, Microsoft 
                                      VMM DHCPv4 Server Switch Extension}
IovSupport                          : False
IovSupportReasons                   : {This network adapter does not support 
                                      SR-IOV.}
IsDeleted                           : False

Question:

Aside from a few of my favorite MS MVPs (shout out to WorkingHardInIt for having this same question), I can't find much documentation on employing 2008 R2 NLB on guest VM within a fabric-oriented, VMM-built 2012 Hyper-Visor converged switch (no network virtualization...yet).

Yes I know all about VMM NLB but 1) I'm trying to wedge NLB in after building these VMs without a service template (NLB is the audible, essentially) and 2) MS NLB is configured in providers & I've created requisite VIP templates. 

Even so, I ought to be able to create an NLB cluster without VMM's assistance in this scenario correct? Suboptimal, I know but possible, yes? Essentially I've put to synthetic NICs on each VM, set IPs manually, and assigned them to the same vlan. I can ping each synthetic NIC, but not the cluster IP. 

And yes: these particular vNICs have Mac Address Spoofing enabled. 

Cisco:

I have a TAC case open with Cisco, but they can't quite figure it out either. IGMP Snooping enabled across the switch. And they insist that the old static arp entry to resolve this problem is no longer necessary, that Microsoft now complies with relevant RFCs

Possible SOlution:

Only thing I can think of is flipping MulticastForwarding param below from disabled to enabled. Anybody ever tried it on a converged virtual switch on the Hyper visor? Is my virtual converged switch protecting me from multicast igmp packets? 

PS C:\utilities> Get-NetIPv4Protocol


DefaultHopLimit             : 128
NeighborCacheLimit(Entries) : 1024
RouteCacheLimit(Entries)    : 128
ReassemblyLimit(Bytes)      : 1560173184
IcmpRedirects               : Enabled
SourceRoutingBehavior       : DontForward
DhcpMediaSense              : Enabled
MediaSenseEventLog          : Disabled
IGMPLevel                   : All
IGMPVersion                 : Version3
MulticastForwarding         : Disabled
GroupForwardedFragments     : Disabled
RandomizeIdentifiers        : Enabled
AddressMaskReply            : Disabled
Thanks for any thoughts. 


Robert

How to move Hyper-V CSV cluster to different storage LUN-s

0
0

Hi.

I need to replace old storage with new storage.

This old storage is used for Hyper-V CSV cluster (2 nodes).

What is the path to move data from one LUN to another LUN in CSV cluster.

I need to copy data (VM-s) from one LUN to another LUN on new storage and replace old disk with new disk in CSV cluster.

Note:

There is no storage migration option. Manually LUN-to-LUNdisk block copy.

TNX

Bit Locker on windows 2008 R2 Virtual machine

0
0

Hello there !

We have a a number of Windows 2008 R2 machines and we wish to provide an encryption mechanism for each Virtual machine.

It's a VMware environment and all the VM files go into NFS drives.

Do you think , Bitlocker will help ?

Is Bitlocker supported on Virtual machines ?

In my opinion , Bitlocker is to safeguard against any "physical" threat to a machine.

But I wanted a second opinion here.

Please help me.

Migrating VM to different subnets

0
0

I am trying to set up an experiment where I am migrating a VM with a static IP between two hosts while a user is accessing that VM with RDC. The scenario is simple enough when done inside a LAN without subnets but I want to simulate WAN conditions as if the VM was migrated to a different datacenter on another network or ISP. 

So to achieve this, I made a private and an external virtual switch on each host (i only have two hyper-v hosts). On the private virtual switch i am connecting my VM. I then set up a WANem router which connects the private switch to the external switch. So far so good. The external switches on each host connect to a physical switch via GbE interfaces. Everything behaves well and I can use the WANem to simulate WAN parameters.

The problem is that if I migrate the VM to the second host, where I have exactly the same setup, the implication is that the client accessing the VM via remote desktop would need to have his gateway address automatically switch to the WANem router of the other host. I don't think this is possible and I can't think of another way of doing this. The simpler version would be to take the WANem and put it on the client side but then I will not be able to simulate network conditions changing after migration.

To clarify things, my client is using 192.168.01.0/24 and it talks directly to the WANem routers but only one can be gateway at a time. The VM sits behid the WANem routers at the subnet 192.168.2.0/24. So basically the way I set it up I can put the WANem router of the first host as the gateway on my client and then access the VM as long as it is on that host. Once it migrates, it resides behind the WANem of the other host. And here lies the root of the problem.

Does anyone know how I can do this in a simple way or with different software/method?

PS. I just discovered WAN bridge so I will give that a go. It seems to be doing the simulation at Layer 2. I will update when I know more, but please give advice meanwhile.

Reverse Replication on Hyper-V 2012 R2 Not Functioning

0
0

I have two new installs of Server 2012 R2 Standard and have the latest round of patches. I am creating a replica between the two and doing a Planned Failover. If I check the "Reverse the replication direction after failover" or manually do a Reverse Replication, I get the error:

Hyper-V failed to enable reverse replication for '<VM name>': The data is invalid. (0x8007000D).

Event log shows the same with an Event ID 32068.

Have reboot. Have tried multiple times in both directions. I tried this with a brand new VM with no data and also a test VM. These servers are domain joined with Kerboros authentication.

Any ideas on this?

Trouble recovering virtual servers

0
0

My virtual server crashed, but I was able to get it going again. But...all the VMs show as Saved-Critical. I figured no big problem as I do have Windows backups. I booted from the DVD and ran the recovery, but after it finishes and reboots, I get a boot failure - no boot device found.

I have the original VHDs, is it possible to just build new VMs and use these drives? Any other suggestions?

Thanks.

A port on the virtual switch has the same MAC as one of the underlying team members on Team Nic

0
0

Experts !

Windows 2012 R2 Cluster.

2 Physical NICs dedicated for Hyper-V data traffic. These two NICs are used to create a team using Windows teaming (Switch Independent + HyperV Port) and this teamed interface is used for HyperV Virtual Switch.

I am getting the below warning frequently.

Log Name:      System
Source:        Microsoft-Windows-MsLbfoSysEvtProvider
Date:          11/12/2013 1:37:55 AM
Event ID:      16945
Task Category: None
Level:         Warning
Keywords:      Classic
User:          N/A
Computer:      MSHVCLUSTER6N1
Description:
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
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
  <System>
    <Provider Name="Microsoft-Windows-MsLbfoSysEvtProvider" Guid="{387ed463-8b1b-42c9-9ef0-803fdfd5d94e}" EventSourceName="MsLbfoProvider" />
    <EventID Qualifiers="32768">16945</EventID>
    <Version>0</Version>
    <Level>3</Level>
    <Task>0</Task>
    <Opcode>0</Opcode>
    <Keywords>0x80000000000000</Keywords>
    <TimeCreated SystemTime="2013-11-11T21:37:55.871565200Z" />
    <EventRecordID>4861</EventRecordID>
    <Correlation />
    <Execution ProcessID="4" ThreadID="6100" />
    <Channel>System</Channel>
    <Computer>MSHVCLUSTER6N1.INSIDEVIRTUALIZATION.COM</Computer>
    <Security />
  </System>
  <EventData>
    <Data Name="DriverObject">
    </Data>
    <Data Name="Member">Microsoft Network Adapter Multiplexor Driver</Data>
  </EventData>
</Event>

And while checking the Interface and MAC, the warning is true.

name                                                                   MacAddress
----                                                                      ----------
MANAGEMENT                                                     00-17-A4-77-00-6E
HEARTBEAT                                                          00-17-A4-77-00-6C
Ethernet                                                             00-17-A4-77-00-6A
LIVEMIGRATION                                                  00-17-A4-77-00-68
DATA-2                                                                00-17-A4-77-00-66
DATA-1                                                                00-17-A4-77-00-64
vEthernet (HCT-PRODUCTION-LOGICAL-SWITCH)                   00-17-A4-77-00-66
DATA-TEAM                                                          00-17-A4-77-00-64

While I did the same configuration using SCVMM for my Windows 2012 HyperV clusters, the fabric was deployed from SCVMM and hence the team and the virtual switch was just one. In the similar way, How should I do this with out SCVMM ?


Cheers ! Shaba


traffic storage

0
0
Hyperv2012->NetApp

Windows2012Serverwith CIFsstorage access
It is normalifcommandto copyfiles fromthe mapped driveinWindowsitself, trafficin and out ofthevirtualmachine?,Should not stay inside thestorage itself?

move hyper-v powershell module from 2012 to 2008 r2

0
0

hey all, i having some problem with moving hyper-v powershell module from server 2012 to server 2008 r2 and here the desription:

i have server 2012 with hyper-v powershell module inside and its working 100%

i have server 2008 r2 with hyper-v role installed without! hyper-v powershell module inside

i update powershell in 2008 r2 server to powershell v3.0 and move from the 2012 server two folders:

one from sth like:

c:\windows\microsoft.net\microsoft.hyper-v.powershell

and teh second:

c:\windows\system32\windows powershell\modules\hyper-v

afte i paste it to the server 2008 r2 in the same paths i try to run the import command and it work!!

but when i try to run some command like get-vm i get the error of :

"hyper-v role is not install, try to install the role and run this command again"

please help' what else i has to do ?

unexpected reboot hyper-v

0
0
I have a w2k8r2 server that runs hyper-v and hosts about 12 guests.  Lately the server justs reboots and doesn't place the guests back into the sate that they were.  There is nothing in the event log that says why nor any dump files.  It is a fairly new Dell R510 and i have run the diagnostics on it and sent them to Dell and nothing is reported in the hardware logs.  Does anybody know of other thigns i can look at?  i am spending the weekend moving the VMs off of the box and planning on a complete reinstall of the OS but to me it sounds more like a hardware issue.  Thanks

How can we properly backup our only virtual DC before adding a second one? We want to mitigate potential risks of loosing AD.

0
0

Hi,

I need some help, please.

We have only one DC and it’s a VM running on Hyper-V R2. Now we are planning to add a second one and we want to mitigate potential risks of loosing AD if something goes wrong. In other words, we need a contingency plan.

Our Virtual DC is running Windows 2008 R2 and our second (physical) DC will be running the same OS.

I have the following question:

  • How can I properly backup my virtual DC? If something goes wrong I need to be able to restore the virtual DC to its original state and bring our AD back.
  • Can I use export/import? MS doesn’t recommend taking snapshot of virtual DCs.
  • Can I clone the DC?
  • Can I have USN errors?

I’m open to ideas and suggestions.

Thanks in advanced.


Hyper-V on Windows 8.1 is messing with MAC address when sharing my Wifi card

0
0

Hello,

I'm using Hyper-V on Windows 8.1 to build a complete SharePoint Development environment.

All of my VM are following this scheme:

  • a "local" private network shared between the host and all VM, using a static IP address plan (192.168.10.0/24)
  • a RJ45 external network, attached to my physical ethernet card. This network uses DHCP protocol
  • a WIFI external network, attached to my wireless network card. This network also use DHCP protocol

When plugged on the ethernet card, I have no issue. Both the host and the guest OSes are getting a valid IP address.

However, when I try to connect on the wireless card, I get some weird errors. Actually, my guest OS are getting the same IP address than the host. This issue an IP address conflict.

Someone else got the same kind of behavior : Windows 8.1 Hyper-V : IP address conflict on Guest OS

I've checked my MAC address plan, and it seems correct.

Using WireShark (a tool I'm not used to I admit), I can see that all DHCP request of the guest os, are sending the host MAC address, and not the guest' one.

Does anyone have an answer to this weird behavior?

Thanks,

steve


Paying back the community for its help by writing articles :
Have a Nice Day.Net Blog

Server 2012R2 Hyper-V allocated a large amount of RAM to the host server.

0
0

We have a test environment and have encountered an issue with the ProLiant DL380 G5 servers with 10GB RAM, running Server 2012R2 Datacentre. We do not use dynamic memory (only startup/fixed memory) and NUMA spanning is on.
This is the current Hyper-V VM setup with the corresponding allocated RAM amounts:

  1. Windows 7 -                       512MB
  2. 2008R2 server DC -           1024MB
  3. 2008R2 SharePoint 2010 -  2048MB
  4. 2008R2 TMG 2010 -           2048MB

When all of these VMs are powered on, the resource monitor on the host shows the following memory info:

  • Hardware reserved -                3MB
  • In Use -                             6635MB
  • Modified -                              13MB
  • Standby -                           1357MB
  • Free -                                 2234MB

The problem is that our Exchange 2010 server with 2048MB of allocated RAM cannot be powered on; error:

Questions:

  • What does the standby memory do?
  • Why am I unable to start another VM, even though there seems to be enough free memory on the physical host

Many thanks!


Marco S


unplanned automatic failover using Hyper-v Replica , why don't the VMs start up automatically on the replica server?

0
0

Hi,

We have cluster with two hosts (Host01 , host02) replicated to another server (Replica01)

in order to test automatic failover to the replica server  (Replica01) We unplugged the power cables from Host01 and Host 02 

now the VMs on the replica server is still off  , why don't the VMs start up  automatically on the replica server?


Ramy Shaker



server 2012 r2 live migration fails with hardware error

0
0
  • Hello all, we just upgraded one of our hyper v hosts from server 2012 to server 2012 r2; previously we had live replication setup between it and another box on the network which was also running server 2012. After installing server 2012 r2 when a live migration is attempted we get the message:

    "The virtual machine cannot be moved to the destination computer. The hardware on the destination computer is not compatible with the hardware requirements of this virtual machine. Virtual machine migration failed at migration source."

    The servers in question are both dell, currently we have a poweredge r910 running server 2012 and a poweredge r900 running server 2012 r2. The section under processor for "migrate to a physical computer using a different processor" is already checked and this same vm was successfully being live replicated before the upgrade to server 2012 r2. What would have changed around hardware requirements?


    We are migrating from server 2012 on the poweredge r910 to server 2012 r2 on the poweredge r900. Also When I say this was an upgrade, we did a full re install and wiped out the installation of server 2012 and installed server 2012 r2, this was not an upgrade installation.

Hyper-V replication error

0
0

Hi
We are having a problem enabling replication on our VMs.
we have two hyper visors each running 2012r2.
The Hyper-V manager is being run from win8.1

They are not clustered. The ports have been opened in the firewall (and for testing I have turned off the firewall).  both servers are using HTTP  kerberos and have been delegated in the AD.

If i set up a vm on hyper-A then try to enable replication to hyper-B i get the following error:
hyper-v failed to enable replication for virtual machine. The server name or address could not be resolved (0x00002EE7)
If I set up a vm on hyper-B and try to enable replication to hyper-A it works fine.
I can ping both servers from each other
I have tied the "fix" suggested here

Does any one else have a suggestion to try?

Rob

File Server Disk Architecture

0
0

I'm trying to work out how best to configure storage for a new Hyper-V based setup.  I will be running a single Hyper-V host with approx 6 VMs to begin with.  One of these VMs will be a Server 2012 file server, I'm am trying to work out how I should provide it with the disk that it will then serve to its clients. 

I have the following storage hardware:

  • Hardware Raid 6 - 8 * 2TB arranged as one large volume, I have some very large files (60GB+) and don't have a logical way of dividing them, hence one 12TB volume.
  • Directly attached 500GB SSD for VM boot disks
  • Directly attached 320GB Hyper-V host boot drive.

I have come across the following options:

  • Place RAID in the Hyper-V box, create a 12TB VHDX in the raid volume, add this to the file server VM.
  • Place RAID in Hyper-V box, configure 12TB volume as a passthrough to the file server VM.
  • Attach RAID to another box and provide the 12TB volume as an IScsi target and get the file server VM to attach to it

As I see it the 12TB VHDX is just not practical, I don't have the resources to create a new 12TB volume to hold the new VHDX and then copy the data across to it.  Once I've copied the data across I'm left with a 12TB file which will be a nightmare to move around if/when I need to.  I'm concerned about having all eggs in one 12TB basket, if the file system holding it goes wrong then all the data is lost.

I would go the ISCSI route, except that the Windows ISCSI target only supports virtual disks, so I'd be in the same boat, so I'd have to get hold of another ISCSI target, the other windows ones are expensive or slightly 'untested' looking.  The Linux alternatives give me headaches with NTFS support, and as I said I don't have the resources to copy everything to a new Linux filesystem volume.

So I'm left with pass through disks, these generally seem to be discouraged, and I understand why, but can anyone come up with some answers to the problems I list above.  If anyone can answer my fears about a 12TB file being unmanageable, then I could look into creating the 12TB VHDX as a dynamic disk so that the 12TB extra free space is not required during transition.

Hyper-V on Windows 7.

0
0
Does this operation systemextensions for deploing Hyper-V?


USB Connectivity

0
0
Hi Everyone,

I currently have a single Hyper-V 2008 R2 Host running two Virtual Machines (Server 2008 R2).

I am trying to connect an APC UPS to one of the Hyper-V guests for shutdown in the event of power failure.

The APC connects via USB to the host, however I'm not 100% sure on how to pass that through to the guest so that I am able to configure the UPS from the guest.

Any help would be greatly appreciated.

Cheers,
Anthony
Viewing all 19461 articles
Browse latest View live




Latest Images