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

Infinite loop asking for reboot when installing integration service

$
0
0

Hi All,

I use DISK2VHD to clone a windows xp sp3 to VHD and put it in a 2012 R2 hyper-v server to run.

When I try to install the integration service, it prompt me reboot to update the HAL.

But after it reboot, the same message shown and ask me reboot again, and it is just looping.

Does anyone has the same experience and how to fix it?

Thanks,


Hyper-v guest MAC are not seen external to the host, causing a problem with router/modem

$
0
0

I have Hyper-v 2012R2 with several guests. When I do an ARP on a physical PC on the same LAN/subnet as the host and guests, the IP of the guests is associated with the MAC of the host.  It's like a MAC NAT, but the IP is not NATed (stupid, but there may be a good reason).  The IP can be seen on the LAN outside of the HOST, but their MACs are the same as the host's outside of the host.  No big deal except I have an ATT router/modem device (not a good one) that only allows me to created port forwarding rules using LAN PCs that it recognizes on the network.  Even though the device can dish an IP to a guest via DHCP, it doesn't recognize it as a node on the LAN because it doesn't have it's own unique MAC (stupid, and I don't care what the reason is, if there is any).  There is no option to port forward using a manually entered IP.  Anyone seen Abbot and Costello?  That reference might be lost on a few of you.  I have some understanding and experience with networking, and that just seems plain weird to me.  All I want to do at this point is port forward to some guests. 

Is hyper-v broken?  What  kind of "switch" doesn't send along the MAC... Is there a way to change this behavior so that the guests unique MAC gets outside the host?  Should I throw the  modem thingy in the trash or just straight out the window into the street where a car or bus can make art of it...

Split volumes on a VHD?

$
0
0
Hi,

I have one 300Gb VHD file containing C: (O/S 100Gb) and D: (data 200Gb). How can I extract
each of those volumes so that they reside on individual VHD's?

So, i want to go from this:

1 x 300Gb VHD C: (O/S 100Gb) and D: (data 200Gb)

to 

1 x 100Gb VHD C: (O/S)
1 x 200Gb VHD D: (data)

Is there a tool to do this or via powershell?

Thanks

Hyper-V Planning: SLAT Concerns

$
0
0

I am currently planning on testing Windows Server's Hyper-V on my server.  My server comes a CPU that does not include SLAT support.  I read on the Internet that Hyper-V on CPUs without SLAT will suffer from graphical performance degradation.  However, I have a few questions in mind, and would hope to receive assistance here.

  1. Is the problem severe, first of all?
  2. Articles on the Internet seem to focus on graphical performance on the host, will the guest (i.e. the virtual machine) also suffer from graphical issues?
  3. If I do not perform graphical intensive work on the host, will the problem still exist?
  4. If I test the server in a headless mode, using it as a File Server + Hyper-V Server, will the problem still exist?

Thanks a lot^^

P.S. I am aware that there are work arounds, including but not limited to using the VGA driver, but I would like do that only under the worst possible scenario

Creating Hyperv VM from Remote pc (Windows 8.1)

$
0
0

Hi,

If I run the following cmd directly on the HyperV server, The VM is getting created.

But I want to run this cmd from my Win8 client so that I can create VM remotely from my Windows 8 pc.

Please let me knw the correct cmd.

$p = @{
        Computername = 'HypervSRV'
        Name = "windows8"
        Path = "\\HYPERVSRV\VMs\VM1"
        NewVHDPath = "\\HYPERVSRV\VMs\VM1\windows8.vhdx"
        MemoryStartupBytes = 1GB
        NewVHDSizeBytes = 20GB
        SwitchName = "vswitch"
    }
    New-VM @p -ErrorVariable err -ea 0
    if ($err)
    {
        [System.Windows.Forms.MessageBox]::Show($_)
    }

Thanks,
Shamir

Blue stop on a VM running Windows 2003 R2

$
0
0

We have a FTP server running on Windows 2000. We try to upgrade this FTP server to Windows 2008. We have converted the Windows 2000 server from a physical server to a VM on Windows 2008 R2 hyper-v successfully. After we upgraded windows 2000 VM  to Windows 2003 R2, we get blue stop 0000007B when booting. I have searched for the resolution. Most suggests are related to change the hardware. Any ideas how we fix this issue on a VM?


Bob Lin, MCSE & CNE Networking, Internet, Routing, VPN Networking, Internet, Routing, VPN Troubleshooting on http://www.ChicagoTech.net How to Install and Configure Windows, VMware, Virtualization and Cisco on http://www.HowToNetworking.com

Executing SCVMM PowerShell scripts via C# conditionally works depending on application type

$
0
0

Re-posting to a different forum since I believe I was in the wrong location before.

The environment is SCVMM 2012 R2. I have a series of PowerShell scripts that are executed via C# code from a variety of applications -- MVC, WCF, console, unit tests. It seems that successful connection to the VMM server is dependent on the type of application being used. For example, console apps and WCF apps can connect successfully but the same code running in a unit test or standard MVC app throw the following exception:

  

{You cannot access VMM management server SC-01. (Error ID: 1604)

Contact the Virtual Machine Manager administrator to verify that your account is a member of a valid user role and then try the operation again.}
    CategoryInfo: {ReadError: (:) [Get-SCVirtualMachine], CarmineException}
    ErrorDetails: {You cannot access VMM management server SC-01. (Error ID: 1604)

Contact the Virtual Machine Manager administrator to verify that your account is a member of a valid user role and then try the operation again.}
    Exception: {"You cannot access VMM management server SC-01.\r\nContact the Virtual Machine Manager administrator to verify that your account is a member of a valid user role and then try the operation again."}
    FullyQualifiedErrorId: "1604,Microsoft.SystemCenter.VirtualMachineManager.Cmdlets.GetVMCmdlet"
    InvocationInfo: Command = {Get-SCVirtualMachine}
    PipelineIterationInfo: Count = 0
    ScriptStackTrace: "at <ScriptBlock>, <No file>: line 1"
    TargetObject: null

I suspect that somehow, each app is running under different credentials but I cannot see how that is possible. Each app exhibits the stated behavior whether running within Visual Studio (w/ IIS Express) [running under my own account] or published to the server running under a specific specified account that definitely has permissions to the VMM environment.

This behavior is easily reproducible with the following code

-- PS Script as embedded resource

Get-SCVirtualMachine -VMMServer "SC-01"

-- C# code to load and execute script

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Management.Automation;

namespace LabManagement {

	public class HyperVVirtualMachineManager {

		public IEnumerable<Models.VirtualMachine> GetVirtualMachines() {
			var vms = new List<Models.VirtualMachine>();

			try {
				using (var rs = System.Management.Automation.Runspaces.RunspaceFactory.CreateRunspace()) {
					rs.Open();

					using (var ps = PowerShell.Create()) {
						ps.Runspace = rs;

						var assembly = System.Reflection.Assembly.GetExecutingAssembly();
						var scriptName = "LabManagement.Scripts.GetAllVirtualMachines.ps1";

						using (var s = assembly.GetManifestResourceStream(scriptName)) {
							using (var reader = new System.IO.StreamReader(s)) {
								var script = reader.ReadToEnd();

								ps.AddScript(script);
							}
						}

						var output = ps.Invoke();

						if (ps.Streams.Error.Count > 0) {
							foreach (var item in ps.Streams.Error) {
								// do something
							}
						}

						if (output.Count > 0) {
							foreach (var o in output) {
								// do something
							}
						}

					}

					rs.Close();
				}
			}
			catch (RuntimeException ex) {
				// do something
			}

			return vms;
		}

	}

}

-- Console app (Success)

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace VirtualLabManagement.ConsoleTests {

	class Program {

		static void Main(string[] args) {
			// Arrange
			var svc = new LabManagement.HyperVVirtualMachineManager();

			// Act
			var hosts = svc.GetVirtualMachines();

			// Assert
		}

	}

}

-- Unit Test (Fails)

		[TestMethod]
		public void TestMethod1() {
			// Arrange
			var svc = new LabManagement.HyperVVirtualMachineManager();

			// Act
			var hosts = svc.GetVirtualMachines();

			// Assert
			Assert.IsNull(hosts);
		}

As you can see, the code is exactly the same between the different executions but the ability to connect differs.

GetVirtualSystemThumbnailImage with VBScript

$
0
0

Hey All!

I am writing an HTA application (some of you may have seen some of my other questions), and I am now stuck on the thumbnail image of a VM. I am taking the VBScript example from here:

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

with slight modifications for root\virtualization\v2, but when I run it, all I get is a WScript.Echo "Done" and a log file with "Done" in it. I see two subs in the example to write the image (SaveThumbnailImage and PrintThumbnailImage), but they are never actually called in the script. Any attempts to call those with OutParams.ImageData error with a type mismatch.

Particularly, if you copy and paste the example, the mismatch error is on line 80 with the "stream.WriteText text".

Are the [] brackets shown in the above link required when passing the data to the sub? As in: SaveThumbnailImage(objOutParams.ImageData[])

I have seen the PowerShell examples, and I can get the PowerShell example to work, but being an HTA, I need this to work with VBScript. Has anybody successfully gotten a VBScript to output a thumbnail image? Any tips on getting this to work?

Thank you in advace!

Eric

EDIT: Tried adding the brackets [], but it throws an error "Expected ')'". Doesn't seem to like the brackets.

What exactly is being created with the ADODB.stream? Is that the issue? This one is new to me. I have .NET 3.5 and .NET 4.5 installed.









How many VM can be installed on Windows Server 2012 Standard

$
0
0

Hello,

I have a question about win server 2012 standard. I check on microsoft page and there is if I want to run many VM's than I must have datacenter. If I want to run up to 6 VM can I do it on standard or i have to buy datacenter. Is there someone who knows the line between Standard and Datacenter.

Thank you

best regards/Ultra

SQL Server 2012 Dynamic Memory

$
0
0
Does anyone know if Dynamic memory can be used for SQL 2012 on a Hyper-V 2012 VM?

There seems to be conflicting views of this, some say only static memory can be used or performance would be affected?

Migration of VMs from Server 2012 Hyper-V Hosts Cluster to Server 2012 R2 Hyper-V Hosts Cluster

$
0
0

Hello All,

We’re currently running our production VMs on a Failover Cluster of Windows Server 2012 Hyper-V Hosts. We’re planning to migrate these VMs to the cluster of Windows Server 2012 R2 Hyper-V Hosts.

I have created a failover cluster of Windows Server 2012 R2 Hyper-V Hosts, and successfully tested the HA of my new test VMs on this new cluster.

Anyone please tell me the procedure, steps and best practices to migrate these VMs from Windows Server 2012 Hyper-V Hosts to Windows Server 2012 R2 Hyper-V Hosts.

Thank you.


Regards,

Hasan Bin Hasib

import from windows 2008 to windows 2012

$
0
0

Hello;

I have a windows server 2008 R2 with 2 HPV servers, I have installed a new windows 2012 R2 std server, and would like to move the HPV from 2008 to the new 2012.

I have exported the HPV servers, but when I try to import, I get the error " Hyper-V did not find virtual machines to import from the location"

I am looking for a way to do this, there is a lot on the web, but non that have worked for me?

thx

Merge VHDX on Windows Server 2012 R2 Error 0x80070299

$
0
0
Hellofriends,I am writingstopknowifanyoneknowsaboutwhatishappeninginwithadifferentialVHDX.
Theenvironmentis asfollows:
WindowsServer2012R2Hyper-Vclustering
CVSFS1.66TBvolumeavailable
I'mtrying todoamergeof2discs,onedifferentialtowardsitsparentusingthecommandMerge-VHD,butIgeterror:
Therequestedoperationcouldnotbecompletedduetoafilesystemlimitation(0x80070299).
Thevhdxdifferenceis344GBandtheParentis722GB.
Thanksinadvanceforthehelp

Isaias

VM's disconnecting from network

$
0
0

Hello,

I recently created a remote desktop collection using windows server 2012 R2 on an HP ProLiant BL620c G7 Blade Server (which has completely up to date firmware and drivers). There are 30 VM’s running on the server, and it is running great – for the most part. My issue is that, it seems to be at random (maybe once every 48 hours), users will be disconnected from their session, and they are unable to log back into their session remotely. I can log into their session as a local user by going through hyper-v, however once I am in there I notice that I have no internet or network access. To solve this problem, I have to go onto the network adapter of the VM, disconnect the virtual switch assigned to the VM, and reconnect it again. Doing this provides remote access to the VM again.

I initially thought the issue came from the configuration of the virtual switch. The HP Blade Server has 4 10 gig NIC’s, and they were teamed into two teams (each team having 2 physical NIC’s). I created two separate external network virtual switches from each Team. I also had “allow management operating system to share this network adapter” checked. I noticed a warning on the server side when a disconnect would occur which was Event 16945 “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.” Because this error occurred at the same time as a disconnect, I assumed that this warning message was causing the problem, and I was able to resolve it by redoing the NIC team to where there of the physical NICs were teamed together and a virtual switch was created from them without the checkbox that allowed management operating systems to share the network adapter. This left one NIC available for management purposes, and I haven’t seen the error message since, however disconnects still continue occur.

I do not see any helpful information in the event logs of the client VM when one of these disconnects occur, and the users are doing nothing out of the ordinary that would cause it to happen. In fact this problem has happened when a user has been disconnected from their machine for over 10 hours.

Anyone have any thoughts as to what is going on here?

Virtual Machine server on HyperV disconnects from the network

$
0
0

I have an issue with one of the virtual machine on my HyperV Server. One Virtual server disconnects from the server time to time. I tried pinging to the server from an external machine which is in my LAN and getting error "Request Timed Out" .

I also tried pinging from another Virtual Server which is in the same node and ping request was successful without any issues.

As the server having the problem is a database server most of the time when the user works on the application it gets disconnects.

A prompt reply will be highly appreciated.


Windows 8.1 - Hyper-V Virtual Switch fails to create

$
0
0

I'm running into a problem with creating a new virtual switch on my Windows 8.1 RTM box. Frist time attempt at Hyper-V on this system.

The error I get is as follows:

Error applying Virtual Switch Properties changes

Failed while creating virtual Ethernet switch.

switch create failed, name= 'B57B7B7B-64314AF5-AB8F-4521CBAA9FFBA', friendly name = 'New Virtual Switch': The system cannot find the file specified. (0x80070002)

The steps I have taken to try and resolve this issue.

1. Uninstall and reinstall Hyper-V...numerous times - no change.

2. Uninstall Hyper-V, reboot, uninstall NIC, reboot, reinstall NIC, reboot, reinstall Hyper, reboot - no change.

3. Uninstall it all again. Get new NIC drivers, for ASUS Sabertooth 990FX, first gen.  Reinstall it all again - no change.

4. Updated BIOS, and check for virtualization, and DEP are enabled. - no change.

5. User powershell to create virtual switch - no change.

6. Tried resetting Hyper-V networking using the netcfg commands posted here, failed, file not found.

Any help to resolving this would be greatly appreciated.

Thank you,

Sean

Hyper V Manager doesn't show all nodes

$
0
0
I have 5 nodes in HyperV... Say HV01,02,03,04,05 which shows correctly in Fail over Cluster Manager. But it doesn't show up in HyperV Manager. 

The HyperV Manager just shows 3 Nodes, say 01,02,03. What could be the possible issue?

A reply will be highly appreciated....

Problems with Hyper-V machine management

$
0
0

Hello i am having a problem with my server 2008 hyper-v server. I have 2 virtual server on the hyperv, one is SBS2008 virtual server and the other is terminal server. ive had power failure a couple of days ago and from then i cant set anything on my VMs...My VMs actually work when i restart the host server but then i cant do anything accept turning off the machine. The host server is in a domain of the sbs2008.

When i click settings on the machine i just get an error:

Cannot access the settings for the selected virtual machine.

Content
The computer 'localhost' failed to perform the requested operation.

I checked event viewer and i got this error:

Event ID: 14050

Source: Hyper-V-VMMS

Failed to register service principal name.

I tried restarting the host server it didnt helped. For my TS server i created a new VM and on that vm everything works normal, but i cant delete the old VM because i got the same error as mentioned above. Did somebody had the same problem?


Hyper-V VSS writer ecnouter errors during taking VSS snapshot on Windows 2012 R2

$
0
0

When taking VSS snapshot with Hyper-V VSS writer on Windows 2012 R2, there are frequently some warning/error logs in Windows Event log. This will make the Hyper-V VSS writer goes to a bad state and in BCD, the BACKUP_METADATA is also missing for the problematic VM.

The logs in Windows Event log are as below:

In Windows Log->Application, there will be logs as:

A VSS writer has rejected an event with error 0x800423f4, The writer experienced a non-transient error.  If the backup process is retried,

the error is likely to reoccur.

. Changes that the writer made to the writer components while handling the event will not be available to the requester. Check the event log for related events from the application hosting the VSS writer.

Operation:

   PrepareForSnapshot Event

Context:

   Execution Context: Writer

   Writer Class Id: {66841cd4-6ded-4f4b-8f17-fd23f8ddc3de}

   Writer Name: Microsoft Hyper-V VSS Writer

   Writer Instance ID: {fec29c4d-410b-4854-96b4-9637f3a24fdc}

   Command Line: C:\Windows\system32\vmms.exe

   Process ID: 2024

In Hyper-V-VMMS there are logs as:

Could not create backup checkpoint for virtual machine '********': Overlapped I/O operation is in progress. (0x800703E5). (Virtual machine ID 2AD8D389-65AE-45F7-89F8-FDF2F08CE3C2)

In Hyper-V-Worker there are logs as:

'******'has encountered a fatal error.  The guest operating system reported that it failed with the following error codes: ErrorCode0: 0x7A, ErrorCode1: 0x10EC78, ErrorCode2: 0xC000000E, ErrorCode3: 0x1BA09BE0, ErrorCode4: 0x21D8F000.  If the problem persists, contact Product Support for the guest operating system.  (Virtual machine ID 2AD8D389-65AE-45F7-89F8-FDF2F08CE3C2)

'******' has encountered a fatal error.  The guest operating system reported that it failed with the following error codes: ErrorCode0: 0xEF, ErrorCode1: 0x11F2780, ErrorCode2: 0x0, ErrorCode3: 0x0, ErrorCode4: 0x0.  If the problem persists, contact Product Support for the guest operating system.  (Virtual machine ID 16A22441-2ECB-474A-8998-ECA6102DE5AC)

'******'has encountered a fatal error.  The guest operating system reported that it failed with the following error codes: ErrorCode0: 0x7A, ErrorCode1: 0x119AEF8, ErrorCode2: 0xC000000E, ErrorCode3: 0x154C9860, ErrorCode4: 0x335DF592.  If the problem persists, contact Product Support for the guest operating system.  (Virtual machine ID A0CD6CF9-529F-4465-AD32-7A7D60069768)

The problematic VMs are with Windows OS, Windows 2008R2, Windows 2012 R2 and Windows 8.1.

My question is:

What is the cause of this problem? The event logs are not understandable at all.

How should I fix this problem?

Upgrading from evaluation to evaluation

$
0
0
For a lab I am to upgrade a windows 2008 r2 evaluation to a windows 2012 r2 evaluation in a VM. The instructor insists that it can be done and that someone from a previous class has already done it. The system meets all requirements. How can it be done if at all.
Viewing all 19461 articles
Browse latest View live




Latest Images