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

Hyper-V 2008 VM Error - "An error was detected on device \Device\Harddisk1\DR1 during a paging operation"

0
0

Hi

Server 2008 R2 Datacenter Hyper-V Cluster (3 Hosts in Cluster).

One of my Server 2008 R2 Standard VM's keeps rebooting itself every 3 minutes.

Got the VM into Safe Mode with Networking, stays up no problem. In Event Logs, there are thousands of Disk Event ID 51 errors ("An error was detected on device \Device\Harddisk1\DR1 during a paging operation").

Initially I thought this was a Hardware issue, but this is not the case (running on HP Storageworks MSA2312i SAN). All disks fine, all firmware on both Disks and Controllers upgraded to latest version.

Any ideas what may be causing this? The error is not present in any other VM's. Moving the VM across different hosts does not resolve the issue. Neither does moving the vhd files to different areas on the SAN.

Thanks


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.

CentOS 6.5 on Hyper-V

0
0

hello guys, I installed Centos 6.5 on Hyper-V  using Win 2008 x64 Standard

if set the CentOS box to DHCP internet connection works fine.

but if I set a static IP there is no internet connection.

any ideas guys on some work around on how to make a static IP works for Hyper-V with Linux  box on it.

 

Thank you.


Every second counts..make use of it. Disclaimer: This posting is provided AS IS with no warranties or guarantees and confers no rights.
IT Stuff Quick Bytes

BSOD ONLY after logging in.

0
0

I have a Hyper-V Windows Web Server 2008 R2 (Core) that's only role is an FTP server. I know that the GUI is a blank desktop and task manager on a core server, but I cannot even access that.  Every time I connect to the server (either via RDP or Virtual Machine Connection) I get a BSOD after I enter my credentials and the server reboots.  The BSOD is not the same every time either, most of the time it's 0x00000050 though.

I can access remote powershell, psexec to the command line, issue remote commands, use RSATs, etc... but I cannot access the "desktop" i normal mode (I can in safe mode).

I didn't mind too much because I could do everything I needed to do remotely.  But just recently we've developed a problem where OSX devices download files from the FTP EXTREMELY slow and the server needs to be rebooted.  I'm not a fan of the "reboot fix" and need a more permanent solution.

Here's some more technical specs:

Host server: Server 2008 R2 Enterprise SP1, Dual Xeon E5645, 48GB RAM

Host server uses iSCSI connection to a Windows Storage Server Standard w/ a Xeon E5620, 12GB RAM so each VHD is using it's own iSCSI LUN and therefore independent (and redundant) spindles to increase I/O throughput.  The Storage server uses a 10Gbps connection directly to the host server (iSCSI data is not sent over our main network).

Client Server: Windows Web Server 2008 R2 SP1 (core), 1 CPU, 1 GB RAM.

Here's what I've tried so far:

1. Create a new virtual server and attach a copy of the FTP servers drive

2. Apply all windows updates from the internet and not our WSUS server

3. Remove our anti-virus from the client

4. Remove SCSI virtual devices from the virtual server

5. Remove all integration services

6. Using safe-mode, used autoruns to disable all services

Normally I'd just rebuild the server and copy all the necessary info over, but the FTP server has dozens of local users (and their passwords) that need to be migrated to the new server.  I guess this can be done with the migration kit, just not on windows web server (booo).  A 3rd party tool is an option as well if that's all there is available.

Any help will be greatly appreciated.

where is enable all monitors option?

0
0

I have windows 10 setup on hyper-v and i cannot find the option to use all my monitors.  It used to pop-up when connected to the VM, but i disabled it and now I cant figure out how to turn it back on.


Excluding a VHDX Attached to the VM Being Backed Up From Hyper-V Host

0
0

Is it possible to backup VM's using wbadmin or powershell's wbbackup and also exclude certain vhdx attached to the vm's being backed up.  For example I have a server DC1.  It has a C:\, D:\, and E:\ drive.  The E:\ drive is drive that contains items I don't care if lost but also has a lot of data so I don't want to have to back it up (for times sake).  

I've tried several things with excluding files but it didn't seem to work.  I don't want to do backups from inside the VM as I have multiple VM's needing backed up.

Thanks!




Problems after DC move

0
0

OK, so we have two Win 2012 servers, running Hyperv.

One only has one host.

Simples, I will move that one into the same DC (same LAN in all DCs).

The Server starts and uses the correct WAN address, I can RDP in and do all as before. The VM ( Centos 5.6) will start and run fine.

But I have no network access from or to the VM, this is not FW related as the FW is disabled.

I have logged into the guest VM and can get no WAN access.

Any tips, or pointers to get this, once working, machine up serving again?

Thanks

SCVMM 2012 SP1 Virtual Switch on Cluster Node Disappears

0
0

I have been running into an interesting but an alarming issue with virtual switches. I have recently built a 4 node Server 2012 Hyper-V failover cluster. I have built numerous 2008R2 and 2012 Hyper-V clusters before, so I am pretty familiar with the process. I have rebuilt my VMM due to software problems, and on this new cluster, I have configured the virtual switches with nic teaming on 2 of the virtual switches.

I have 4 clusters being managed by this VMM.. and this newly built cluster keeps losing all of the VMM virtual switch configurations, meaning if I go to properties on the problem host and click on virtual switches, its blank. Refresh host cluster flags all virtual machines in this cluster as "Unsupported Configuration," making the vm unmanageable via VMM. 

Information (26844)
Virtual switch (Virtual Switch Name) is not highly available because the switch is not available in host (One of the Hyper-V Hosts).

Recommended Action

All virtual servers on that host still has connectivity, as all virtual switch configs are normal when looking at it with Hyper-V Manager or Failover Cluster Manager..

The workaround is to evacuate the host using Failover Cluster Manager and reboot the host. Then refresh the host. Then refresh the VM's. I cannot consider this a 'workaround' as I cannot be rebooting my hyper-V hosts every week.. and migrating virtual servers constantly just for this reason. (DPM backups have a FIT with csv's if it tries to backup a vm on a same csv as another vm thats being migrated.)

I have been wrestling with this problem for a few weeks now. The cluster has been slicked and completely rebuilt.. Still same problems. Has ANYONE else out there seen this issue? Does ANYONE out there suggest a way to go about further troubleshooting this issue? 



Hyper-V Host Backup failure. 2012 R2 Host: VSS Error 0x800423f4, 2008 R2 VM:

0
0

   I have a new Windows 2012 R2 Hyper-V Server host running 6 VM's.  The host-based wbadmin (Windows Backup) seems to be running fine for all VM's except one.  Backing up the server produces the following results for this VM running Windows 2008 R2:

  • Host wbadmin log: Detailed error: ERROR - A Volume Shadow Copy Service operation error has occurred: (0x800423f4)  The writer experienced a non-transient error.  If the backup process is retried, the error is likely to reoccur.
  • VM System Event Viewer: Event ID: 1, VDS Basic Provider, Unexpected failure.  Error code: 490@01010004 (and also D@01010004)
  • VM System Event Viewer: Event ID 58, partmgr.  The disk signature of disk x is equal to the disk signature of disk x.
  • VM: After a failed backup I see console messages about drives needing formatted.  This is, from what I understand, part of the Hyper-V VSS backup trying to create VSS volumes on the VM.

   I've tried:

  • Rebooting the VM.
  • Running the backup from different Hyper-V hosts (shared-nothing live migrations to move the VM).
  • Making sure that Integration Services on VM are up-to-date.

   The "problem" VM is running Active Directory, DHCP, DNS, Symantec Endpoint Manager, and Symantec Endpoint client.  Before the backup occurs all VSS Writers are "Stable" with "No error".

   Can anyone help me by pointing me in the right direction to try?  I'd certainly appreciate it!

Thanks!

Hyper-V Manager fails to boot from eith an image or disk drive

0
0
I have created a Hyper-V system and originally have gotten an iso file and a Windows Server 2003 CD to boot in order to create a new virtual server.  However recently I found that in either case, I cannot create a new virtual server either from a boot CD or an iso image.  I get the message "Boot failure. Reboot and select proper boot device or Insert Boot Media in selected boot device". I have made sure that none of my existing virtual machines are running when I try doing this.  I have been searching the web but have not found any references to this problem.  Patches are being maintained on the host server and any virtual machines I create from existing VHD's work fine.  I have tested the CD to insure that it will boot on another system.  Any help will be appreciated.

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

VHD not start after disk2vhd

0
0

Hi everybody!

I wish to virtualize Windows Server 2008R2 (IBM 7947K6G System x3650 M2 и WinServer 2008R2) via disk2vhd v1.63 (just disk С). All is ok and after progress I have a VHD file.

I copy this VHD to new location and attach it to fresh created VM (Hyper-V 2012). 

After I try to start this new VM I see black screen and blinking white cursor on left upper left corner. That's it!

I've tried lots of ways to solve the problem:

1. I try to boot from different ERD and DART, they all say that the this version is NOT compatible with your system (and they are certainly working on dozens of previous servers).

2. I try to boot from the installation image of WinServer (from this iso I install this system before) when attempting to enter the recovery mode it is displays a message similar to paragraph 1.

3. I tyr to boot from different LiveCD (3rd party), there I see what this VHD really has a working system (drive C has a NTFS partition and another section in RAW format plus one part in fat32. They both 100 mb, but the C drive partition is not marked as active).

4. I try via Diskpart make C drive active, and I get error that it is can not be made ​​active GPT to MBR. I tried to make convert MBR, and I got an error that this type of disc can not be converted to MBR.

5. Tried to virtualize this server using MS SCVMM 2012. But agent is not start on the target physical server (but that's another story.)

I have investigation via internet and I understood that the problem is faced with the fact that my physical server have uEFI and Hyper-V have BIOS. But I havent found any proof that this is my problem.
At this point, the server successfully migrated to a new virtual machine (data transferred using standard tools and wizards), so the problem is not so urgent.

Just for the future, I would like to find out why the VHD does not start correctly (VHD to the C drive I have so I can make some tests now)?

ps http://social.technet.microsoft.com/Forums/ru-RU/virtualizationru/thread/a31151f9-1afc-4b9b-b106-f408cc7e2f37/

Losing Access to Cluster Shared Volumes: Cluster Shared Volume 'Volume1' ('CSV Disk1') has entered a paused state because of '(c0000435)'

0
0

Hi,

Just built a Server 2012 R2 Hyper-V failover cluster connected to Equallogic 4110 storage arrays with latest firmware and HIT kits. 
When creating a clone or vm from a template we see that the cluster loses access to the storage csv volume that is hosted on the equallogic storage with the following errors:

Cluster Shared Volume 'Volume1' ('CSV Disk1') has entered a paused state because of '(c0000435)'. All I/O will temporarily be queued until a path to the volume is reestablished.

Can anyone shed any light onto this issue?

Full details below:

Log Name: System
Source: Microsoft-Windows-FailoverClustering
Date: 06/08/2014 09:31:17
Event ID: 5120
Task Category: Cluster Shared Volume
Level: Error
Keywords: 
User: SYSTEM
Computer: SVR1
Description:
Cluster Shared Volume 'Volume1' ('CSV Disk1') has entered a paused state because of '(c0000435)'. All I/O will temporarily be queued until a path to the volume is reestablished.
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="Microsoft-Windows-FailoverClustering" Guid="{BAF908EA-3421-4CA9-9B84-6689B8C6F85F}" />
<EventID>5120</EventID>
<Version>0</Version>
<Level>2</Level>
<Task>38</Task>
<Opcode>0</Opcode>
<Keywords>0x8000000000000000</Keywords>
<TimeCreated SystemTime="2014-08-06T08:31:17.330643100Z" />
<EventRecordID>36230</EventRecordID>
<Correlation />
<Execution ProcessID="2336" ThreadID="3524" />
<Channel>System</Channel>
<Computer>SVR1</Computer>
<Security UserID="S-1-5-18" />
</System>
<EventData>
<Data Name="VolumeName">Volume1</Data>
<Data Name="ResourceName">CSV Disk1</Data>
<Data Name="ErrorCode">(c0000435)</Data>
</EventData>
</Event>


Microsoft Partner

Unable to RDP to HyperV servers from outside the network.

0
0

Hello,

We have a Hyper V 2012 deployment on two identical Dell T320 servers. I am deploying a new RDS 2012 HyperV Virtual Machine to replace our 2008 Terminal server. Everyone can reach the RDS 2012 HyperV Vm (an all other virtual machines) just fine within the network. I configured the firewall for 3389 to the RDS server at 192.168.X.X but cannot connect to it. There is no Windows Firewall Active and RDP is set to allow.

I tried this with all the Hyper V virtual machines, none are reachable via RDP from the outside. However, i setup firewall rules to the Dell T320's for RDP and connect just fine. 

What am I doing wrong?

Thanks!

2012 R2 logical switch VMQ

0
0

Hey,

We are trying to set the correct settings for VMQ on 2012 R2 on our physical servers.

Switch settings, Independent mode, Dynamic.

CPU, HT 2x12, lp 48.

Receive queues is 15 per port, 2x10GB.

Per default it sets to base 0, max 16. This seems to work fine except that it reports alot of errors in the event logg as we are not using the correct settings for sum queue mode.

All settings with baseprocessornumber 0 seems to work fine, but on the second port if we set it correct to not overlapp it doesnt work.

Any suggestions?

//Johan


Initial replication paused after ~3 hours

0
0

I have been searching without any luck. If this has been asked before, please kindly give me the link to look at. Thanks.

Well the problem I am having is that when doing the initial sync for replication of large VMs in Hyper-V, after about 3 hours the sync will pause. I need to go in and manually resume the replication occasionally, otherwise the initial sync won't finish. This happens in all 7 of our sites. Replication is performed between 2 identical servers sitting next to each other which are connected with a 10GB link directly. Only less than 25% of space are used, so space is not an issue. When the replication was paused, Event 32086 and 32022 were recorded. However as long as you keep resuming the replication, it will finished eventually. From there on, everything works beautifully. We do have backup running at night, but if that is the case, it should fail whenever the backup is backing up that big VMs instead of failing after ~3 hours. Any idea what is stopping the replication?

21:34 - Event 32074: Hyper-V successfully enabled replication for primary virtual machine 'MSHVFILE1' (Virtual Machine ID AAF0AAC5-09E6-41F1-9629-154AE65DCF44).

00:19 - Event 32086: Hyper-V suspended replication for virtual machine 'MSHVFILE1' due to a non-recoverable failure. (Virtual Machine ID AAF0AAC5-09E6-41F1-9629-154AE65DCF44). Resume replication after correcting the failure.

00:19 - Event 32022: Hyper-V could not replicate changes for virtual machine 'MSHVFILE1': One or more arguments are invalid (0x80070057). (Virtual Machine ID AAF0AAC5-09E6-41F1-9629-154AE65DCF44)

01:00 - Replication was resumed for virtual machine 'MSHVFILE1'. (Virtual machine ID AAF0AAC5-09E6-41F1-9629-154AE65DCF44).

03:51 - Event 32086: Hyper-V suspended replication for virtual machine 'MSHVFILE1' due to a non-recoverable failure. (Virtual Machine ID AAF0AAC5-09E6-41F1-9629-154AE65DCF44). Resume replication after correcting the failure.

03:51 - Event 32022: Hyper-V could not replicate changes for virtual machine 'MSHVFILE1': One or more arguments are invalid (0x80070057). (Virtual Machine ID AAF0AAC5-09E6-41F1-9629-154AE65DCF44)

How to Change Parent Path of .VHDX in an imported virtual machine snapshot chain

0
0

Unfortunately, I am so novice in using and managing Hyper-v

Recently , we faced a disconnection in our SAN link for a Hyper-v server and after reattaching the new drive letter was F:\

where
the old one was D:\ . Anyways, I've changed the default path for both
virtual machines and virtual hard drives in hyper-v settings. even
though the virtual machines did not work . Therefore, I've deleted them
all in hyper-v manager and recreated them each attached to its VHDX
file. all of them are working properly since , they do not have
snapshots . But one of them went wrong since it has 3 .avhdx files .
Then I've deleted the corresponding machine , and tried the following :

Note: fortunately, I've copied all the configuration , snapshots ,and virtual Hard drive files to a network shared folder

  • merging them manually by using edit disk wizard did not work
  • importing the machine from its original files keeps giving this error without starting up:

" Synthetic SCSI controller ( instance ID XXXXX ) Failed to power on with error 'The Chain of virtual hard disks is inaccessible . There was error opening virtual hard disk further up the chain. "

  • after inspecting all the parents for each snapshot in the chain , they all go smooth ,but the VHDX gives this error:

Failed to get the disk information

failed to open attachment 'D\XXXXX.vhdx' Error: ' The device is not ready'

As I've noticed , that the last drive ( which is the base file spiceworks.vhdx) is giving the wrong path , even its path should be:

"F:\XXXXX.vhdx"

My question is there a powershell command ,a registry setting, or a third party to change this parent path to the right one.

Thanks so much.

Hyper-V Host OS looses connectivity to shared External Virtual Switch when subject to sustained data transfer

0
0

Hi Folks,

Just looking for someone to point me in the right direction to try and troubleshoot this issue. I have a problem with one of my Hyper-V hosts. The host is a DL380 Gen8 with an integrated HP 4 port 331FLR 1GB adapter (I believe these are made by Broadcom) and has Server 2012 R2 Std installed

Port 1 is attached to a Hyper-V External Virtual Switch which is shared between VM's on the host and the host's OS (Server 2012 R2 Std) which is functioning as a management network. The problem is that when a large amount of data is transferred to/from the hosts OS the interface appears to lock up and becomes unresponsive (RDP connection is lost, unable to ping, application stops transferring data). This occurs from within the host only, the VM's attached to the same virtual switch still have connectivity and can still reach each other and machines on different hosts.

I have managed to replicate the issue using Veeam Hyper-V Backup & Replication (taking backup from another host) and also Google Drive. In the case of the former the data was transferring at a sustained 850Mbps for around 2 minutes before the interface locked up.

Looking at the adapter status in Power Shell shows the interface is still up but it is unusable, the only way to fix the issue I have found is to reboot the host which isn't ideal.

Any advice would be greatly appreciated.

Dan

No network communication after automatic start

0
0
Greetings,

We have one Hyper-v host on Windows Server 2012 R2. With 10 virtual machines. These machines are Windows server 2012, 2008 and 2003. All VM are setup to automatic start. Two of them are DC, so starts with 0 delay. The others have delay of 300 seconds.

After an unplanned restart some machines have no network communication. the settings remains, but can not communicate them from outside. After swapped between No connected and previous virtual switch the network started working. All others machines present no networks problems.

Virtual switch was set on a network teaming with 3 phisycal network cards.

Hyper-V host is up to date.

Are there some one who is experiencing the same as us? Any help will be appreciated.

Thanks in advance.

Deploying Direct Access on a Hyper V guest

0
0

Hello there

Are there any issues or reasons for not installing the Direct Access role on a Server 2012 HyperV guest? The info I have found on this only refers to lab servers and not production servers. The plan is a single HyperV guest with running Server 2012 R2 on 8 gigs of RAM. I have read that there are potentially issues around the virtual NIC, can you expand on this if true?

Thanks in advance

MIS5000

Viewing all 19461 articles
Browse latest View live


Latest Images