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

Clean Way To Prevent Signature Collision Of Mounting VHDX In Parallel PowerShell Scripting

$
0
0

I have multiple Virtual Machines I am to build from a Sysprepped VHDX. (All this is done automatically via Powershell)

For each of these Virtual Machines, I copy this VHDX and create a new one unique to the Virtual Machine. However, I wish to mount each one (in parallel) and make modifications before attaching it to the virtual machine and booting the first time. 

The issue comes when it is time to mount the VHDX on the Physical Host, and these two processes attempt to mount at the same time. This causes a Signature Collision. I am looking for a clean - emphasis on clean - way to prevent signature collision. I have tried the following.

Using the Get-Drive cmdlet and determining if one exist with a FriendlyName of "Microsoft Virtual Disk" before mounting, to detect if another VHDX is already mounted and waiting til it dismounts - the latency in this flag being available causes this method to fail and still the two VHDXs attempt to mount and have signature collision, breaking the script associated with that VHDX.

I have tried using a Flag file, i.e., a text file to denote if a VHD is mounted and do a similar check - however, this relies on the file system and seems too clumsy for me. 

I have considered Environment variables, but am afraid this is also too convoluted for such a simple task.

Any recommendations? 


Isolated VM -PVLAN is not accessiable

$
0
0

hi ,

please check with me what is the problem as my physical server is UNnable to ping VM


Ramy

Exchange VM lost network connectivity from different subnet

$
0
0

Hi all,

Few times i have faced anniong issue. All times it was issue with Exchange 2010 VM's (Different Exchange servers from different domains). HyperV 2008 R2 and 2012 R2.

Server lost network connectivity from all other subnets. But in local subnet everithing is Ok. Most of communications is in local subnet but send/receive connectors stops working. After VM reboot everything becomes fine.

MAybe this is not HyperV issue but I saw those problems only vith virtualized Exchanges.

Maybe someone have seen similar issues and can provide solution.

Raid setup recommendations - 8 x 600GB and 2 virtual servers

$
0
0

Hello,

Are in the phase of installing av server with 8 x 600 GB disks.

The host will not do anything particular besides the Hyper-V role and backup to tape.

HW

8 x 600GB discs.

128GB RAM

Two guests.

1. AD,File,Print

2. SQL and application

What is your recommondation?

I am thinking about RAID10 on the whole lot.

dedicate 300GB to the host, and approx 1TB to both of the guests.

What will i gain here? 1 disk failure is ok, maybe 2 disk failures, if they are different mirror set? Is that right?

And performance will be overall good?

Best regards

Aksel

HyperV Manager cannot connect to local server

$
0
0

Hi,

My HyperV server (GUI) host has 3 virtual machines guests - all  of them are critical servers, suddenly the host is unable to connect to local server and thus I am unable to manage 3 virtual machines, however all 3 guests are online are accessible.

I have checked the VMM service and is running fine, i am receiving same error when logged in as a local admin instead of domain admin. Now one of the virtual machines is having problem and I am unable to manage i cannot connect to HyperV from remote system as well. When i logged on to the Server Manager, the automatic refresh is failing as per below,

Manageability from Server Manager is showing following error, Online - Data retrieval failures occured.

Moreover when i click add remove features I receive following error, Server Manager is collecting inventory data. The wizard will be available after data collection finishes. I have not shut down the guests and restarted the host, i fear i might not be able to connect to them as they are critical.

Please note that the host is not in any type of high availability yet, any help on this would really be appreciated, thanks.

Hyper-V 2012R2 Manager doesn't work, but 5nine does!

$
0
0

Hey guys!

Got a very weird one for ya! So the details:

 - Server 2012R2 Hyper-V Core

 - Microsoft remote management document followed to enable remote access

 - John Howard's HVRemote config utility run several times

 - Manually opened ports, enable firewall rules, DCOM permissions, remote permissions, etc, etc

 - Installed COREFIG (for 2012, not 2008 version), open source Hyper-V management utility to verify all is enabled and working.

 - Changed RPC dynamic ports to 50000-50100 to no avail

What works:

 - Remote server management works (user, groups, event logs, disk management, etc)

 - Can RDP into host machine, no problem.

 - Can see file shares localy and over the web

 - Can use third party software (Corefig and 5nine Manager) to control machine

What doesn't work:

 - Hyper-V manager

However, install 5nine manager (free client) and have full admin control over host (create VM's, start/stop/pause, VLAN management, etc)

Even if I disable software and hardware firewall's, no change. The Hyper-V manager will not connect with error "RPC server unavailable"

What's even weirder, if I start the Hyper-V manager, I get the RPC error. If I then click the "refresh" button (on the right Actions panel) it then connects and shows me status, but I cannot change or interact with anything. It's almost like it's ignoring the RPC error and trying to connect anyway.

I have spent weeks on this and am no closer to a solution. If it wasn't for the 5Nine Hyper-V FREE client, I'd be seriously boned! :P

Any advice would be welcome, and thanks in advance.

:D

Storage Pool Issues

$
0
0
   
Hello!!

I have some LUNs that was automatically added to a Primordial Storage Pool. I can't remove those disks and not even remove the LUNs.

I need those LUNs to use as pass-through disks to some highly available Virtual Machines. I need this scenario because I need performance. I'll virtualize a database server.

Using Set-PhysicalDisk i got this error:

[code]PS C:\Windows\system32> Set-PhysicalDisk -FriendlyName 'PhysicalDisk18' -Usage Retired
Set-PhysicalDisk : Not Supported
No linha:1 caractere:1
+ Set-PhysicalDisk -FriendlyName 'PhysicalDisk18' -Usage Retired
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (StorageWMI:ROOT/Microsoft/..._StorageCmdlets) [Set-PhysicalDisk], CimException
    + FullyQualifiedErrorId : StorageWMI 1,Set-PhysicalDisk[/code]

I'm kinda desperate, my schedule is tight 'cause I lost some days fighting with an Informix bug. I lost 2 VMs because I needed to add 2 more LUNs to the cluster and a lot of disks was suddenly added to the Storage Pool, dening acces to those disks.

Flávio

Error Creating Snapshot

$
0
0

While trying to create a snapshot of any of my VM's I am getting an error.

Environment:

Windows 2012 R2 Cluster

Running System Center VMM 2012 R2

Clustered Shared Drives

Any idea what this "No such interface supported (0x80004002)" means or how I fix this?

Error (12700)
VMM cannot complete the host operation on the TUKC-HYPERV-5.corp.bittitan.local server because of the error: Checkpoint operation for 'TUKW-MWProd-106' failed. (Virtual machine ID 53B681FD-8F83-4272-861E-033101EEBB4E)

'TUKW-MWProd-106' could not initiate a checkpoint operation: %%2147778816 (0x80048100). (Virtual machine ID 53B681FD-8F83-4272-861E-033101EEBB4E)

'TUKW-MWProd-106' is unable to reset the virtual hard disk path for C:\ClusterStorage\TUK-HyperV-A-B01\TUKW-MWProd-106-1\VMM-BASE-2012R2.vhdx as a result of failure to create a checkpoint. No such interface supported (0x80004002). (Virtual machine ID 53B681FD-8F83-4272-861E-033101EEBB4E)
Unknown error (0x8000)

Recommended Action
Resolve the host issue and then try the operation again.


Vincent Fournier


Can't Import VM to New Host

$
0
0

I replaced my Hyper-V host. I've been able to import all by one of my VM's back into the new host. This one in particular I see this in the event viewer when I try to import it. It seems to point to a network issue but all the VM's network were configured the same. As far as the machine goes the only difference is that this is a Linux machine and all the others were windows.

Cannot load a virtual machine configuration: The specified network resource or device is no longer available. (0x80070037). (Virtual machine ID F78ED323-E966-4EAB-B8CC-E7342DDE74CA)


John Marcum | Microsoft MVP - Enterprise Client Management
My blog: System Center Admin | Twitter:@SCCM_Marcum | Linkedin: John Marcum

0.0.0.0 IP Address Conflicts on the network, VMs lose network after reboot

$
0
0

We are having a strange issue happen on our network which appears to be affecting most hosts and VMs which is a combination of a Windows 2012 Hyper-V Cluster and Standalone Windows 2008 R2 Hyper-V Hosts.

Prior to implementing the Windows 2012 Hyper-V Cluster we did not have the issue. That said, previously we did not use NIC Teaming either.

The problem appears during the gratuitous ARP request during a reboot for any Physical server or VM that are running Windows 2008 R2 & 2012. The Host or VM gets a conflict with a 0.0.0.0 address and then assigns itself a 169.254.X.X IP address. The conflict arises from the uplink Trunk port MAC address from a Cisco Switch. The conflict MAC address randomly changes and can be from any of uplink Trunk MACs from all access switches in the network. I can not reproduce the issue on a Windows 2003 box but this likely because Microsoft changed how gratuitous ARP works since Windows 2008.

We are using NIC teaming with switches that were created at the Host level not in SCVMM 2012 SP1.

Portfast is enabled for all end devices.

Any help would be great!


USB passthrogh

$
0
0

Hello!

There's a guest VM (Windows Server 2012 R2, Generation2) on a Windows Server 2012 R2 host.

I plug a usb device to the host and try to install a program from this device inside a VM (usb passthrough is working as expected), but the installation fails:

The same program (and all other programs) can be installed perfect when using an "ordinary" RDP sessions (not the usb-passthrough in Hyper-V), so is it by desing that RDP Connection in Hyper-V differs from the "ordinary" RDP connection?

Thank you in advance,

Michael

What are some best practices to follow when creating virtual switches on Hyper-V?

$
0
0

Usually I create one external virtual switch and apply it to all servers that need access to the Internet and LAN. I've seen other sysadmins create one virtual switch for each server even if all servers virtual switch is set for external. for example, exchange server would have an external switch named exch_ext and a domain controller DC_ext.

What are some best practices to follow when creating virtual switches on Hyper-V?

btw, My system is Hyper-v 2012 R2 (free edition) 2 NICs teamed for management and 4 NICs teamed for VMs.

Thank you.

Setting VLan ID on NICs via windows 2008 R2 powershell

$
0
0

hi friends

in windows 2008 R2 imagine we have installed hyper-v module for powershell. now is it possible to set VLAN ID on NICs?

which command will do this ?

thanks a lot

VM file list

$
0
0

Hi all,

I try to build a list of all files  Hyper-V VMs in a cluster consists of.
The begining is relativ easy:
------
$nodes = Get-ClusterNode

$ActiveDiskFiles = Foreach($node in $nodes) 

    $VMs=Get-VM -ComputerName $node.name 
    foreach($VM in $VMs ) 
    { 
        Get-VHD -ComputerName $node.Name -VMId $VM.VMId | Select-Object path 
    }

}
foreach ($disks in $ActiveDiskFiles)
{Write-Host $disks}
----------

But how can I get the parent checkpoint-files and or VHDs with filename and path?

Hyper-V is Version 2012 R2 and I do not have a SC-VMM

Many thanks in advance.


Guido



Moving Virtual Machine - Attach VHD with new VM

$
0
0

Hi All,

We wants to migrate 2 virtual machines from one location to another location.

Present Location :- Windows Server 2008 R2 Enterprise (IBM X3400 M3)

VM 1 - Server 2008 R2 Standard with Additional Domain Controller and Exchange Server 2010 SP3 in size of 1.3 TB

VM 2 - Server 2008 R2 Standard with Primary Domain Controller in size of 50 GB

New Location :- Windows Server 2012 R2 Standard (HP DL 380P Gen 8)

Last Sunday we have tried export and Import which is failed because I get to know that exported from Server 2008 R2 cant import on Server 2012 R2. It took 15 hours to export 1.3 TB VM :-( and it failed.

Now my question is :- 

Option A - Can we move our entire Datacetre to new location which I don't want to do 

OR 

Option B - Just copy VHD and paste it on new server and create new VM and attach it. If I uses this option than my VM with ADC with Exchange and VM with PDC will work or not? Because of Machine ID and hardware will get changed.

or any other you can suggest. Exchange and DC on risk and I am not an expert of Exchange Server and Domain controller.

Thanks for Help


Hyper-V Replica 2012 R2, where's my 30 second recovery points?

$
0
0

Hi,

I am a bit confused over this hyper-v replica stuff, well I wasn't when I started but I am now. 2012 R2 allows 30 seconds, 5 minutes and 15 minutes replication points... but when i try to use a test failover or a failover i dont see any of my 30 second replication points, all i seem to see is the latest recovery point, a standard recovery point and an application consistent recovery point. none of which are remotely within a few minutes of each other.

for this particular example my replication settings are as follows:

frequency of changes sent to replica server - 30 seconds

coverage provided by recovery points - 24 hours

VSS snapshot frequency - 4 hours

under my replication health right now it shows 173 out of 173 successful replication cycles, i was expecting to see 173 possible points to recover to.

can anyone provide any guidance on this?

thanks

Steve

Hyper-V Server 2008 R2 SP1 - Language packs?

$
0
0
I want to ask if it's possible to use install language packs for Hyper-V? I'd love to see the user interface in Hungarian. There are language packs for the Hyper-V module for Windows Server 2008 (https://support.microsoft.com/kb/951636), and for Windows Server 2008 R2 (http://www.microsoft.com/en-us/download/details.aspx?id=1246) itself - is it maybe possible to install either of those to make the standalone Hyper-V Server 2008 multilingual?

Snapshot

$
0
0

Dear all,

I have a hyper-v cluster with a number of VMs, recently I noticed a VM which had two snapshots and I deleted both however I did not see a merge process. The VM folder has one .vhd files and four .avhd files two of thes dates dates which correspond to the snapshots which were deleted and the other two have today's days however the avhd files with the most current time stamp is the one that is being referenced in hyper-v manager. How can I get this resolved and get the hyper-v server to use vhd file again?

Hyper-V 2012 R2 / Licensing / Service

$
0
0

Hello,

In the following environment: Hosts that run virtual machines for customers. Are we allowed to use the free hyper-V 2012 R2 server as service for running fully licensed(SPLA) virtual machines or is the free version only for your own use?


no free hard disk space left inside server 2012 R2 - using dynamic VHDX - Hyper-V

$
0
0

Windows Server 2012 R2

Hello,

I created a 550GB dynamic VHDX running windows server 2012 R2 using Hyper-V.

The problem is that there is no space left in the windows server 2012 R2. The actual space being used is 267 GB (Which I checked by clicking properties of all folders inside C drive) inside the windows server 2012, used space is being shown as 548GB. I have deleted a lot of files, but still the same problem is there. I do not see any free space.

Now I am not talking about compacting the .VHDX Image File Size (say from 550 GB to 250 GB) (which I have already done with no success in reducing the VHDX image file size, but that doesn't matter to me now), I am talking about the free space inside the VM i.e. when I connect to the VM, and click My Computer, it is showing no space left out of 550GB, whereas it should say 282 GB FREE Space. 

Any clue as to why I am facing this space issue? I guess this VM will stop working when there is 0 free space? How to solve this?


Viewing all 19461 articles
Browse latest View live




Latest Images