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

Live Migration Error - Migration did not succeed. Not enough disk space. (But there is plenty)

$
0
0

Hello-

I'm trying to do a shared nothing live migration between two Windows Server 2012 machines.  Unfortunately, I'm met with an error message of "Migration did not succeed. Not enough disk space at xxxx." when I attempt it.  The virtual machine is about 245 GB total and the destination has 1.54 TB free.

From what I can tell, the free space check is checking to see if there is enough free space on the target server's C partition instead of the D partition.  The D partition is the target for both the virtual machine and its VHDs.

The problem sounded kind of like what is described by KB2844296 (https://support.microsoft.com/kb/2844296), so I tried to download and install the hot fix.  The hot fix installer states "The update is not applicable to your computer."  I appear to be out of options.

I'm hoping someone else has run into this issue and has a workaround.  I don't see that there is much more that I can do short of shutting the virtual machine down, exporting it, and moving it manually.  I'd much rather use live migration.


Direct Attached Storage LUNs Performance Slow compared to VHDx

$
0
0

Hi,

We have a problem with performance on pass-thru disks on our VMs and Hyper-V hosts. When we directly provision LUNs from 3PAR via Fibre HBAs the performance is shocking (diskspd tests). However, when we use a VHDx file stored on the same LUN the performance is nearly 3 times faster.

Surely this doesnt sound right. We also tried provisioning a SSD volume from our 3PAR but the performance on this is the same compared to VHDx. How can VHDx be faster than SSD volume. Anyone got any ideas on this? What sort of performance do you see on your pass-thru disks compared to VHDx.

Really struggling to figure out what could cause should dramatic difference. Any help or suggestions highly appreciated.

The diskspd parameters i am using are: -o8 -t1 -c25G -d120.

Thank You


Hyper V 2012 R2 ISCSI Target Installation

$
0
0

Hello All,

Im attempting to create a DR Hyper V Cluster environment. I have 4 Dell R805's with no HDDs and an EMC Clariion SAN. I have created a Storage Pool with 4 separate luns. What I would like to do is have each server boot lun on the SAN. However, in the installation process, I can not seem to get 2012 R2 to see any ISCSI Luns nor anywhere to specify ISCSI Target initiator. I have tried to specify the nic drivers, however that yielded no where.

Any guide or advise on how I can go about accomplishing this?

Kind Regards.

[URGENT] : CPUId on HyperV

$
0
0
We have this Win2k12 HyperV role installed and we detect whether the guest is Hyper-V is not using the CPUId instruction for x86 and x86_64 processor.

The below is on a host. I thought only guests were supposed to get the CPUID as Hyper-V or "Microsoft Hv" when you install linux or windows inside the guests. It works fine for all the guests I have tested even of AWS.

But for host it is like giving me this value and it doesn't happen for Vmware ESX, KVM host, Xen host ie it gives an empty string ('\0') for all three.

I don't know maybe it is a design decision or maybe you support nested guests. I really don't know the technology . It would be really kind of you if you can get me the contact or answers for this. If you are not the right person, please let me know how to go about this ?


The below code snippet is what we use .


static const char *IsGuestType(void)
{
   int idx[4];
   static char cpustring[128];
   memset(cpustring,'\0',sizeof(cpustring));
   __cpuid(idx, 0x40000000);

   strcpy_s(cpustring,(const char *)((int*)idx+1));
   strcat_s(cpustring,(const char *)((int*)idx+3));
   strcat_s(cpustring,(const char *)((int*)idx+2));

   return cpustring;
}

C:\Users\hyperadm\Desktop>cpuid  (on host)
Microsoft Hv

Move VM with Pass Through Disk

$
0
0

Hi!

We need to move a windows 2008 VM with a Pass Through Disk hosted on a windows 2008 R2 Hyper-V server to a Windows 2012 Hyper-v Server. How can we move the pass through disk data as MS SQL Server is installed on this disk?

Thanks.

Windows Server 2008 R2 Nesth problem

$
0
0

Hi All,

I need to setup a network of Windows Server 2008 R2 machines in Hyper-V (for learning SQL Server). I have succsselly setup the domain controller and 4 other servers.

However, the last server is a Core editition and Netsh gives me 'Element not found' error message when I type 'Netsh interface ipv4 set address “Local Area Connection” static 10.10.10.40'.

In case of the not core editions this kind of commands worked. Could you help me with this as I am totally lost in the world of Windows Server?

Many thanks.

P.

We are trying automate shutdown VM listed in hyper -v using C# &WMI?

$
0
0

We are trying to automate shutdown VM listed in hyper-V using C# WMI? I think there is difference between VM shutdown and VM turnoff?I got the requeststate change value for turnoff(that is 3), what is the requeststate change value to shutdown VM?

Thanks in advance.

Venkatesh

Cannot Replicate VM

$
0
0

Hi

We are using Server 2012 (not R2), we have a 4 node Hyper-V Cluster and a 2 node SOFS with about 70 VMs.  We have been using this setup for about 15 months successfully.

We have also been using Hyper-V Replica successfully for this amount of time for 2 SQL servers and various other servers such as Terminal Servers and File Servers.

We have rebuilt one of our SQL Servers and have setup replication again for it however as soon as Initial Replication has completed the VM goes into "Resynchronisation Required" state.  If I then Resume Replication the result is the same - Initial Replication works but as soon as that is done we go back to "Resynchronisation Required".

We are replicating over a dedicated 100MB/s lease line and the remote storage has 4 X 15K drives in a RAID10 and is used for nothing but this SQL Server.  The combined size of the Primary VMs OS, DB & Logs VHDX drives is approx. 500GB.

I have run the replication overnight when no one is using the systems and backups have completed.  I have also tried to do the Initial Replication via external media but before I have even imported the Primary VM into the Replica server we go into "Resynchronisation Required".

Historically speaking this SQL Server has replicated without issue.  We are using the EnableWriteOrderPreservationAcrossDisks  cmdlet to keep each disk in sync.

Does anyone know what would cause a VM to go into this state so quickly after Initial Replication?

Many thanks


High Latency rate in VM's running on Windows server 2012 Hyper V core

$
0
0

Dear all.

High Latency  rate in VM's running on Windows server 2012 Hyper V core . When I ping to server , I get high latency.I have disabled the VMQ as well as updated the drivers & firmware of Network card

Physical host model : Dell R 720

VM OS : Windows server 2012 R2

Many Thanx

Amol

Assigned Memory vs Startup RAM

$
0
0

Hello all

Hyper-V on Windows 2012. The VM is Windows 2008 R2.

Question: I assigned this VM to use 2048 MB for startup ram. In the assigned memory, it is using 3418 MB.

Should I re-adjust startup ram to 4096 because it is using more memory?

How do I find out what Virtual Machines are hosted on a server?

$
0
0

How do I find out what Virtual Machines are hosted on a server?

I am working in a on a Windows 2008 box?

Thanks,

Ben


Mr Shaw

root\virtualization\v2 - ApplySnapshot method parameters? Invalid State?

$
0
0

Good morning all,

Tried posting this in the scripting section, but I was advised to try here. Using a combination of the WMI Code Creator example, combined with the method to get the VM object from Microsoft's root\virtualization\ example of ApplyVirtualMachineSnapshot, (no VBScript example for V2)

https://msdn.microsoft.com/en-us/library/cc136767(v=vs.85).aspx

I am trying to put together a VBScript to apply a snapshot, but I keep getting errors 32773 (invalid parameter) or 32775 (invalid state). I know the VM and snapshot are in a state that can be applied, because I can do it from the Hyper-V Manager console, but no matter what property I try fails with one of those two errors. Passing the InParam as ".Path" ".InstanceID" ".ElementName" or anything else results in error 32773, but ".Path_.Path" gives a 32775 which makes me think that is the right parameter. Why wrong state error?

This one is driving me insane. I would appreciate any help in figuring this out. The full script is below. Thank you in advance!

Option Explicit

Dim strComputer, strVM
Dim objWMIService, objShare, objItem, objVM
Dim SnapList, Snap, SnapShot, VMList
Dim objInParam, objOutParams

'On Error Resume Next

' Strings will be passed as arguments once this is working
strComputer = "<HVServer>"
strVM = "<VMElementName>"

' Connect to host server's WMI
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\virtualization\v2")

' Obtain an instance of the the class using a key property value.
Set objShare = objWMIService.Get("Msvm_VirtualSystemSnapshotService.CreationClassName='Msvm_VirtualSystemSnapshotService',Name='vssnapsvc',SystemCreationClassName='Msvm_ComputerSystem',SystemName='" & strComputer & "'")

' Get VM object from function
Set objVM = GetComputerSystem(strVM)

' Just for testing sake, grab all snapshots and match to snapshot name
Set SnapList = objWMIService.ExecQuery("SELECT * FROM Msvm_VirtualSystemSettingData WHERE VirtualSystemType = 'Microsoft:Hyper-V:Snapshot:Realized'")
For Each Snap In SnapList
 If inStr(Snap.ElementName,strVM) Then
  msgBox Snap.Path_.Path
  ' Successfully finding snapshot object here
  Set SnapShot = Snap
 End If
Next
If (Err.Number <> 0) Then
 msgBox  "Err.Number: " & Err.Number & vbCrLf & _
   "Err.Description: " & Err.Description, _
    0+16,"Error!"
 WScript.Quit(1)
End If
 
' Obtain an InParameters object specific to the method.
Set objInParam = objShare.Methods_("ApplySnapshot").inParameters.SpawnInstance_()
objInParam.Properties_.Item("Snapshot") = SnapShot.Path_.Path

' Execute the method and obtain the return status.
' The OutParameters object in objOutParams is created by the provider.
Set objOutParams = objWMIService.ExecMethod("Msvm_VirtualSystemSnapshotService.CreationClassName='Msvm_VirtualSystemSnapshotService',Name='vssnapsvc',SystemCreationClassName='Msvm_ComputerSystem',SystemName='" & strComputer & "'","ApplySnapshot", objInParam)

' List OutParams
msgBox  "Out Parameters: " & vbCrLf & _
  "Job: " & objOutParams.Job & vbCrLf & _
  "ReturnValue: " & objOutParams.ReturnValue, _
   0+16,"Error!"


'-----------------------------------------------------------------
' Retrieve Msvm_VirtualComputerSystem from base on its ElementName
'-----------------------------------------------------------------
Function GetComputerSystem(vmElementName)
 Set VMList = objWMIService.ExecQuery("SELECT * FROM Msvm_ComputerSystem WHERE Caption = 'Virtual Machine'")
 For Each objItem In VMList
  If UCase(objItem.ElementName) = UCase(vmElementName) Then
   Set GetComputerSystem = objItem
  End If
 Next
 If (Err.Number <> 0) Then
  msgBox  "Err.Number: " & Err.Number & vbCrLf & _
    "Err.Description: " & Err.Description
  WScript.Quit(1)
 End If
End Function


Migration of VMs from Server 2008 R2 Hyper-V to Server 2012 R2 Hyper-V

$
0
0

Hello-

I suspect this question has been asked and answered, but heck if I can find it!  I am looking to move 3 or 4 virtual machines from a Windows Server 2008 R2 Hyper-V host to a new Windows Server 2012 R2 Hyper-V host.

Both hosts are using DAS only - no SAN or NAS involved.  Also, neither is clustered.  Basically, about as simple of a Hyper-V setup as you can get.

I have System Center VMM 2012 R2 installed on my 2012 R2 host and SCVMM VMM 2008 R2 installed on my 2008 R2 host.  In order to use the built-in migration capability of 2012 R2 to migrate the VMs from 2008 R2 to 2012 R2, I'm assuming I need to install a SCVMM 2012 R2 agent on my 2008 R2 box.  I do not want to do this due to the fact that I have Citrix XenDesktop running on that host, along with other VMs, and do not want to risk fouling it up.

With this backdrop, can someone please suggest a migration method - export/import, file copy, and / or use of SCVMM?

Thanks

Configured everything with hvremote, Still can't connect to server - Win7 - HV2012

$
0
0

Hi there,

I'm trying to get a Windows 7 machine in domain A to work with a hyper-v server in domain B.

I setup the HVS and configured everything with hvremote and myriads of other stuff from the net. I had problems with the firewall but then go that to work. Now the /show runs completely through (6 steps on the server, 10 steps on the client) with just a few warnings. The server tells me the firewall is not active and the firewall is not running (which i hope can be ignored) and the client tells me thatthe version of hyper v on the server is newer than the version on the client

The problem is that, when i start the Hyper-V Manager it tries to connect to the management tools, fails and tells me a connection couldnt be established to the hyper-v server

I have a local user "serveruser" on the server and added him to the administrator group. i also have a local "serveruser" on my client, with the same password, and all tests are being done from them.

Any clue on what i can do?

Thanks in advance!

David 

ps, also did the thread in german to reach the maximum of people: https://social.technet.microsoft.com/Forums/de-DE/a6ad0505-08ba-44f1-9687-b6718a1a68e5/hyper-v-server-konfiguriert-kann-mit-manager-nicht-verbinden-win7-hv2012?forum=windows_Serverde

VM - query to sql performance (VM vs old hardware)

$
0
0

Hi,

I am strugling with a performance issues.

We have a .net based application with 4 app server handling request of 1000 ritch clients. They handle batch jobs in the night. 

when we look at overall performance, the VM's are very fast

BUT transactions are 25% slower then the OLD hardware.

does anyone can give me a clue on how to troubleshoot this?

thx

Lieven


Windows 7 x64 Professional does not boot after install

$
0
0

Hello.

I created a Windows 7 VM in Windows Server 2012 R2 Standard Hyper-V, all the installation process done successfully, but after installation, it failed to boot and shows a black screen, and didn't boot after it.

Following is the event log occurs.

'Win-7_QA-Testing' was faulted because the guest executed an intercepting instruction not supported by Hyper-V instruction emulation. If the problem persists, contact Product Support. (Virtual machine ID 5B827557-7009-4D83-AA7C-26A45651EC3A)

           VmName           Win-7_QA-Testing
VmId5B827557-7009-4D83-AA7C-26A45651EC3A
FailureCategory<not a known problem>
InstructionByteCount 0
InstructionBytes
Rax0x10
Rbx0x80
Rcx0x0
Rdx0x80
Rsp0x200
Rbp0x6e08
Rsi0x25da4a
Rdi0x7da4a
R80x0
R90x0
R100x0
R110x0
R120x0
R130x0
R140x0
R150x0
Rip0x9d
Rflags0x10002
FpControlStatus7F030000000000000000000000000000
XmmControlStatus0000000000000000801F0000FFFF0000
Cr00x10
Cr20x0
Cr30x0
Cr40x0
Cr80x0
Xfem0x0
Dr00x0
Dr10x0
Dr20x0
Dr30x0
Dr60xffff0ff0
Dr70x400
Es0002000000000000FFFF000020009300
Cs00000B0000000000FFFF000000B09F00
Ss0002000000000000FFFF000020009300
Ds0002000000000000FFFF000020009300
Fs0002000000000000FFFF000020009300
Gs0002000000000000FFFF000020009300
Ldtr0000000000000000FFFFFFFF00000000
Tr0000000000000000FFFF000000008B00
Idtr000000000000FFFF0000000000000000
Gdtr000000000000270000002B0000000000
Tsc0x3b48531f8c6
ApicBase0xfee00900
SysenterCs0x0
SysenterEip0x0
SysenterEsp0x0
PendingInterruption0x0

Any help will be appreciated.

Thanks





Set VLAN ID on a virtual machine network on Windows 2012

$
0
0

I'm currently working in C# consuming Hyper-V V2 WMI API to do different tasks related to virtual machines. I've not been able to figure out how to get/set VLAN ID. I've found many links on net pointing to PS HyperV lib exploring "Get-VMNICVLAN" and "Set-VMNICVLAN" but they dont seem to be working from me as Nic.connection[0] always seem to be null in my case. Perhaps that only works with Windows 2008 Hyper-V.  

Also I'm not familiar with WMI scripts much so converting that code to C# is being a pain. Can someone please tell me exactly how to do so in C# using WMI.

Regards

Usman


Hyper V Manager

$
0
0

hi guys,

i need your help with the following:

I installed the latest version of hyper v manager from the microsoft website and after enabling it from the "turn on windows feature in the control panel" i dont see the option to create a virtual machine, so i am puzzled as to why?

Hyper V Manager

$
0
0
Hi guys i wanted to ask whats the latest version of hyper v management for people running windows 7 because from the microsoft site the latest is v6.1 , but i know some one who is running v6.3  but his running windows 8.1?

Hyper-V rolled back itself ?

$
0
0

Hello,

Hopefully someone can manage to help me since we have a lot crucial data we need to get back. 

So, this morning I turned off the HP Proliant server (as I've done so many times) due to relocation. When I tried turning it back on nothing happened besides the fans starting... I thought damnit! So I took out the harddrive and saved our .VHD file we've been using through Hyper-V.

I hooked up to my own Oracle Virtualbox and booted the image up only to find that there only was data from 2010, nothing from 2010 up until today.

Does anyone have a clever idea on what might cause this ? 

Best Regards
Kristian P

Viewing all 8743 articles
Browse latest View live


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