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

Fetch KVP of VM running on another node

$
0
0

Hello,

I am having a two node cluster running Windows 2008 R2 - Hyper-V Enabled. (Node1, Node2)

Now, when I try fetching the KVP of a VM running on Node2 from Node1 I get a blank response using the below code, but when I try to fetch KVP of VM running on Node1 I get correct results. Why is this behavior or the code needs to be changed ?

Please help.

filter Import-CimXml{
 $CimXml = [Xml]$_
 $CimObj = New-Object -TypeName System.Object
 foreach ($CimProperty in CimXml.SelectNodes("/INSTANCE/PROPERTY")){
    $CimObj | Add-Member -MemberType NoteProperty -Name $CimProperty.NAME -Value $CimProperty.VALUE
 }
$CimObj
}
$Vm = Get-WmiObject -ComputerName Node2 -Namespace root\virtualization -Query "Select * From Msvm_ComputerSystem Where Name='98238ABC-B7ED-499A-A8BE-4E7F32DD3284'"
$Kvp = Get-WmiObject -ComputerName Node2  -Namespace root\virtualization -Query "Associators of {$Vm} Where AssocClass=Msvm_SystemDevice ResultClass=Msvm_KvpExchangeComponent"
$GuestKvp = Get-WmiObject -ComputerName Node2-Namespace root\virtualization -Query "Associators of {$Kvp} Where AssocClass=Msvm_ElementSettingData ResultClass=Msvm_KvpExchangeComponentSettingData"
$GuestKvp.HostExchangeItems | Import-CimXml

Thanks.


NIC card missing in hyper-v 2012 Team console

$
0
0

Hello,

I am trying to Team two network cards from Server manager->Local server->Teaming, but while New Team wizard other network cards i can see for teaming whereas Two cards are missing wich i want to Team......Can you please help me what to check.

Network configuration bug in HyperV

$
0
0

After adding a new powerful Hyper-V server based on Server 2012 R2 on a Dell with Broadcom NetXtreme Gigabit adapters I had to struggle with heavy packet loss on the Hyper-V guests, which I just relocated from an older Windows Server 2008 R2 machine.

Played around with driver updates on the host, removing and readding virtual swich and guest network adapters, tried all the well known tricks about disabling offloads and increasing buffer size for send and receive buffer, however, I got no solution. And the most issues with network performance, Broadcom, Hyper-V were pointed to Teaming, which I had not active.

Today I spotted, that another pair of virtual machines on another Dell server with Broadcom network card running Server 2012 developed the same response issues.

Running ipconfig /all, checking the physical address entry and validating the found information with the arp cache of the pinging machine did now show the fact, that both hosts assigned the same physical addresses to the virtual network card of their guests!

C:\> arp -a

192.168.10.100      00-15-5d-99-65-01
192.168.10.200      00-15-5d-99-65-01

No wonder, why network connectivity was so flaky, since the switch could not decide, whom to serve. Manually adding a unique network address entry to the network card properties of the guest machines on one host left those without connectivity, but the issue of the other machines was immediately resolved. So I had to visit the Virtual Switch Manager, change the MAC address range there and remove and add the adapters from/to the guests again in the Hyper-V console.

While this issue should have not happened at all, I just post this information here, since it might helpful for others with multiple Hyper-V hosts based on Windows Server 2012.

Best greetings from Germany
Olaf


Connecting Hyper-V to Dell iSCSI

$
0
0

Hi,

I have an instance of Hyper-V 2008 R2 hypervisor installed on an HP DL360 G7.  I have a Dell Equallogic with a LUN allocated with IQN and the correct IP address configured to be allowed to connect.

I have configured a virtual switch connecting the Hypervisor to the SAN and I can ping it.  How do I provision a VM in the storage through Hypervisor management console?  All the server sees is local or network storage but not the SAN.

Any advice, thanks Matt.

Solution advice

$
0
0

Hello,

I will try to explain the situation:

Hardware overview:

Server1 2008
Role: Hyper-V Server and Back-up Server
Physical

Server2 SBS 2008
Role: AD, DNS, DHCP, Exchange,
Virtual

Server3 2008
Role: Remote Desktop Server
Virtual

The server is performing very bad since design.
Solutions from supplier:
- cache on raid controller
- seperate raid volume for virtual vm's

But unfortunately those solutions don't work.

I would like to setup a new server and move the virtual SBS server to a new server, but not virtual.

How would you guys approach this case?
Hope to hear some reactions.


Kind regards, Martin van der Voort. MCP, CPTS, CPTE, MCITP Server 2008, MCTS Exchange 2007

Mout-VHD cmdlet not recognized on 2008 r2 to 2012 r2 upgraded setup

$
0
0

I upgraded my setup from windows 2008 R2 DataCenter to Windows 2012 R2,


But when i try Mount-VHD cmdlet,it is giving me an error not recognized cmdlet.
It worked on my other setup where fresh install of win 2012 r2 is done..

This is the command i use in win 2008 R@
$VHDService = get-wmiobject -class "Msvm_ImageManagementService" -namespace "root\virtualization\v2" -computername "."

$VHDService.Mount($Paath)

Now the above command is also not working!

2 Nics in window 2008 R2, How do i use 2 physical Nics in Hyperv ?

$
0
0

os: windows 2008 R2 sp1

network: 2 subnet ( 10.1.1.0/24 ( 1st ISP) , 10.1.2.0/24(2nd ISP) )

2 physical switches (1st switch 10.1.1.0/24, 2nd switch 10.1.2.0/24)

Server has 2 physical nics. 1st nic connect to 1st switch, 2nd nic connect to 2nd switch)

I setup 2 physical nics for virtual network, one for 10.1.1.0/24, one for 10.1.2.0/24.

I can only put  gateway in one nic.

VM using 10.1.1.0(1st virtual network with external), it can go to internet ( using 1st ISP).

2nd VM using 10.1.2.0(2nd virtual network with external)  does not have internet access. 

How do setup 2nd vm to go internet using 10.1.2.0 network ?

Thanks

Raid configuration and VM placement

$
0
0

Hi Everyone,

I have recently purchased a Dell PowerEdge T620 with the following specs:

Intel Xeon E-5 2630v2

16GB Ram

2x300GB Raid 1

4x600GB Raid 5

I setup the host OS on the Raid 1.  I then created 2 VM's, both with 64GB fixed VHDX's for the OS.  VM1 will be the DC so I won't do anything different with that (unless I need to).  VM2 will house our medical billing software, SQL and also be a Terminal Server for 5 users.

How should I setup the VHD's that will house the applications such as SQL, billing software etc? 

1. Should I create another fixed disk for the Applications (billing software and SQL)?  And leave the guest OS's on there own fixed disk?  If I should create a fixed disk for the applications, should I make it the for the rest of the space on the Raid 5 or just big enough for the applications that I need it for?  The SQL databases only take up around 50GB's.

2. Right now the 2 64GB fixed VHD's are on the Raid 5 in a folder named Virtual machines, should I move those 2 VHD's to the Raid 1 or leave them on the Raid 5?  Or should I split them up?

How would you go about setting up this environment?  Also, should I use pass through disks vs fixed disks?

Thank you in advance for the help, I really appreciate it.


Hyper-V 2012 Gen 2 VM SCSI DVD device fails to boot from iso files

$
0
0

I am running Server 2012 R2 in Hyper-V Server role for my home lab. I am trying to create a gen 2 vm, with Server 2012 R2 iso loaded in the SCSI DVD device, but every time I try to start the vm it fails to start with the following error:

This is the current settings for the vm:

This error occurs with any iso file loaded into the SCSI DVD device, and the error occurs even if creating a new vm from scratch. I have seen several similar gen 2 vm boot issues posted, but none with the exact issue that I'm having. The iso files all work fine when creating a gen 1 vm.

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

Adding Fiber Channels to Hyper V guest running Cluster 2008 R2

$
0
0

Hi,

i have a Hyper V host with Server 2012 , and i have it connected to a Fiber Channel san, 

my question , i need to add the channels to the guest hyper v machines that are running on server 2008 r2 for creating a failover cluster ,

pass through configuration didnt work, i can see the disks on the VMs but i cant attach them to the cluster storage as disks 

thanks 


Ronald,

how to activate and use unallocated space on hyper-v server 2012

$
0
0

Hi,

My configuration :

12 physical disks of 1TB each

RAID 1 : OS ( 2 disks)

RAID 5 : for Data ( 10 disks)

I installed OS on the RAID 1 disk .so far so good :-)

After connecting to the hyper-v server from hyper-v manager on a windows 8 client to create virtual machines,i am able to create virtual machines but able to see only the C drive with 931GB space. 

How to use the other unallocated space for creating virtual machines on other drives ..i mean RAID 5 disks.

Could you please suggest me on how to use this  ? 

Thank you.

What is the difference between AMD Cores and Intel Threads?

$
0
0

Hi, 

What is the difference between AMD Cores and Intel Threads?

Thanks in advanced.



How to properly remove virtual machine from failover cluster using Powershell

$
0
0

Hi, 

I am trying to remove a virtual machine role from a Windows Server 2012 R2 Failover Cluster. I have been using this command:

Get-ClusterResource -Cluster $ClusterName | Where {$_.OwnerGroup -like $VMName} | Remove-ClusterResource -Force

This command works partially - after it completes if I run Get-ClusterResource it does not list anything related to this virtual machine. However, if I open Failover Clustering MMC, I can still see the VM listed, but next to it there is an error message saying:

"A virtual machine resource was not found in clustered virtual machine 'VM01'."

If I try to remove VM from Failover Clustering MMC, there is no problem.

Can anyone suggest of a proper way to remove virtual machine role from failover cluster, but it has to be completelly done from Powershell?

Thanks in advance.

VM on hyperv is dropping packets when -t pinged, what/s the next step?

$
0
0

I have a file share vm on a hyperv host that is in a clustered shared storage environement. Sometime earlier last week i had a few users complain about connectivity to this box so I ran a ping just to get a quick look. after running the -t ping for about 5 minutes i lost 5% of my total packets. This past weekend i built a new vm and tested connectivity before i loaded the data, no dropped packets. After bringing over all the data via a backup and restore i am now seeing packets dropped again. Any ideas on how what could be going on? I figured i'll start by looking at running processes and running a virus scan but, after that what should my next step be? Packet analyzer(Wireshark)?

Hyperv 2008 r2

Fully updated

2gb teamed NIC

No other vm's on particular host are having this issue


Ubuntu 12.04 VM install errors on one host

$
0
0

I have few servers (Dedicated Desktops) and up until recently I ended up with one with UEFI on the board. I would assume hypervisors would act the same on all hosts given same version of Hyper-V is installed. I created two of the same VM configs on each host as gen 1 VMs. The install doesn't work on the UEFI enabled board even though the VM is set to gen 1. Same ISO installed fine on the other host.  The error is below, I'm hoping a missed something quick and easy. The differences between the hosts are the other ones are intel and the UEFI is amd 8 core. The interesting part is debian 6/7 and ubunutu 13.10 work on all the hosts. I also tried the mode for Ubuntu for minimal VM install.

Error

An error was returned while trying to install the kernel into the target system.

Kernel package: 'linux-generic-lts-raring'/

Pat


Anyone else having issues shutting down VM's properly after windows update - stuck at it is now safe to turn off computer screen

$
0
0

Hello,

Anyone here tried shutting down any VM's recently on both windows 2012 or 2008 R2 that have guest OS as windows 2008 R2 or windows 7, even my windows 7 laptops and desktops are receiving it is now safe to turn off your computer screens when shutting down.

If in a VM guest its done from within the guest OS itself it shuts down properly but using command prompt or using the hyper-v administrator gui, the shutdown button shuts the guest os down but gets stuck at the "it is now safe to turn off your computer screen" and after 5 mins or so spits error that the vm failed to shut down properly. Only way to start the vm again is by clicking on the "Turn Off Icon" on the Gui... or right clicking the vm and using reset option.

I noticed these started happening last week after the dreaded Tuesday windows updates.

The heartbeat as expected shows lost communication message.

IF you guys have a hyper-v environment and few vms to test shutdowns on please try shutting them down, make sure your host and guest have all the updates from windows and see if they shutdown properly, will help me figure out what might be happening, nothing has changes in configuration so I am not sure why all the sudden this problem arisen. My backup scripts do not work because they cannot shutdown the vm's properly cause of this.... any help would be great.


Sup Doc !

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.

Access for SAN using HBA

$
0
0

Dears,

I have my existing Windows 2012 with Hyper-V Role installed and configured, and I also have VMs with Path through Disks.

I am accessing my LUNs using HBA and Storage which are compatible with SAN Manager.

My Concern, that I am afraid to lost connectivity with LUNs after configuring SAN Manager (coz when I configure Virtual Network, the NIC become not usable for the Host).

So, I want to know the following:

  1. Does configure Virtual SAN Manager will make my hosts and VMs lost connectivity to SAN?
  2. Does configuring Virtual SAN Manager will make interruption for Hyper-V Host LUNs and VMs Path through LUNs?
  3. If, How Long this interruption will be?

Thanks

Hyper V Server 2012 R2 Install for on-line class december 11th

$
0
0
this is a full version according to the on-line class documentation. I'm running Windows 7 Professional 64bit on my PC. will this overwrite or in any way cause issues with my PC functions under Windows 7 or is Hypver V Server 2012 r2 isolated just for the class? Just starting to learn about Virtual and wasn't sure about downloading this software to my PC.
Viewing all 8743 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>