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

Obtain VMNetworkAdapter details from remote VMs?

$
0
0

Can someone recommend a way to run a line like this:

Get-VMNetworkAdapter -VMName * | Select-Object name, MacAddress, SwitchName, bandwidthpercentage -ExpandProperty Bandwidthsetting | FT –AutoSize

against a list of remote hyper-v virtual servers, or does this only work on a local host? I have a list of VMs I want to run this query against to see what some of the network adapter properties are set to.



Booting a dynamically expanding VHD(X) physically without having it turned into a fixed size one?

$
0
0

Since the Windows Boot Manager is able to mount and boot VHD(X), it is at least possible to boot some Windows on it "physically" (i.e. adding an entry for it in the BCD Store on a physical machine) after installation and so in Hyper-V.

However, I notice that once I boot it physically, Windows will allocate space for the virtual disk as per the "size" of it, completing in a few minutes. So literally it will become a fixed size VHD(X).

My question, is there any way to prevent Windows from doing that? Can I boot a dynamically expanding disk physically while keeping it dynamically expanding?

How to mass import Hyper-V Virtual Machines?

$
0
0

Hi there,

I'm a beginner at Hyper-V and its related services. I do know how to import (Clone) vm but it is too slow and repetitive because I need to create 50+ more virtual machines with my dedicated server.

I searched online and found that Windows Powershell just might be the solution to my problem. But I've got totally no idea how to launch the right and proper command for the import module to work. (I tried my best to follow online guides and also Microsoft documentation on Import-VM)

On the other side, I still can't find any solution to "Mass import" using the GUI interface of Hyper-V (Hyper-V manager)

Here are some of the directories where I save the relevant files:

My Hyper-V VMs directory: C:\Users\Public\Documents\Hyper-V\Virtual hard disks

Exported VM which I want to "clone"/import: C:\1

I really need a clear and thorough explanation on how to issue the command.

Thank you

Remote Desktop and Dynamic Memory

$
0
0
We're testing Server 2008 R2 as a Remote Desktop server, running under Hyper-V 2012.  We're testing it using dynamic memory, but we're getting horrible performance on the RDS.  Anyone else using this?  If we disable dynamic memory and just give it a static amount, seems fine.

Shared Nothing LM powerhsell Access Denied

$
0
0

Hello, 

I've been doing some Hyper-V gymnastics which involved migrating bunch of VMs from one standalone Hyper-V host to another. Naturally, I resorted to scripting. I am pretty sure that I've been live migrating unclustered VMs via powershell before but now I'm receiving an "Live migration failed at migration destination host. You do not have permission to perform this operation". 

Command is run on current VM host (one migration is going from), from elevated powershell as domain admin. Authentication is credssp on both servers. Migration from Hyper-V console works...

Help please

Windows 2016 TP3 error: The TPM device on "virtualmachinename" cannot start because Isolated User Mode is off

$
0
0

Hi guys,

I added TMP virtual device to Windows 10 virtual machine guest in my Windows Server 2016 TP3 Hyper-v server. Then when try to start the VM, Hyper-V stop the startup process and show me an error saying:

The TPM device on "virtualmachinename" cannot start because Isolated User Mode is off

Some idea?

Best regards,

JD

Replication Failover VMs over to Secondary Hyper-V node

$
0
0

Hi all, My primary Hyper-V (Windows 2012) is having degraded fan hardware issue and it needs to be shutdown so HP engineer will be able to replace it. I realize for the VMs to be able to do replication failover to the Secondary Hyper-V then it needs to shutdown the VM on the Primary Hyper-V first. 

Is there anyway we can avoid downtime for the VMs on the Hyper-V ? 


Remote access Hyper-V 2016 core (No GUI)

$
0
0

So I am trying to test the new Hyper-v 2016 and I followed the steps from below to access the server remotely using Hyper-V console on  my Windows 10 PC.  I am still not able to access the server remotely a

The tutorial I used
<http://www.ivobeerens.nl/2015/08/28/manage-hyper-v-in-a-workgroup-remotely/

The error is:
Error occurred while attempting to connect to server '192.168.1.100'.  Check that the Vrtual Machine Management service is running and that you are authorized to connect to the server.

I did a run as on my MMC console and ran as the local administrator of my PC which is the same as the admin account on the server.  The only thing I see that is different is that I can't set a password on my hyper-v 2016 core and it autologons with ??? password.

I looked at the technet downloads and haven't seen any documentation on how to configure the server for remote access.

Can anyone advise me please?  Thanks!

P.S.  Do we still call it the Core version to tell others it has no GUI?  


Microsoft Converter 3.0 Fails converting Suse 12 VM

$
0
0

I am trying to convert a Linux Suse 12 VM from VMWare to Hyper-V. I've tried online and offline conversions and the conversion fails. It connects to the VCenter server, creates the snapshot, and at least starts converting the disk. I have 1.5tb free on my workspace machine. The VM I'm trying to convert is 400gb. Here is the log file from the conversion.

03/27/2016 12:19:59 -04:00  [31]  VERBOSE: Downloading VMware virtual disks from source virtual machine
03/27/2016 12:19:59 -04:00  [31]  VERBOSE: Downloading device (/3/VirtualLsiLogicController0:0) disk-0.vmdk
03/27/2016 12:19:59 -04:00  [31]  VERBOSE: Initializing (D:\VMS\MVMC\0\disk-0.vhdx) with a size of 42949672960 with preallocate true.
03/27/2016 12:24:36 -04:00  [31]  VERBOSE: End of initializing (D:\VMS\MVMC\0\disk-0.vhdx).
03/27/2016 12:42:39 -04:00  [31]  VERBOSE: Downloading device (/3/VirtualLsiLogicController0:1) disk-1.vmdk
03/27/2016 12:42:39 -04:00  [31]  VERBOSE: Initializing (D:\VMS\MVMC\0\disk-1.vhdx) with a size of 429496729600 with preallocate true.
03/27/2016 13:30:58 -04:00  [31]  VERBOSE: End of initializing (D:\VMS\MVMC\0\disk-1.vhdx).
03/27/2016 13:31:34 -04:00  [31]  VERBOSE: System.Net.WebException: The request was aborted: The connection was closed unexpectedly.
   at Microsoft.Accelerators.Mvmc.Engine.ForVMware.ExportLease.GetFiles(IDownloadAdapter adapter, String host, DirectoryInfo dirInfo, TaskContext taskContext)
   at Microsoft.Accelerators.Mvmc.Engine.ForVMware.VirtualMachine.DownloadFiles(IDownloadAdapter downloadAdapter, String toPath, TaskContext context)
   at Microsoft.Accelerators.Mvmc.Engine.ServiceLayer.Internal.MachineConversionService.ConvertToDrives(IMachineConversionRequest machineConversionRequest, IPostProgress& provisionHyperVPhase, IVirtualMachine& sourceVM, TaskContext taskContext)
03/27/2016 13:31:34 -04:00  [31]  EXCEPTION: System.Net.WebException: The request was aborted: The connection was closed unexpectedly.
   at Microsoft.Accelerators.Mvmc.Engine.ForVMware.ExportLease.GetFiles(IDownloadAdapter adapter, String host, DirectoryInfo dirInfo, TaskContext taskContext)
   at Microsoft.Accelerators.Mvmc.Engine.ForVMware.VirtualMachine.DownloadFiles(IDownloadAdapter downloadAdapter, String toPath, TaskContext context)
   at Microsoft.Accelerators.Mvmc.Engine.ServiceLayer.Internal.MachineConversionService.ConvertToDrives(IMachineConversionRequest machineConversionRequest, IPostProgress& provisionHyperVPhase, IVirtualMachine& sourceVM, TaskContext taskContext)
   at Microsoft.Accelerators.Mvmc.Engine.ServiceLayer.Internal.MachineConversionService.ConvertToMachine(IMachineConversionRequest machineConversionRequest, TaskContext taskContext)
   at Microsoft.Accelerators.Mvmc.Engine.ServiceLayer.Internal.MachineConversionService.<>c__DisplayClass6.<ConvertToMachineAsync>b__5()
   at System.Threading.Tasks.Task`1.InnerInvoke()
   at System.Threading.Tasks.Task.Execute()
03/27/2016 13:31:34 -04:00  [31]  Exception caught : System.Net.WebException: The request was aborted: The connection was closed unexpectedly.
   at Microsoft.Accelerators.Mvmc.Gui.Model.ConversionModel.ConvertGuestMachine()
   at Microsoft.Accelerators.Mvmc.Gui.ViewModels.Machine.MachineCompletionViewModel.OnWorkerDoWork()
03/27/2016 13:31:34 -04:00  [1]  Background task is complete.
03/27/2016 13:31:34 -04:00  [1]  Conversion error message is displayed.
03/27/2016 13:31:34 -04:00  [1]  Value of 'ErrorMessage' = 'The request was aborted: The connection was closed unexpectedly.'


Vincent Sprague


SHBrowseForFolder API with BIF_NEWDIALOGSTYLE flag will show a messed dialog on Hyper-v 2012 R2

$
0
0


The current work around is just not use BIF_NEWDIALOGSTYLE flag. 

This flag has been documented for 15+ years and MSDN says nothing about not using it when running on Hyper-V so this is a bug in Windows.

This impacts the installer made for hyper-v.


VHD Set, what is this and how do we use it?

$
0
0

Does anyone have a technet article or any further information on the new VHD Set disk type?

Thanks

Steve

Windows server 2012 and Exchange 2010

$
0
0

We had a company install a new server to replace an older machine.  The company setup windows 2012 server with the roles needed (DNS, AD, DHCP, etc.) and installed Exchange 2010 (some users are still Outlook 2003) in a Hyper-V instance.  While exchange is working, the virtual instance constantly asks to be promoted to a DC which we already have.  The company is stating that they had to install AD onto the exchange instance as part of the requirement of Exchange 2010.  AFAIK, exchange should not be installed onto the AD machine but into it's own space.  All roles on the exchange instance are reporting back as "red" instead of "green".

The company is stating "I have not found a way to cancel out this notification of promoting to a DC. I do know this is normal with all Server 2012 OS's. Once Active Directory is installed it wants to be promoted to a domain controller, but doesn't need to be. Also, if you were wondering why Active directory was installed, it was installed along with one of the Exchange prerequisites."

I believe that the installation wasn't performed correctly from the get go and it doesn't stand to reason that Exchange would require AD when AD is already installed on the computer albeit not in the Hyper-V instance.

Is there an easy way to get this corrected or should I not worry about it?

limited authorization capability

$
0
0

Hello,

I need to grant a AD group access to some VMs. The members in that group can do only specific tasks e.g. start VM, change settings,.. That kind of access was possible before removing or deprecating of authorization manager in 2012 R2 (http://technet.microsoft.com/en-us/library/hh831410.aspx) .

Microsoft introduced Hyper-V Administrators as local group which is not helping because members of this group have administrative privilege on all VMs.  This administration model is OK for lab not for production environment. 

is there a way to manage the VM access ? 

Many Thanks.



Not able to install Windows 2008 r2 VM on Windows 2012 r2 (non-SLAT) Hyper-V host

$
0
0

Hi Windows 2012 r2 Experts,

I need to install Windows Server 2008 r2 VM, on a non-SLAT - Dell Optiplex 755 - Intel Core 2 Quad Q6600 Processor (2.4GHz, 8MB L2 cache, 1066MHz FSB, VT) Windows Server 2012 r2 Hyper-V host, with 5GB of RAM. However, the OS installation stalled after clicking Install button at Starting Windows screen. I have allocated 1GB RAM and 2 virtual processor. Refer to Dell Optiplex 755 technical specification http://www.dell.com/downloads/global/products/optix/en/opti_755_techspecs.pdf for detail.

On the other hand, it was possible to install Windows Server 2012 r2 VM on the same Hyper-V host. As a result, this issue appears to an unsupported installation of Windows Server 2008 r2 on Windows Server 2012 r2 Hyper-V, as opposed to any hardware limitation such as RAM, non-SLAT CPU. Is this correct? Also, how much RAM would you recommend? Does this processor meet minimal hardware requirement to run Windows Server 2012 r2?

I need Windows Server 2008 r2 as part of lab exercises in the MCSE Windows 2012 r2 training.

Thanks a lot,
George

KB 2979256

$
0
0

Is there a work around for this issue which will let us fix VMs with the issue in situ?

http://support.microsoft.com/kb/2979256

Also - if i understand the problem correctly, we are not meant to upgrade the Integration Components of 2012 R2 VMs via offline servicing at all? What if there is an upgraded needed? What are the best practice methods? 

Cheers.


Capacity Planner Error

$
0
0

I am trying to use the Hyper-v Capacity Planner but keep getting an error. The Planner runs completely through and then errors out with "Errors occurred while collecting counters on primary. Check logs for more details." I check the logs and it has this error

"Exception recvd. at CollectPrimaryCounters One or more errors occurred.    at Microsoft.Virtualization.HVRCapacityPlanner.CalculateCapacity.CollectPrimaryCounters(Int32 MachineIndex)
   at Microsoft.Virtualization.HVRCapacityPlanner.CalculateCapacity.<>c__DisplayClass1.<CalculateCapacityInternalStep1>b__0(Int32 currentCounterInfoList) Inner Exception: One or more errors occurred.    at Microsoft.Virtualization.HVRCapacityPlanner.Utilities.<>c__DisplayClasse.<CountersCalculation>b__c(Int32 line)".

I have no idea what this is. All firewalls are off.


Fred Wilburn

New 2012R2 server for virtual machines only

$
0
0

Hi. I'm about to set up a new server with S2012R2 Datacenter Edition. It will be used exclusively to host virtual machines, all of which will be accessed via Remote Desktop. We have an existing domain controller with SQL and local file server duties. Also have another server with QuickBooks Enterprise and an inventory system. This server is used via Remote Desktop.

Having only used Hyper-V in a home "experimental" server (2012R2), I notice that the default setup seems to use the C drive for its storage (C:\Users\Public\Documents\Hyper-V\Virtual hard disks).  Given that, when I set up this new server, should I just be using a single partition...rather than a typical 100-125GB system and the balance data?  The drives are 4-600GB and will be a RAID5.

Any other suggestions will also be appreciated--including "Find someone with experience with VM's before you mess things up."

Thanks.

Bill

Vlan traffic stops working

$
0
0

Hello,

I have a setup with 3 VMs(ubuntu 14.04) and 2 vswitches on a windows 2012 machine:

    - VM1 and VM2 have one interface in vswitch1

    - VM3 has one interface in vswitch1 and one interface in vswtich2

    - VM1 is defined as source in vswitch1 mirror session.

    - VM3 is defined as destination in vswitch1 mirror session

    - vswitch2 has a physical adapter connected to it(Broadcom NetXtreme Gigabit Ethernet)

VM3 sees all the ping traffic on the interface from vswitch1.

I have a dummy program running on VM3 which gets all the traffic form the interface from vswitch1 and redirect it to a vlan subinterface attached to the interface from vswitch2. The interface from vswitch2 is set in trunk mode to allow all VLANs.

More concise, the scope of VM3 is to get all the traffic between VM1 and VM2 , tag it with VLAN and send it to a physical adapter.

The problem is that the tagged traffic is dropped somewhere between VM3 and vswitch2.

If I set the VM3 interfaces from vswitch 2 in trunk mode again with the same options(allow all VLANs, native VLAN 0) I can see 1 packet mirrored with VLAN and then it stops. 

Can you point me some places to investigate the dropped packets? Is it there option I need to enable?

Thank you,

Radu


VHD / VHDX file is not able to boot up after attaching to Hyper V VM.

$
0
0

Dear Server Expert,

I have create a copy of server image by using Disk2VHD in both .VHD and .VHDX format. the server is actually running Windows 8. I would like to restore the VHD or VHDX file into my Hyper V Server Running WIndows Server 2012 to become one of the VM. However, after i attach the VHD and try to boot, it was not able to boot at all and i only see cursor blinking as the picture below. I tried to increase the virtual processor and RAM, but it didn't boot up too. There is no error message at all. May i know what is happening here?

Appreciate your advice.

Regards,

Hyper-V Port Mirroring with Tagged Traffic

$
0
0

I have also asked this question the Advanced Threat Analytics forum but as this applies to Hyper-V port mirroring I figured this may be a helpful forum as well.  Below is my scenario but essentially I am looking to configure Hyper-V port mirroring for tagged traffic, can this be done and if so how?

I am attempting to test ATA and have created a test DC and ATA Gateway connected to the same virtual switch on the same hyper-v host (2012R2, all recommended patches installed). I have also enabled "Microsoft NDIS Capture" on the virtual switch and configure the DC as the source and a secondary none routable vNIC on the gateway as the destination (1.1.1.1/30, no dns or gateway). All vNICs are tagged on my test vLAN (ALL traffic must be tagged on these hosts) and I fear this may be the issue. Does Hyper-V port mirroring support tagged traffic? Is this my issue and if so how do I solve this problem.

I was initially led to this assumption due to the following link: https://cloudbase.it/hyper-v-promiscuous-mode/

Which states: "Traffic generated on a VM with a vNIC set to tag traffic with a VLAN id cannot be directly monitored on another VM, unless trunking is set on the target" and then suggests running the following command: "Set-VMNetworkAdapterVlanVM3-Trunk-AllowedVlanIdList"100,101" -NativeVlanId0"

However I tried this for my specified "Mirror" nic the gateway as well and it did not work.  It is worth mentioning that I have not yet installed the gateway and have used the Microsoft network Monitor tool in promiscuous mode as prescribed and returned no results for LDAP or KerberosV5. Any assistance would be greatly appreciated.

Viewing all 19461 articles
Browse latest View live




Latest Images