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

Access Denied on VHD permissions

$
0
0

Hi,

I'm dealing with an incredibly frustrating problem where a VHD on a clustered shared volume has lost it's NTFS permissions, and I can't seem to correct them. 

Initially the VM was on a clustered role but I've since removed the role as I read that Hyper-V manager could set the permissions if I remove the disk and try to re-add it from there. Unfortunately when I tried this it wouldn't let me add the disk again. Access Denied. 

I've also tried modifying the permissions using icacles, trying to give full permissions to either an admin account or the 'NT Virtual Machine\<Guid>', but when I try to se the permissions I get an Access Denied on setting them. This was being run from an elevated command prompt too.

Any ideas what the solution is?

Thanks 

Dave


Win 2012 Hyper-V Cluster nodes lost CSV after 1 node was rebooted

$
0
0

Hi,
We have 4 node Hyper-V cluster. HP DL servers + VNX5100 and SAN fabric connection. 2nd node was reinstalled and rejoined to cluster. After 2nd node had rebooted manually, cluster lost CSV disk.

I have spent some days triing to figure out what happend, but have no answer yet. Please, give me a hend! Any advice would be appreciated.

***VMNODE-2
Rebooting started
000009fc.00000a24::2016/11/30-13:58:43.582 INFO  [CS] PreShutdown notification.

Disk paused before moving
000009fc.00001bec::2016/11/30-13:58:43.676 INFO  [DCM] PauseDisk completed on all nodes for resource 'Диск кластера 2'
000009fc.00001bec::2016/11/30-13:58:43.676 INFO  [DCM] short name is C:\CLUSTE~1\Volume1

Disk gone offline
00000814.00001c20::2016/11/30-13:58:43.926 INFO  [RHS] Resource Диск кластера 2 has come offline. RHS is about to report resource status to RCM.

Group moved from node 2 to node 3
000009fc.00001668::2016/11/30-13:58:43.926 INFO  [RCM] move of group f333c385-edf6-486b-ab74-9f9549ab310e from vmnode-2(2) to vmnode-3(4) of type MoveType::Drain is about to succeed, failoverCount=0, lastFailoverTime=1601/01/01-00:00:00.000 targeted=true

Success
000009fc.000018a4::2016/11/30-13:58:43.926 INFO  [RCM] rcm::DrainMgr::GroupMoveSucceeded: [DrainMgr] Group move succeeded for f333c385-edf6-486b-ab74-9f9549ab310e

***NODE-1
Disk paused before moving
00000f18.000017a8::2016/11/30-13:58:43.665 INFO  [DCM] PauseDisk completed for resource 'Диск кластера 2'

Disk marked as Bad due to network disconnected node 2

00000f18.000015a8::2016/11/30-13:58:45.777 WARN  [DCM] Marking Bad resource Диск кластера 2 owned by a dead node 2

Cluster couldn't get Disk Resourse
00001424.00001b28::2016/11/30-14:10:45.668 ERR   [RES] Physical Disk <Диск кластера 2>: HardDiskpSetUnsetDiskFlags: Unable to open device \\.\PhysicalDrive4294967295. Error: 2.
00001424.00001b28::2016/11/30-14:10:45.668 ERR   [RES] Physical Disk <Диск кластера 2>: Set CSV disk resource control: Failed to set CSV disk with partmgr. Error 2
00001424.00001b28::2016/11/30-14:10:45.668 ERR   [RHS] Error 2 from ResourceControl for resource Диск кластера 2.

***VMNODE-3
Disk paused
00000f2c.00001620::2016/11/30-13:58:43.671 INFO  [DCM] PauseDisk completed for resource 'Диск кластера 2'

00000f2c.00001200::2016/11/30-13:58:43.968 INFO  [DCM] PreOnline for Диск кластера 2

Connection broke
00000f2c.000012f8::2016/11/30-13:58:55.853 INFO  [PULLER vmnode-2] Parent stream has been closed.
00000f2c.000012f8::2016/11/30-13:58:55.853 ERR   [NODE] Node 4: Connection to Node 2 is broken. Reason Closed(1236)' because of 'channel to remote endpoint fe80::7d06:9916:577f:7aac%18:~51964~ has failed with status (10060)'
00000f2c.000012f8::2016/11/30-13:58:55.853 WARN  [NODE] Node 4: Initiating reconnect with n2.
00000f2c.000012f8::2016/11/30-13:58:55.853 INFO  [MQ-vmnode-2] Pausing
00000f2c.000012f8::2016/11/30-13:58:55.853 INFO  [Reconnector-vmnode-2] Reconnector from epoch 1 to epoch 2 waited 00.000 so far.
00000f2c.000011e4::2016/11/30-13:58:55.869 DBG   [NETFTAPI] Замечено NetftRemoteUnreachable событие, локальный адрес 10.10.10.110:3343  удаленный адрес 10.10.10.109:3343
00000f2c.000011cc::2016/11/30-13:58:55.869 INFO  [IM] got event: Remote endpoint 10.10.10.109:~3343~ unreachable from 10.10.10.110:~3343~
00000f2c.000011cc::2016/11/30-13:58:55.869 INFO  [IM] Marking Route from 10.10.10.110:~3343~ to 10.10.10.109:~3343~ as down
00000f2c.000011cc::2016/11/30-13:58:55.869 INFO  [NDP] Checking to see if all routes for route (virtual) local fe80::9063:add0:f77a:f7a3:~0~ to remote fe80::7d06:9916:577f:7aac:~0~ are down
00000f2c.000011cc::2016/11/30-13:58:55.869 INFO  [NDP] All routes for route (virtual) local fe80::9063:add0:f77a:f7a3:~0~ to remote fe80::7d06:9916:577f:7aac:~0~ are down
00000f2c.000011c8::2016/11/30-13:58:55.869 INFO  [CORE] Node 4: executing node 2 failed handlers on a dedicated thread

Disk connected
00001598.000014f4::2016/11/30-14:00:06.970 INFO  [RES] Physical Disk <Диск кластера 2>: HardDiskpWaitForVolumesToArrive: CSV disk - SUCCESS - opened handle for device \Device\Harddisk0\ClusterPartition2\. Error 0


Connection restored
00000f2c.00000f40::2016/11/30-14:02:49.607 INFO  [ACCEPT] 0.0.0.0:~3343~: Accepted inbound connection from remote endpoint 10.10.10.109:~49172~.
00000f2c.00002998::2016/11/30-14:02:49.607 INFO  [SV] New real route: local (10.10.10.110:~3343~) to remote  (10.10.10.109:~49172~).
00000f2c.00002998::2016/11/30-14:02:49.607 INFO  [SV] Got a new incoming stream from 10.10.10.109:~49172~
00000f2c.00002998::2016/11/30-14:02:49.639 INFO  [SV] Authentication and authorization were successful

Error

00000f2c.00001ed8::2016/11/30-14:02:52.685 WARN  [DCM] IOCTL_STORAGE_QUERY_PROPERTY(StorageDeviceSeekPenaltyProperty): status 31

Disk error
00001598.000016d8::2016/11/30-14:03:07.025 ERR   [RHS] Error 5023 from ResourceControl for resource Диск кластера 2.

Snapshot/Backup of Domain-Controller VMs not possible on Server 2016 Hyper-V Host?

$
0
0

Hello,

we have two Server 2008 R2 domain controllers running as VMs on a Server 2016 Hyper-V host.

We can't take snapshots of these VMs, getting Event-IDs 3280 from Hyper-V-Worker and 18012 from Hyper-V-VMMS, which also means we can't take backups.

We have tested this, and the error occurs as soon as ther server becomes a domain controller.
We can take snapshots without issues of all ohter VMs, which are no comain controllers.

Any ideas?

Kind regards

Proper Way to Configure Hosts When All Domain Controllers Are Virtual Machines

$
0
0

I have posted several forms of this question and have not received an answer that gives me direction in my scenario.  I will try again by rephrasing the question.

I have two boxes (Dell servers), each of which has a Windows Server 2008 R2 host and multiple Windows Server 2008 R2 virtual machines (VMs) running.  The hosts and all the VMs are members of the same domain.  Each box has a VM that is an AD domain controller (DC).  I do not have a separate physical domain controller and will not have a separate physical domain controller (meaning I do not and will not have a separate box that serves as a domain controller).  My only domain controllers are virtual machines.   I have been told in these forums that under this scenario my hosts may not be able to boot in the event that both boxes are down at the same time and try to come back up, as the DCs are virtual machines that do not come up until after the hosts come up.  What then must I do on the hosts and virtual DCs to ensure that my configuration will work?  What settings must be changed to ensure that my hosts will be able to successfully boot, even in the event that the two virtual DCs have not yet come up?  Thanks for any help.

To avoid going around in circles on this I state the following restrictions in my case:

1.  The hosts MUST be members of the domain.  So the solution cannot be to remove the hosts from the domain.

2.  I do not have another physical machine on which to put a domain controller.  My two domain controllers will be VMs. So creating another physical domain controller cannot be my solution.


Doug Pruiett Good News Jail & Prison Ministry Richmond, Virginia www.goodnewsjail.org

the server encountered an error trying to edit the virtual disk

$
0
0
Dear Members.

I have Server running on Under Hyper V, due to hard disk size, i have created  a new virtual hard drive fixed 80 GB, my plan is to increase the size of the hard disk ,

steps i have followed

1, created fixed virtual hard disk
2, shut down the virtual mechine under the hyper v

on the server, action pane selected "edit disk" i have choose the my server existing hard disk and next step selected merge option , on the configure disk option selected " to new virtual hard disk" and selected fixed disk after that selected newly created hard disk and click next and finish..

its showing following error....

the server encountered an error trying to edit the virtual disk....'the file exists..' (0x80070050)

please help me...

Thanks..

Hyper V 2012 R2 - Virtual Switch Manager - Teams Not Showing Up

$
0
0
Hi All,

I am trying to create an external virtual switch but the only options I get are all of the individual network adapters, I do not see the teams I have previously created in the available list to choose from.

                          In 2008 R2 when you create a virtual switch the list of teams show up, am I missing something?

                          Thanks

                          Daniel

VM and VHD Folder Structure

$
0
0
Is there a recommended folder structure to store VMs and VHDs on sever shared storage LUNs? I want it to be organized and make sense. I wasn't sure if there was a best practice for this.

CPU limit

$
0
0
setup a windows 2016 vm to have 20 Virtual processors. The physical hypervisor has 36 in total. When launching the vm it only shows 10. Hyper-v should allow you to over allocate.

Hyper-V MAC Adress Conflicts

$
0
0

Hello Community,

I have a Windows Server 2012 R2 Host with 6 VMs. suddenly the host went inaccessible across the network due to MAC address conflict which was logged in the event log as below.

(Warning) 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.

I've seen a resolution in one of the MSDN wiki (http://social.technet.microsoft.com/wiki/contents/articles/31357.hyper-v-mac-address-conflict-event-16945.aspx) but doesn't seems to be the right way of resolving this (Change the MAC Address Manually - not a good practice at all !)

To Describe more on the setup - we have 4 VMs connected to Production Switch (Shared NIC) | 2 VMs connects to DMZ Network (VLAN Directly binds to VM, Not Shared). When the Host gone inaccessible, All VMS became inaccessible.

Appreciate any thoughts !

Windows 10 Pro, 64bit, 2GB RAM can run Hyper-v ?

$
0
0

Win info:

My Settings:

But , error:

How to solve my problem ?


Mouse & Keyboard not working

$
0
0

Hi Experts,

I have just installed Oracle Linux 5.9 and Oracle Linux 6.4 on Hyper-V (Microsoft Server 2012 R2). but i am unable to doing any thing on it's console like mouse and keyboard is not working under console please help me to resolve this issue.

Hyper-v 2012 R2: "added memory" and "Removed Memory" performance counters not found

$
0
0

I can't find these counters on 2012 R2:

\Hyper-V Dynamic Memory VM\Added Memory

\Hyper-V Dynamic Memory VM\Removed Memory

Shrink the Size of Fixed Size VHD

$
0
0

Dear Server Expert,

We are currently running Windows Server 2008 R2 as the Hyper V server with exchange server running inside this physical server as VMs. All of the exchange server (Transport / DB) are all also running Windows Server 2008 R2. The VHD for the exchange server are all in Fixed Size Disk Format.

Currently, we used different VHD for DB and Log Partition, Each are assigned 600GB. I found that 600GB is a llittle bit too much as we have just used less than 100 GB for 5 Years. may i know is it possible to shrink the size of fixed size VHD into smaller size so i can use the remaining disk size for other purpose? will shrinking is very risky to the VHD?

Thanks

Windows 10 Build 10240 Managing Hyper-V on 2012 R2 Datacenter Cannot Connect

$
0
0

So, we have a total of six Hyper-V servers in our environment. All six were installed from the same Server 2012 R2 Datacenter ISO. I have been managing these from my Windows 8.1 machine with no issues. I got ahold of Windows 10 build 10240, and I am running into an issue connecting to the servers now.

The strange thing is that I CAN connect to one of them. I cannot figure out what is different on this one server from the other five. Windows updates maybe? I migrated all the VMs off one of the servers I cannot manage remotely, performed all Windows Updates, and I still cannot connect to it.

I am reading that Windows 10 should be backward-compatible with managing Hyper-V on 2012, but on connection, it appears a WMI namespace is missing that the Windows 10 tools are trying to connect to.

I am not trying to use alternate credentials (I read this will NOT work from 10 to 2012 R2). Any ideas why this is not working? Several Google searches have not told me anything so far. I realize Windows 10 has not officially been released yet, but a few of us are testing the waters for compatibility issues.

I would appreciate any help anybody can offer.

Eric

Export-VM permission denied while migrating to new scale-out file server

$
0
0

I'm trying to reinstall an old and buggy cluster with server 2012 standard. In order to free that, I need to migrate all VMs to a new cluster. Unfortunately, 'Migrate roles..' does not work, my colleague and I spend hours looking for a solution and we finally abandoned that route. Now, I'm trying to manually migrate them to a scale-out file server with a powershell script. 

For a single vm the logic is as follows:

Get-ClusterResource -Cluster Ctr-old -Name "Virtual Machine test-vm"  | Stop-ClusterResource
Get-VM -ComputerName srv-old-01  test-vm | Export-VM -Path "\\srv-new-vm\VMS\export_vms"
Import-VM -Path "\\srv-new-vm\VMS\export_vms\test-vm\Virtual Machines\793E[...]4090.XML"
Add-ClusterVirtualMachineRole -VirtualMachine test-vm
Get-ClusterResource -Cluster Ctr-new -Name "Virtual Machine test-vm"  | Start-ClusterResource

Running this script on srv-old-01 is not an option.

Executing this on srv-new-01 raises on error on line 2:

Export-VM : Failed to create export directory with error 'General access denied error'(0x80070005): test-vm
(793EA5A0-7BF3-4942-9FC8-BAB471CB4090).
You do not have permission to perform the operation. Contact your administrator if you believe you should have
permission to perform this operation.
At line:1 char:55+ Get-VM -ComputerName srv-old-01  test-vm | Export-VM -Path "\\srv-old-01 ...+                                            ~~~~~~~~~~~~~~~~~~~~~~~~~~+ CategoryInfo          : PermissionDenied: (Microsoft.HyperV.PowerShell.VMTask:VMTask) [Export-VM], Virtualizatio
   nOperationFailedException+ FullyQualifiedErrorId : AccessDenied,Microsoft.HyperV.PowerShell.Commands.ExportVMCommand

The security settings for srv-new-vm\VMS\export_vms allow full read/write access to everyone. I tried adding the hyper-v security id, but something is off here as well:

C:\> icacls \\srv-new-vm\VMS\export_vms /grant "NT Virtual Machine\793EA5A0-7BF3-4942-9FC8-BAB471CB4090":(f)
NT Virtual Machine\7F80A5A0-7BF3-4942-9FC8-BAB471CB9B42: No mapping between account names and security IDs was done.Successfully processed 0 files; Failed processing 1 files

I also noticed that on the folder on srv-old-01, where the vms are currently stored, there is an additional "Virtual Machines" user that has "special permissions". I don't know how to replicate that on the new server.

Any thoughts on what might be wrong with the permissions?

Cheers,
MaartenD



Server 2016 host server rename and local hyper-v manager issues.

$
0
0

If you by chance rename your existing hyper-v server in Server 2016 and you have the full desktop mode installed you might observe the Hyper-v manager not being able to connect to the local hyper-v manager service as well it won't connect to other remote hyper-v servers either. Other hyper-v managers executed remotely on servers not renamed can connect just fine to the server that was renamed. To fix this annoying bug you have to uninstall the hyper-v role and reinstall the hyper-v role on the server that was renamed. In a perfect world my hyper-v servers would be headless, but team members aren't ready for that yet... Please fix as this is in the RTM build.


New Hyper-V Two Node Cluster with Dell MD3200 Shared Storage

$
0
0
I'm about to migrate our environment from 3 physical servers to (2) 2016 Hyper-v Hosts each with 3 VMs. Does anyone know of a good step-by-step For Hyper-V 2016 with shared storage. I've used Hyper-V in test environments before but would like to see any recommendations for configuration and storage locations for Virtual hard disks, configuration files, clustering, joining the host machines to the domain, etc. that I might regret down the road if I set them up wrong now.

Shared Storage Configuration

$
0
0

I'm setting up a new two node cluster and am new to virtualization. I'm having a hard time figuring out how to configure my storage and how many physical drives and raid arrays I should have and then how many LUNs I should break that down to and then placing the VHDs on top of that. I don't want to put all my eggs in one basket but want to have a configuration that makes sense.

I have a 12-bay MD3200 DAS with (4) 4TB 7.2k SAS Drives and (4) 600GB 15K SAS drives. I also have a bunch of 1TB 7.2K SAS drives I can use and 2 or 3 300GB 10K SAS drives I can use. My original plan was to put the (4) 600GB 15K drives in a RAID 10 and put the SQL data and Log VHDs on it using two LUNS each with a VHD on it. Then use the (4) 4TB drives in a RAID 10 for everything else (VMs and VHDs).  I'm starting to question if I should have more RAID Arrays then this. For Instance, should I do (2) separate 600GB RAID 1s, one for SQL Data, One for Logs? Should I have (2) separate 1TB RAID1s for the Exchange data and logs? Here are the VMs I'm setting up, if you can make any drive recommendations for what drives to put in my Power Vault, what RAID arrays I should Create and how many LUNs I should setup for my shared storage I'd appreciate it. Below are the VMs I'm going to be creating.

SharePoint

SQL

Exchange

RDS

Office Online Server

File and Print Share Server

Microsoft Hyper-V VSS Writer is not listed

Server 2016 Hyper-V Virtual Machine Always Turns Off

$
0
0

If I try to restart a virtual machine, hyper-v always turns them off instead of rebooting.  I have to use the hyper-v manager to manually start every instance if a restart was issued within the VM.  It does not seem to matter what OS the VM is, it happens with Linux, server 2016 and 2012 R2 instances.

I notice an error:  'VM-****' could not reinitialize. (Virtual machine ID *******-****-****-****-************)

I thought at first it might be permissions but the hyper-v host is in an OU with blocked inheritance.

What might be causing VM's to fail to reinitialize? 

Viewing all 19461 articles
Browse latest View live




Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>
<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596344.js" async> </script>