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

Migrate Hyper-v 2008 R2 into 2012 R2

$
0
0

Dears,

we are in process of migrating 8 nodes cluster with Windows 2008 R2 into Windows 2012 R2.

I have some VMs that has a pass through disks (provided from SAN(Fiber)), and used for file sharing.

what is the best practice for migrating those VMs with its disks from the old cluster into the new cluster


Samer F. Mustafa Microsoft Technical Team Leader. sf_mustafa@hotmail.com


Not working with VirtualBox

$
0
0

When I enabled Hyper-V on my Windows 10 machine, it messed with something that VirtualBox needed. I played with Hyper-V a while, and figured out eventually that VirtualBox only allowed me to create 32-bit machines. All of my virtual machines didn't even start up, because of "AMD-V not enabled" or something of that matter. I looked everywhere for solving the issue. I've played with Motherboard settings, I've looked around everywhere for AMD drivers. I even looked for Gigabyte drivers (this is my motherboard). NOTHING. I uninstall Hyper-V, and it starts up PERFECTLY.

Side note: the reason I like Hyper-V, is the machines turn on when the computer turns on; It's a different system for managing your virtual machines. I like VirtualBox because it lets you size the screen to where you like it; it allows you to do more graphical things than Hyper-V; there's no issue with seeing the grapahics of the virtual machine.

Is there any way in which I can get both Hyper-V working AND VirtualBox?

Motherboard(found from CMD):

C:\Users\Eliter>wmic baseboard get product,Manufacturer,version,serialnumber
Manufacturer                   Product    SerialNumber            Version
Gigabyte Technology Co., Ltd.  970A-UD3P  To be filled by O.E.M.  x.x

Processor:

AMD FX(tm)-8320 Eight-Core Processor

Windows OS Licensing on a Disaster Rcovery site

$
0
0

One of my customer is into DRAS (Disaster Recovery as a service), they are setting up a facility in India with 1000 machines with Windows 7 Ent Licenses for a client (A Multinational Bank) wherein, in case of a disaster the people employed in Banks will use the DRAS service providers facility and continue their continue Business as usual.

 

My Customer now has enquired for Windows 7 Enterprise License and Winowds Rental License, however Windows Rental License has not been discontinued by MS.

 

Question: Can his Client (Workers of Multination Bank) work on the Machines Licensed by the service provide without the Rental Licenses?

Guest Integration Services - Grayed out after Universal Restore from Physical to Virtual

$
0
0

 created an XPProSP3 machine and applied and tested the GIS - OK

The purpose was to create the VM drivers in this process so that I could then use Acronis UR to transfer my existing physical machine to a VM  (I have to do this for another two machines).

That worked fine save for two files that were not located by Acronis: VMBus and Hyper_V_Gen_Counter_V1

I found the one - VMBus but not the other. 
I presumed that I could re-installed GIS which would probably correct these missing files.
But when I powered up the VM 

(a) GIS was no longer working (mouse behaviour and shape)
(b) Insert GIS Set Up disk was grazed out.

Is there a way to re-install GIS?
Where may I find Hyper_V_Gen_Counter_V1? - There are unknown sites that offer these drivers but...

I have 3 days to solve this as I must re-activate XP!

Thanks in advance for any guidance,

Jean

Server migration from Hyper-v to Vsphere 6 using vConverter

$
0
0

Hi All,

I am trying to connect to hyper-v from converter to migrate powered off machines. But I keep getting unable to contact server error.

I have tried allowing the ports and application from windows firewall on hyper-v server.

I used the internet address to connect to the hyper-v server to avoid any DNS issues.

It connects when the firewall is turned off. But I can't turn the firewall off in the production environment. So it looks like firewall is the issue, which I can disable. Any other suggestions. 




What are the Optimal Logical and Physical Sector Size for VHDX on 512e drive's?

$
0
0

I'm using Intel DC S3500 SSD's in my servers.
I've checked the SSD's physical and logical sector size with the following powershell command:

Get-PhysicalDisk | sort-object SlotNumber | select SlotNumber, FriendlyName, Manufacturer, Model, PhysicalSectorSize, LogicalSectorSize | ft

The command reports that the disks have a physical sector size of 4K (4096 bytes) and a logical sector size of 512 bytes. aka as 512e disks.

I'm wondering what the optimal logical and physical sector size are when creating a new virtual .vhdx harddrive for a virtual machine with the following powershell command.

New-VHD –Path c:\virtualdisk.vhdx –LogicalSectorSize ?  PhysicalSectorSizeBytes ? –SizeBytes 128GB

I want to have the optimal settings for performance reasons, which means we'd like to reduce the amount of times aRead-Modify-Write emulation takes place because such an emulation takes CPU time, reduces disk throughput and increases latency.


  1. I would think that the guest OS (Linux, ubuntu 16.04) needs to be aware of the underlying physicalsectorsize of the actual disk/ssd, so perhaps it's best to use the default setting of 4K for the physicalsectorsize of the virtual disk?
  2. Or should I use 512 bytes for both the logical and physical settings for the VM and let the host OS/disk controller handle the rest?
  3. or perhaps it's best to use 4K for both the logical and physical virtual disk settings?


Case 2:
I also have the same scenario on a different server where windows reports both the physical and logical sector size as being 512 bytes, I think this is caused by a raid1 controller which sits between the SSD's (with 4k physical sector size, 512e) and the OS.

What settings should I use in this case? The underlying hardware would still have a 4k physical sector size, but the host OS doesn't know about this and perhaps the raid controller (Intel C222 Haswell chipset) takes care of this?


Xenserver VM to Hyper-V 2012

$
0
0

Hello Group

I had another issue here in the community and was asked to start another question regarding Hyper-V

I've created a VM, used Hyper-V manager to convert a exported Xenserver VM in the VHD format... The conversion produced aACHDX format file...   See image attached: 

This is the procedure I used to import and convert the Xenserver VHD file..

  1. Export VM as OVF
    1. Shutdown the machine
    2. Right click and Export
    3. Choose the OVF format, location, and name
    4. Next through the rest of the screens
  2. This leaves you with a VHD that we can attach to and use.
  3. In Hyper-V create a new diskless VM in your cluster share
  4. Copy the VHD to the subfolder for the VM
  5. In the settings of the VM under the IDE Controller 0 add a new hard drive
    1. Browse to the VHD and OK
  6. Convert the VHD to VHDX
    1. In Hyper-V Manager select the VM and click "edit disk".
    2. Select the VHD, Next
    3. Click Convert, Next
    4. Select VHDX, Next
    5. Leave at Dynamically Expanding, Next
    6. Browse to the VM folder (where it will create the VHDX), typically the same location as where the VHD is currently.
    7. Name it (can be the same name since extension will be different)
    8. Finish and wait for it to create.
  7. Change the VM to point to the VHDX.
    1. Edit the VM and change the virtual hard disk path to point to the vhdx instead of the vhd.
  8. Ensure it boots properly
  9. Login and remove the XenServer tools (note it will be very slow at this point), Reboot
  10. Ensure integrated services is the latest version by inserting the disk and running the update.
  11. Remove integrated services disk
  12. Change IP address as needed
  13. After saving the IP, go back in and make sure the default gateway is listed properly.
  14. Remove the old VHD file.

Note the file ACHDX extension.    Don't know why this happened..    Any help would be appreciated...

Thanks

Grant

Image

Upgrading Hyper-V Server to move VMs

$
0
0

I am really hoping that someone will be able to help me on this, because I am a little out of my league here:

I work for a small school district and am finding that I have inherited a bit of a mess with our Hyper-V servers.  Both servers are fairly nice and up to date hardware, but one runs Hyper-V Server 2012, and the other runs Hyper-V Server 2012r2... to make things more fun, both are Core installs which is very frustrating for a GUI person like me to work with.

Issue 1:
There is a RAID config problem with the newer 2012r2 server that needs to be fixed.  I was hoping to simply migrate the VMs to the older box, fix the storage array, and then move my VMs in a way that evens the load between both boxes better.  Turns out that all of the VMs on the newer server are not backwards compatible with the older 2012 server and I need a work-around.

Issue 2:
The older 2012 server has a problem of some sort.  It is joined to the domain, and I have all of the rights that I know how to have on the box, but I cannot make any new VMs because it says I do not have rights to make any... which is rather frustrating. I have tried several fixes on different forums, but nothing has worked yet.

The 'obvious' solution in my mind that would fix both issues would be to move the older 2012 server up to (or reinstall) 2012r2.  The problem here is that our site license does not include Hyper-V Server of any flavor, and I have no idea where the licence information is for either of these boxes (both came with Server 2012 installed originally, and someone changed them to Hyper-V Server 2012/2012r2 after the fact).

Can I install Hyper-v Server 2012r2 but use a normal Windows Server 2012r2 license for activation?  Would it be the end of the world to scrap both installs and just install Windows Server 2012r2 on both boxes with a hyper-V role?

Any thoughts, options, or ideas are much appreciated.  Thanks!


tombstone lifetime how much maximum time (days) it can be kept power off?

$
0
0

Hi Team,

I would like to ask if we have any issues like tombstone lifetime etc.? with Hyper-V server and how much maximum time (days) it can be kept power off? Our hyper-V server will be off for some months and just want to check any maximum time it can be kept power off ?

Any pointers will be appreciated. Thanks

Regards,

How to network

$
0
0

hi there,

This is my first Hyper-V iscsi Synology SAN enviroment.

I am unsure how to setup the network correctly.

Server = 2 physical NIC's + 1 IPMI NIC

SAN = 1 physical iscsi NIC + 4 normal NIC's

on Hyper-V there are 7 VM's (DC, File, Print, Managementserver...)

I would like to setup a Failover Teaming on Hyper-V host and setup a Management LAN.

Do i need to buy more NIC's for the Host?

What can you recommend me?

Thanks alot for your help.

Adrian

How to convert Gen 2 VM to Gen 1?

$
0
0

Dear Hyper V Expert,

may I know is it possible to do conversion from Gen 2VM to Gen 1, so I can attach the VHD into my Gen 1 Hypervisor?

thanks.

Programs not compatible with Hyper-V

$
0
0

Hello Group

I'm in the process of moving my Xenserver VM's to Hyper-V...

Are there programs that won't run in Hyper-V?   My client has Quickbooks Enterprise and Adobe products (Illustrator and their CS suite)..  Calling their Tech Support, both QB and Adobe says their products won't support Hyper-V.

What your experiences with programs that don't like Hyper-V

Thanks

Grant

sconfig Network Settings

$
0
0

Hyper-V 2012 Core install.  Single NIC plugged in and shows as up when get-netadapter is run.  Shows as ifIndex 15. However, when I run sconfig, ifIndex shows 13, and when I choose that index, I get the following error:

C:\Windows\system32\en-US\sconfig.vbs (696, 21) SWbemObjectEx: Invalid index

I have tried to set the IP via Powershell, however, I am unable to manage, ping, or rdp into the server (this was all enabled). When I run sconfig again after setting IP through PS, still shows Index 13, but with the IP I have set.

Any thoughts?

Thank you

Disable Hyper-V Console view when a VM is connected via Citrix ICA protocol

$
0
0

Hi,

I have a case where the administrators can view the users when accessing to their VMs via Citrix ICA (VDI).

However, when they connect to their VMs via RDP, the administrators cannot view the VM console from the hyper-v manager.

Please I need to assistant here. I want to secure the display from the hyper-v manager.

Is there a solution to this problem?

P2V Domain Controller

$
0
0

Hi

I have a physical Win 2012 R2 DC, which also runs DNS, DHCP and Printing services.

I am planning to virtualise it using the following method, and am wondering if anyone else has gone through the same process? From the research I have done this should work, and I'm currently in the process of confirming in my lab.

1) Disconnect DC from network

2) Boot DC in to DSRM

3) Run disk2vhd

4) Untick 'use VSS' (doesn't work in DSRM mode)

5) Copy VHD to Hyper-V host

6) Shut down DC

7) Create new VM on Hyper-V host and attach VHD

8) Boot VM and check event viewer, replication with other DCs etc.

I know it's best practice to simply create a new DC and allow it to replicate, and migrate DNS and DHCP, but this server hosts a lot of printers and it would be a huge amount of work to re-point all the clients and applications that point to this DC currently.

Just looking for some feedback/opinions.

Cheers


Hyper-v Crash IRQL_NOT_LESS_OR_EQUAL (a)

$
0
0

Hi all,

Need help finding the root cause of Windows Server Crash, the OS that crashed is Windows Server 2012 (Hyper-V Guest) and the Host is Windows Server 2008 R2.

Trying to debug with Windbg but can't understand it, this is the result:

BugCheck A, {fffff6fb40001dd8, 0, 0, fffff800018d25bc}
Probably caused by : memory_corruption ( nt!MiDeletePageTableHierarchy+9c )
Followup:     MachineOwner
---------
16.3: kd:x86> !analyze -v
*******************************************************************************
*                                                                            *
*                        Bugcheck Analysis                                    *
*                                                                            *
*******************************************************************************

IRQL_NOT_LESS_OR_EQUAL (a)
An attempt was made to access a pageable (or completely invalid) address at an
interrupt request level (IRQL) that is too high.  This is usually
caused by drivers using improper addresses.
If a kernel debugger is available get the stack backtrace.
Arguments:
Arg1: fffff6fb40001dd8, memory referenced
Arg2: 0000000000000000, IRQL
Arg3: 0000000000000000, bitfield :
bit 0 : value 0 = read operation, 1 = write operation
bit 3 : value 0 = not an execute operation, 1 = execute operation (only on chips which support this level of status)
Arg4: fffff800018d25bc, address which referenced memory

Debugging Details:
------------------

DUMP_CLASS: 1
DUMP_QUALIFIER: 401
BUILD_VERSION_STRING:  7601.17514.amd64fre.win7sp1_rtm.101119-1850
SYSTEM_MANUFACTURER:  Microsoft Corporation
VIRTUAL_MACHINE:  HyperV
SYSTEM_PRODUCT_NAME:  Virtual Machine
SYSTEM_VERSION:  7.0
BIOS_VENDOR:  American Megatrends Inc.
BIOS_VERSION:  090006 
BIOS_DATE:  05/23/2012
BASEBOARD_MANUFACTURER:  Microsoft Corporation
BASEBOARD_PRODUCT:  Virtual Machine
BASEBOARD_VERSION:  7.0
DUMP_TYPE:  1
BUGCHECK_P1: fffff6fb40001dd8
BUGCHECK_P2: 0
BUGCHECK_P3: 0
BUGCHECK_P4: fffff800018d25bc
READ_ADDRESS:  fffff6fb40001dd8 
CURRENT_IRQL:  0
FAULTING_IP: 
nt!MiDeletePageTableHierarchy+9c
fffff800`018d25bc 49              dec     ecx
CPU_COUNT: 4
CPU_MHZ: dac
CPU_VENDOR:  GenuineIntel
CPU_FAMILY: 6
CPU_MODEL: 3e
CPU_STEPPING: 4
CPU_MICROCODE: 6,0,0,0 (F,M,S,R)  SIG: FFFFFFFF'00000000 (cache) FFFFFFFF'00000000 (init)
BUGCHECK_STR:  0xA
ANALYSIS_SESSION_HOST:  XXX
ANALYSIS_SESSION_TIME:  05-13-2016 18:16:45.0464
ANALYSIS_VERSION: 10.0.10586.567 amd64fre
IP_IN_FREE_BLOCK: 0
LAST_CONTROL_TRANSFER:  from 0000000000000000 to 0000000000000000
STACK_TEXT:  
00000000 00000000 00000000 00000000 00000000 0x0

STACK_COMMAND:  kb
FOLLOWUP_IP: 
nt!MiDeletePageTableHierarchy+9c
fffff800`018d25bc 49              dec     ecx

FAULT_INSTR_CODE:  48068b49
SYMBOL_NAME:  nt!MiDeletePageTableHierarchy+9c
FOLLOWUP_NAME:  MachineOwner
MODULE_NAME: nt
DEBUG_FLR_IMAGE_TIMESTAMP:  4ce7951a
IMAGE_VERSION:  6.1.7601.17514
IMAGE_NAME:  memory_corruption
BUCKET_ID:  INVALID_KERNEL_CONTEXT_0xA
DEFAULT_BUCKET_ID:  INVALID_KERNEL_CONTEXT_0xA
PRIMARY_PROBLEM_CLASS:  INVALID_KERNEL_CONTEXT
FAILURE_BUCKET_ID:  INVALID_KERNEL_CONTEXT_0xA
TARGET_TIME:  2015-11-24T04:21:10.000Z
OSBUILD:  7601
OSSERVICEPACK:  1000
SERVICEPACK_NUMBER: 0
OS_REVISION: 0
SUITE_MASK:  272
PRODUCT_TYPE:  3
OSPLATFORM_TYPE:  x64
OSNAME:  Windows 7
OSEDITION:  Windows 7 Server (Service Pack 1) TerminalServer SingleUserTS
OS_LOCALE:  
USER_LCID:  0
OSBUILD_TIMESTAMP:  2010-11-20 16:30:02
BUILDDATESTAMP_STR:  101119-1850
BUILDLAB_STR:  win7sp1_rtm
BUILDOSVER_STR:  6.1.7601.17514.amd64fre.win7sp1_rtm.101119-1850
ANALYSIS_SESSION_ELAPSED_TIME: 3c4
ANALYSIS_SOURCE:  KM
FAILURE_ID_HASH_STRING:  km:invalid_kernel_context_0xa
FAILURE_ID_HASH:  {e1670dde-ec4b-aafd-0053-25c657509baa}
Followup:     MachineOwner

Maybe there is someone who have similar case or could read those debug care to help. :)

thank you

iSCSI Passthrough to guest VM

$
0
0

We have a Dell PowerVault iSCSI storage array. It's connected to a switch, which is in turn connected to a Hyper-V host (which has four ethernet ports connected to this switch).

We were advised by Dell that best practice is to attach iSCSI LUNs at the Hypervisor level, with MPIO enabled, and then use the Hyper-V passthrough feature to mount those disks onto the guest VMs. Previously, we'd been using the iSCSI Initiator directly on the guests.

However, this doesn't seem to work. We can mount the LUN successfully on the Host, and then attach it the Guest, but the Guest simply doesn't see it.

Appreciate any help.

Corrupted Hyper-V environment

$
0
0

I've been beating my head against the wall for a day over this and I don't know how to track down the problem.

I have two machines both running Windows 10 and Hyper-V. Each machine has several VMs defined and at least one or two running at each time. So on some level Hyper-V is working, but they are behaving very differently.

One of the machines (let's call it BadMachine) consistently returns errors for simple operations. Those operations work fine on GoodMachine.

Here's a simple PowerShell script (run as Administrator on both machines):

Test1.ps:

New-VM –Name 'new4' –MemoryStartupBytes 1GB  -Generation 2 -VHDPath C:\tmp\base-disk.vhdx

base-disk.vhdx was created on BadMachine via the Hyper-V UI and copied to GoodMachine, so it is identical. 

On GoodMachine, running this script goes as follows:

PS C:\users\Rob\Dropbox> .\Test1.ps1

Name State CPUUsage(%) MemoryAssigned(M) Uptime   Status             Version
---- ----- ----------- ----------------- ------   ------             -------
new4 Off   0           0                 00:00:00 Operating normally 7.0


Obviously, it worked.

Here's what happens on BadMachine:

PS C:\Users\Robert\Dropbox> .\Test1.ps1
New-VM : Hyper-V encountered an error trying to access an object on computer 'GOODJUICE' because the object was not
found. The object might have been deleted, or you might not have permission to perform the task. Verify that the
Virtual Machine Management service on the computer is running. If the service is running, try to perform the task
again by using Run as Administrator.
At C:\Users\Robert\Dropbox\Test1.ps1:1 char:1+ New-VM –Name 'new4' –MemoryStartupBytes 1GB  -Generation 2 -VHDPath C ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~+ CategoryInfo          : ObjectNotFound: (:) [New-VM], VirtualizationException+ FullyQualifiedErrorId : ObjectNotFound,Microsoft.HyperV.PowerShell.Commands.NewVM

(BadMachine is really named GoodJuice, don't ask).

Attempting to create 'new4' on BadMachine via the UI with the same parameters as in the script results in the following:



At least it's consistent.

Note, however, that on BadMachine, I can do the following:

PS C:\Users\Robert\Dropbox> New-VM –Name 'new4' –MemoryStartupBytes 1GB  -Generation 2 -NewVHDPath c:\tmp\base-disk-2.vhdx -NewVHDSizeBytes 64GB

Name State CPUUsage(%) MemoryAssigned(M) Uptime   Status             Version
---- ----- ----------- ----------------- ------   ------             -------
new4 Off   0           0                 00:00:00 Operating normally 7.0

So somehow operations involving an existing disk are failing. Unfortunately, what I'm doing involves attaching disks dynamically during machine creation, so this is seriously cramping my style.

Given the amazing lameness of the error messages ("error trying to access an object?" Seriously?) I am at a loss trying to figure out what's going on here. I have about 9 VMs defined on BadMachine, and while I'm tempted to just delete them all to see if that solves the problem, that would be very painful and I'd rather not do it without some assurance that it would fix the problem. There are roughly 7 VMs on GoodMachine.

Can anyone suggest a way to either fix or track down what's going on here?

Thanks in advance.

-Rob

Remote connect to HyperV Host machine from Windows 10 Console

$
0
0
Hi Guys.  I'm actually running windows 10 on both ends of my question here.  I have a Windows 10 machine that is my hyper v host box and I'm trying to connect my hyper v console on another windows 10 machine on the same network but I keep getting errors.  I've followed the walkthroughs from MS but still no go.  Does anyone have a proven walkthrough on how to setup remote administration of Hyper V host via Hyper V Console?  Thanks.

Cannot select merged drive for virtual machine

$
0
0

Hi all,

I just merged an AVHD into a VHD for a virtual machine using the Edit Disk option under the action menu after all of the snapshots had been deleted, but the VM not shut down afterwards for a long time.  I'd done this on a different virtual, and Hyper-V automatically figured out where the new drive was.  With this one, I got a progress bar regarding the merge, which filled to completion.  However, the VM refused to boot, because it can't find the AVHD file that was merged away.  When I try to change the virtual, I get a message saying:

Cannot change disk since a disk merging is pending.

However, I can't figure out how to get Hyper-V to give tell me the progress of that merge.  Any ideas?

Viewing all 19461 articles
Browse latest View live




Latest Images

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