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

Add-VMNetworkAdapterExtendedAcl and a subnet as a RemoteIPAddress parameter

$
0
0

Hello,

I get some strange results using an Add-VMNetworkAdapterExtendedAcl cmdlet.  

If I provide a subnet address as a RemoteIPAddress parameter  - the Add-VMNetworkAdapterExtendedAcl cmdlet doesn't work as expected,

-RemoteIPAddress <any subnet address> works exactly as -RemoteIPAddress ANY.

But according to the documentation here http://technet.microsoft.com/en-us/library/dn464289.aspx 
and here http://technet.microsoft.com/en-us/library/dn375962.aspx#bkmk_detailed
it's possible to use a subnet address with RemoteIPAddress.



My environment (Steps to reproduce):

1) I have a physical server with a Windows Server 2012 R2 with kb2919355 and hyper-v role installed and a VM with a public IP-address and guest OS Windows Server 2008 R2 SP1.  

Hyper-V switch which is used by the VM configured as follows:

PS C:\> Get-VMSwitch External | fl AllowManagementOS
AllowManagementOS : False

No any VMNetworkAdapterAcl or VMNetworkAdapterExtendedAcls configured for the VM.

2) ping <VM IP-address> -t from outside networks works.

3) ping google.com (or something pingable) -t from VM OS works. 

4) I run a following command on the hyper-v host:

Add-VMNetworkAdapterExtendedAcl -VMName test -Action Deny -Direction Outbound -Protocol "1" -Weight 11 -RemoteIPAddress 10.0.0.0/24

Both ping commands started to return "Request timed out" at once, 
despite the fact that there are no hosts from 10.0.0.0/24 subnet in the test environment.

Here is the VMNetworkAdapterExtendedAclconfig:

ParentAdapter      : Microsoft.HyperV.PowerShell.VMNetworkAdapter
Direction          : Outbound
Action             : Deny
LocalIPAddress     : ANY
RemoteIPAddress    : 10.0.0.0/24
LocalPort          : ANY
RemotePort         : ANY
Protocol           : 1
Weight             : 11
Stateful           : False
IdleSessionTimeout : 0
IsolationID        : 0
ToRemove           : False


5) Running Get-VMNetworkAdapterExtendedAcl -VMName test | Remove-VMNetworkAdapterExtendedAcl restores ping replies.


I guess I can use any valid IPv4 network address instead of 10.0.0.0/24 and I will get the same result (I've already tried 123.0.0.0/8 and so on)

Using a single IP-address instead of subnet works without any problem.

So, is that a bug? 


Live Migration corrupts VHDX file - is it possible to repair?

$
0
0

Hi.

I have a Hyper-V 2012 cluster with 5 nodes. All HP Blade servers in the same enclosure, on 3PAR FC SAN storage. I wanted to run routine maintenance on the hosts, i.e., Windows Update. So I Live Migrated the VMs off one host at a time, paused it in Failover Cluster Manager, rebooted, unpaused, and failed the roles back manually.

After updating the second host, I decided to fail the roles back when unpausing. The instant one of the VMs moved back to this host, it failed to start, and got a red X in FCM.

The VM had 2 virtual disks. I removed one, leaving only the system disk. When I started it, it ran CHKDSK a couple of times and eventually came back, appearing to be healthy (a miracle!). But I cannot add the second VHDX to the VM. It throws an error:

SERVERNAME': Attachment 'C:\ClusterStorage\Volume5\SERVERNAME\SERVERNAME-E.vhdx' failed to open because of error: 'The file or directory is corrupted and unreadable.' (7864368). (Virtual machine ID F4F4F4F4-F4F4-F4F4-F4F4-F4F4F4F4F4F4ID and name changed)

I've search everywhere for a solution, followed all the links. There are tools for VHD repair, but I can't find anything for VHDX.

I can't change to VHD format because the Edit Disk wizard throws this same error before it will even read it.

There is nothing wrong with our network or hardware, either. I had just done about 20 Live Migrations before this happened, and they all went just fine.

Anyone have any idea how I can recover this VHDX? Even if you know of a beta product, I'm willing to be a guinea pig!


Dan

Replication Self-Signed cert issues

$
0
0

I have two node clustered environment with a replica broker and a replica server for DR.  Port 80 replications are taking place accurately.  I have tried to follow the document below.  I have the .cer file of the FQDN of the servers and the broker on each of the servers.  Imported the .pfx with the RootCA file and root is in trusted domains.


The primary cluster lets me add the replica broker self signed cert but the DR replica server gets the error.  The FQDN match on each and timezones match because they are on the same domain.


Any help?

2008R2 Virtual machine shutting down unexpected on Hyper-V 2012 server

$
0
0

I have a problem where one of my 2008 R2 virtual servers are shutting down unexpected every Friday at more or less the same time. This has happen 2 Fridays in a row now and the time is 13:01:30 and 13:01:10. I did some investigation on the event viewer and it tells me the following: (Error) The previous system shutdown at 01:01:10 PM on ‎2014/‎08/‎01 was unexpected.  Event ID: 6008 which I have goggled and did not find much on this ID?    I also found the following event more or less the same time as the first one: (Critical) The system has rebooted without cleanly shutting down first. This error could be caused if the system stopped responding, crashed, or lost power unexpectedly. Event ID: 41.  In most posts it looks like if it could be hardware related? But how do I justify this on a virtual machine?

Some Infrastructure background: It is a 2008 R2 virtual server running on 2012 Hyper-V, 2012 server. SCVMM is not configured so all administration is done through Hyper-V manager. The virtual machine is backup up by Symantec backup exec and the Full backup only start at 23:00pm night time. No scheduled shut-downs are configured and all servers are running on UPS power, the virtual server are also configured to boot up automatically after any failure. But in this case the server is completely shut-down and I have to manually start the server up again.

I hope there are somebody who can give some guidance on my problem?

Regards  


Juan Krynie

Why don't the boot orders in PowerShell and Hyper-V Manager match?

$
0
0

I've been experimenting with making changes to a hyper-v VM's boot order with the Set-VMFirmware -BootOrder CmdLet.

The boot order shown in Hyper-V Manager's firmware now shows a different boot order from Powershell.  Hyper-V Manager shows this:

While PowerShell Shows this:

Why is PowerShell and Hyper-V Manager showing two different boot orders?

HYPER V 2012 - SNAPSHOTS

$
0
0

Hi Everyone

I have a big problem and i hope somone can help me out here because i cant find any documentation or any forums agardin this.

I have a Windows Server 2012 with HyperV roles installed.

I have 3 virtual serveres and 2 Disk about 900 GB.

On of This serveres has run on 3 snapshots.

The problem is this at wee turn the virtual server Down and we delete snapshots on hyper v and mergning Progress begin... but we quickly notified the diskspace its been bigger bigger bigger and the disk was 10GB from to be full so we canceled the merge.

After that we start the virtual machine Again and now we have a VHD file and 3 other AVHDX files wich is 162GB, 130GB, 324GB

We have about 30 GB free storage on that disk and the machine is on production.

On HyperV Manager cant we no more se the snapshots of this machine but on that folder where machine is can we se 3 snapshots and 1 vhd file.

Just one of thoose AVHDX files (162GB) is in use and not the 2 othe snapshots and VHD.

What should i do and how can i merge those file to AVHD and never make a snapshot Again.?

I Have atached a Picture so you can see what i mean.

THANKS GUYS

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

enable Hyper-V on ESXi 5

$
0
0
hi
i have a dedicated server with hyper-V on. since two peoples cannot work on the server at the same time . i installed Vmware workstation and ESXi as a Vm.
i can access to the ESXi using another machine and manage it with vCenter and vSphere .
i read that it's possible to enable hyper-v on a vm with the ESXi. i tried a lot of solution but it didn't work
does anybody knows an effective solution
thanks

Is it mandatory to enable hardware-assisted virtualization support in BIOS before installting Hyper-V Server 2012 R2?

$
0
0

Hi,

I recently installed Hyper-V Server 2012 R2 on my PC. CPU is i5 3rd generation and it supports hardware-assisted virtualization. However, I didn't realize that until after I finished installing the Hyper-V server.

I can still enable it in BIOS. The question is, if I enable the hardware-assisted virtualization support now, is it sufficient?

If not, do I have to enable this in BIOS and install the Hyper-V Server OS all over again?

Please clarify.

Thanks

Virtual CPU "power

$
0
0

We have a Hyper-V (Win 2008 R2) Guest whose CPU usage (measured from inside the Guest) is always abot 70-80%. Too high. (The HOST reports CPU usage of the Guest as in the 6-7% range). Can we adjust how "powerful" this virtual CPU is (e.g. can we adjust the CPU model and "speed")?

TIA,

edm2

Stop-vm , shutdown intergration services is unavailable?

$
0
0

Hello

Trying to shutdown a guest-VM from host computer.

When running this from a PowerShell prompt:

stop-vm dc1

I get:

Hyper-V cannot shut down virtual machine dc1 because the Shutdown integration service is unavailable.
To prevent ..............

Powershell version Major 3, minor 0, build -1, revision -1

Host is Server 2012 (not R2)

What is wrong?

/EDIT

The vm-guest is running Server 2008 SP2

VM backups reported as success by 2012.R2 Hyper-V host, but many VSS related application errors on VM

$
0
0

Not sure if this is the right place to post this one I think I have an issue with the interaction between a 2012.R2 host Hyper-V VSS writer and the VM VSS components on an SBS2008 based VM.

I have a Windows 2012.R2 Hyper-V host running three VMs. VM OS are one SBS2008, one 2008 Server with SQLExpress instances, one 2012.R2.  Veeam is our current backup solution and is configured to run application aware backups.  The Veeam backup completes without error reports (Veaam uses Hyper-V VSS to request VMs to prepare snapshops).  However, in the SBS2008 VM, there are many  Event ID1 Source SQLVDI, EventID 24583 Source SQLWRITER and EventIDs 3041 and 18210 sourced from each SQL instances.  All the VSS writers involved in the backup are left in State [9] failed with Last error: No error. The 2008 and 2012.R2 OS VMs have no event log errors.

A Windows Server Backup (Full VSS) run within the SBS2008VM completes successfully with no event log errors in the VM

An online Windows Server Backup (Full VSS) from the Hyper-V host of the SBS2008VM completes successfully, but with an even more extensive set of errors as per the Veeam backup.

The hosts are Domain joined, the Hyper-V host is not on the domain. All integration tools are 2012.R2 level. I've spent several days trying to apply various solutions for the SQLVDI errors as suggested in various MS and other sources on the web.

Would appreciate any guidance in what further troubleshooting I can do.


Thanks

Hyper-V Manager Over VIPN

$
0
0

Hi There,

I'm having terrible trouble connecting to my Hyper-V server via the Hyper-V Management Tools.

Server: 2012R2

Client: Windows 8.1

VPN Type: OpenVPN

I've managed to get everything working over the VPN, however I cannot load the Virtual Machine List in Hyper-V Manager. it gives the Error "RPC Server Unavailable."

I've tried hosts file entries on my client for the server, and also on the server for my client. It all works perfectly fine while I'm on the local LAN, but refuses to work over a VPN.

I can manage every other aspect of Hyper-V, I can create virtual switches and change settings, it just the Virtual Machine List that does not work.

I've come across the below link, which hasn't happened me to find a solution. I've dropped all firewalls to no avail.

http://blogs.technet.com/b/jhoward/archive/2008/08/07/hyper-v-why-does-hyper-v-manager-not-always-work-over-vpn-connection-access-denied-or-rpc-server-unavailable-errors.aspx

Thanks,

Ben

The remote server has been paused or is in the process of being started.

$
0
0

Ok I had a failover cluster (HVC01) consisting of 3 hosts (HV01, HV02, HV03). Two of the hosts (HV01, HV02) were powered off when the third host died. I powered on the two previously offline hosts but I can't get anything to work. Every single PowerShell command I try comes back with something similar to this:

Get-ClusterGroup : The remote server has been paused or is in the process of being started.
    The remote server has been paused or is in the process of being started

The Failover Cluster Manager shows:
Node 'HVC01' is in the process of being started
The remote server has been paused or is in the process of being started.
Error Code: 0x80070046

I can't get anything to work. How the heck do I bring the cluster back online? HV03 is dead and will probably be down for days due to a bad motherboard. I can't get HV01 or HV02 to do anything related to the cluster even though they were fine before I shut them down and HV03 died.

And yes I've already Googled this...



Virtualized IIS Web Layer

$
0
0

So we have a few physical servers running Hyper-V VM web servers.  I have several virtual directories in IIS that point to the host through a UNC path.  I do this because the virtual machines do not have enough space to run all content.  Is there a better way to access the data on the host other than a UNC path?

Right now the setup looks like this:

The host has a C drive for the OS and a D drive for the VMs and Content.  I would split these but I do not have enough drives at the moment to do this.

The VMs have a C drive.  The drive is physically located on the D drive of the host.

Thanks


Move Virtual Machine Storage on a Clustered vm = Disk Read Error?

$
0
0

Having an issue when moving Virtual Machine Storage on a Clustered vm is breaking (corrupting?) the vhdx.

Setup:

2-node Hyper-V Server 2012 (the free one) Cluster connected to an EqualLogic PS6100E using a CSV.  (2) Teamed (Hyper-V) LAN nics and (3) iSCSI MPIO nics each.

Starting Location:

  • VM named "vv-2012" is built from an ISO and running on a server in the node - NOT added to Failover Cluster Manager as a role yet.
  • Disk lives at "C:\ClusterStorage\volume1\vv-2012\Virtual Hard Disks\vv-2012.vhdx"
  • VM lives at ""C:\ClusterStorage\volume1\vv-2012\Virtual Machines\xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx.xml"
  • Machine is Running at Login Screen directly after setting the local Administrator password
  • Running current Integration Services

Test 1 - From Starting Location - Move VM Storage using Hyper-V Manager - Move just the vhdx one folder up ("C:\ClusterStorage\volume1\vv-2012\vv-2012.vhdx")

  • SUCCESS - vhdx moved and machine still running

Test 2 - From Starting Location - Import into Failover Cluster Manager - Move VM Storage using Failover Cluster Manager - Move just the vhdx one folder up ("C:\ClusterStorage\volume1\vv-2012\vv-2012.vhdx")

  • FAILED - Disk Read error in the running VM as soon as the move starts (see below image)

Test 3 - From Starting Location - Import into Failover Cluster Manager -SHUT DOWN RUNNING VM - Move VM Storage using Failover Cluster Manager - Move just the vhdx one folder up ("C:\ClusterStorage\volume1\vv-2012\vv-2012.vhdx")

  • SUCCESS - Started VM - no errors

Working on the, now, broken vhdx:

- Searching technet (and the Internet - Google/Bing) returns almost exclusively P2V conversions using disk2vhd.exe from Sysinternals.  That is NOT the case here - reading these posts talks about partitions not being imported (boot partition) or incorrect IDE/SCSI settings on imported vhd's.

- Attaching the vhdx to another vm (or my local machine using Disk Management) and running chkdsk returns "Corrupt master file table. Windows will attempt to recover master file table from disk."  "Windows cannot recover master file table.  CHKDSK aborted." (also tried with /F even though screenshot does not show that - same result) - I see the 2 partitions (boot and system) but cannot browse them - marked as RAW

- Running TestDisk returns invalid MFT (I think, not an expert on this program).

Summary:

- Moving vm vhdx's that are turned off either through Hyper-V Manager or Failover Cluster Managerwork fine

- Moving vm vhdx's that are running through Hyper-V Managerwork fine

- Moving vm vhdx's that are running through Failover Cluster Managerbreaks (corrupts?) the vhdx.

So my questions are 3 fold:

  1. Can anyone else reproduce this?
  2. Is it a Hyper-V / Cluster bug?
  3. Can I recover the vhdx?

Wasn't sure if I should post here or Cluster forum?  Both?

:) -Andrew

Images:

virtual machine cannot start after changing the location of parent VHD

$
0
0

hi friends

in hyper-v 2008 R2, i have deployed a virtual machine via differencing hard disks method ( there is a source parent VHD and the Virtual machin'es hard disk is child).

if you change the location of parent VHD to another place, my VM cannot start & i get error.

i searched in virtual machine's configuration file but i didn't find the path or the name of parent VHD file so unable to update this change

any solution to update it so that it be able to start ?

thanks in advance






how to use previous snapshots of a vm after re-installing windows

$
0
0

hi friends

i have deployed a virtual machine via hyper-v in windows 2008 R2. i have also created some snapshots of this VM.

after i removed current windows & installed new windows 2008 R2 & i create a new virtual machine via existing VHD hard disk, is there any method to have previous snapshots of that virtual machine in hyper-v console?

i mean i want when i create a new virtual machine & select the previous hard disk (.VHD), under that vm, i see the list of previous snapshots & use them



Hyper-V script editing

$
0
0
Hi Guys
i managed to have a script to clone VM from a existing .VHDX
i've downloaded the create vm script from http://gallery.technet.microsoft.com/Powershell-script-to-ad6d2277
i am able to clone the VM from a exisiting .vHDX sysprep VM. with the next command
.\Create-VM.ps1 -VMName "VM2" -VMFolder "C:\HDD" -vSwitch "External-Switch" -GoldenImageDiskPath " C:\HDD\Golden1.vhdx" -AdditionalDisksTotal 1 -AdditionalDisksSize 30GB

what i need now is to create a VM with the same script and specify the network settings like :
IP :
Gateway:
Subnet
DNS

need to specify the admin password too

any suggestions what to add to the script ?

VHDX become corrupted, how to track down the root case?

$
0
0

Hi all,

strange things happens to me and I would like to avoid it to the future, but I am not sure, what caused it and how to prevent.

I get corrupted VHDX file, where MSSQL DB was placed. The VHDX was 15 GB dynamic drive, where only 10 GB has been used. The drive has been located on CSV (HP 3PAR over SAN) with many others files (cca 200 VHDX, more than 60 VM running without problems).

- no VM crash or reboot

- no VM live migration

- no storage migration (HP 3 PAR, no ODX)

- no one logged in on the VM

- no application log error or warning

- no system log error or warning

- nothing special audited in the security log

- no antivirus or backup running at the time

- no special scheduled jobs

The drive simply become "Not Initialized" for the VM and for other systems the VHDX seems to be corrupted and unreadable.

Q1. how to fix (the file cannot be mounted, converted, edited or inspected)

Q2. how to track down the root case

When the problem occurred first, we simply initialize the drive, create new partition and format. Suddenly one week later we get the same issue at the same time :(


Martin

Viewing all 19461 articles
Browse latest View live




Latest Images