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

while deleting the virtual machine .vhd folder -- error msg : the process cannot access the file beacuse it is being used by another process

$
0
0

When i am trying to delete the Virtual Machine folder/directory i get the below error. Virtual machine is turned off

V:\>rmdir ME-EXCAS01 /s
ME-EXCAS01, Are you sure (Y/N)? y
ME-EXCAS01\ME-EXCAS01\Virtual Machines\1B1FD14E-B3F0-4232-9F96-2A871E879CD6.xml
- The process cannot access the file because it is being used by another process
.

How to delete the whole folder ?

Thanks


How to acheive euivalent VMWARE's thin/fast clone in Hyper-V?

$
0
0

Hi buddy's,

    Right now I am doing some invetsigation on how to  acheive euivalent VMWARE's thin/fast clone in Hyper-V?

    There is some concept of differential disk in Hyper-V , using which we can create a virtual machine which whill be pointing to some base image.

But once I poweron that base image VM , then no more I can boot my VM with differential disk because I will end with some error "The chian of virtual disks is corrupted. There is mismatch between identifiers of parent vhd and differential vhd"

  Guys , I am expecting some help here . Either help me to get rid of this error or tell me if some other way to acheive my functionality.

Thanks in advance,

Rakesh

Licensing on Hyper-v VMs

$
0
0

Hi,

Is this correct? Using Windows 2008 R2 Enterprise Hyper-v with GUI we can run 4 "free" any server editions VMs (Windows 2008/2012 R2 Ent/Std).

Using Windows 2012 R2 Hyper-v with GUI, how many free VMs (Windows 2012 R2 Ent/Std) we can run?

Thanks

Re-enabling replication fails

$
0
0

I am testing 2012R2 replication with extended replication to a remote DR facility to see what the process is to restart replication if there are changes to the vhd configuration on the primary server, without having to destroy the replicas and replicate the whole vm again. I've read blogs about removing replication on primary & replica, adding the vhd to both and then re-enabling replication, but I cannot get this to work in my envionment.

Even in the most simpliest scenario re-enabling replication fails:-

Stop replication of a vm in both the primary and replica servers.

Start the replication wizard on the primary and select use an existing vm on the replica server as the initial copy.

Error: The virtual disks for the replica vm are not present on the replica server.

HyperV Network Adapters causing issues for the guest OS

$
0
0

Intro

I work for a managed IT services company that takes care of a large amount remote sites for a single organisation, each site larger than a certain size gets a Hyper-V Server running Server 2008r2 with one Guest OS running windows server 2008r2, this Server provides File, Print, DC and SCCM Content Distribution services for that site. Whilst we're migrating a new site into our system the Guest OS has two Virtual NICs - one that is connected the new network the other is connected to the old network, this is achieved using VLANs and allows us to move data easily between the Old and the New.

The initial Problem

Recently we installed a new server at a site and migrated it into our system. All has been going fine for the last two weeks but today just as we were doing the final shutdown of the old equipment and moving our gear into the cabinet something happened. The Hypervisor and Guest came up after a shutdown during the move and for some reason the Virtual NICs that were attached to the Guest didn't seem to be working. So, a few things were tried.

These are the steps we've taken so far.

  1. Tried to uninstall/reinstall the NIC on the guest, this resulted in the device manager sitting at the "uninstalling" window for at least an hour, so it was assumed that this step failed
  2. Tried Shutting down the Guest, it sat at "Stopping" for about half an hour, So it was assumed that this step failed
  3. Tried Shutting down the Host, it sat at "Shutting Down Hyper-V Management Services" for about another half an hour, so it was assumed this step failed
  4. Triggered a Hard reset
  5. The Hypervisor comes back up, the Guest OS autoboots, tried shutting down and it stalls again, tried editing the settings but they take.
  6. Repeat of Steps 2-4
  7. The Hypervisor comes back up, the Guest OS autoboots, before trying to shut down the guest change the Guest OS settings so that it will not boot automatically, tried shutting down the guest and it stalls again
  8. Repeat of Steps 2-4
  9. The Hypervisor comes back up, the Guest OS does not autoboot, try removing the NICs and Add back in one
  10. Start the Guest
  11. The Guest OS still has issues with the adapter
  12. Try shutting down the Guest OS and it hangs again
  13. Repeat of Steps 2-4
  14. The Hypervisor comes back up, the Guest OS does not autoboot, Removed the NIC from the Guest
  15. Start the Guest
  16. No issues with the Network and sharing center but also no NICs
  17. Start DevMgr and remove the disconnected devices hoping that it is just them causing the issues
  18. Shut down the Guest OS, it shuts down cleanly
  19. Add in a NIC again
  20. Start the Guest
  21. Guest OS has issues
  22. Repeat of Steps 2-4
  23. The Hypervisor comes back up, the Guest OS does not autoboot, Removed the NICs from the Guest
  24. Repeat of Steps 15-18
  25. Decide to try using a legacy adapter instead of a normal one
  26. Boot Guest
  27. The Guest OS doesn't have any issues
  28. It appears that everything works

The Issue Now (and my questions)

This fix is about as temporary as it gets, Legacy Network Adapters only allow 100mbps and this will cause issues further down the road with this site, its size and how intensively our users use the File sharing Services on the server.

Has there been any recorded occurrences of the Hyper-V adapters causing issues for the Guest OS?
Does anyone have an idea how I could fix this issue?
Is there some kind of patch that will fix this issue?

If all else fails we can rebuild the Guest OS but the amount of effort and pain that would take is quite unattractive....

Error applying Hard Drive changes

$
0
0

Hi,

i am trying to add previously created VHD to VM but i can not 

i got this error msg.

Failed to add device "Virtual Hard Disk"

Attachment "path" failed to open because of error"the process cannot access the file because it is being used by another process""

Note: there is no other VMs use this VHD, i am trying to use it or remove it permenantly

Hyper-V Virtual Machine DNS Records Delete After Live Migration

$
0
0

Our setup is as follows...

(3) Hyper-V Hosts

(2) 2012 R2 Virtual Domain Controllers

CSV Storage

When I Migrate a Virtual Server from one host to another the A record for that server gets deleted from DNS.  I can do an ipconfig /registerdns on the VM and it will populate in DNS, but as soon as I migrate the server to another host it will erase again. We're not seeing any errors in Event Viewer.  Within ADSI Edit the dNSTombstoned attribute turns to TRUE after a migration, then back to FALSE after we run ipconfig /registerdns 

Any idea why this would be happening or how I can fix this issue?

join workstation to a domain

$
0
0

hey everyone.  i want my workstations to join the domain but it's not working when i ping workstation to the AD shows time out . if its possible to join them to the domain. how can i do that  ?

the domain controller installed with windows server 2012 hyper-V

the workstations are physical

network structure

router 192.168.1.1

Hyper-V :two VSwitches : int and lan

Clearos VM act as a gateway , with two interfaces external for an internet access connected to the iln vswitch  , the second for the lan connected to the lan vswitch

AD act as  DC + DNS + DHCP (192.168.2.20 --> 192.168.2.100 )

i tried to put a pic for the network structure but i cannot until the verification of my account


HyperV - VM startup order?

$
0
0

We have several VM's that auto start after reboot of physical server.  Its a slow painful process when all of the VM's concurrently auto start (maybe 30 minutes before they all finish).  The DISK IO is especially high during this process.   Is there a way to sequence VM startup so that VM A starts first then VM B starts second? 

Currently on Win2008 but moving to Win2012 in the near future.

Importing Virtual Machines

$
0
0
I have a hyper-v server that got the BSOD so I reinstalled the OS and my machines were saved on another drive.  I tried to import the vms but I can't get the network connectivity going.  I created a virtual switch (VLAN 98 Port 1) but its not allowing me to connect to anything from the virtual machine.  Please help.  Thanks.

[Forum FAQ] Ethernet Resource Pool in Hyper-V

$
0
0

Symptom


When you perform Live Migration or Export/Import between Hyper-V Hosts, you may have a technical issue saying VM cannot find the network switch. (Figure 1)


The following configuration errors were found for virtual machine “Name”.

Could not find Ethernet switch “Name”.


Figure 1


Solution


To avoid this error, we can enable Ethernet Resource Pool on two Hyper-V hosts (test005, test010) and we can follow the steps below to configure it.


Step 1: Configure VM and vSwitch


In this demo, we create an internal virtual switch named “Pool-Internal” on host test005, and connect the “Pool-Test” VM to “Pool-Internal”. (Figure 2 and Figure 3)


Figure 2


Figure 3


Step 2: Create Resource Pool


We use PowerShell command “New-VMResourcePool“ to create an Ethernet pool.

New-VMResourcePool -Name TestEthPool -ResourcePoolType Ethernet

To add the Virtual switch to resource pool, we use “Add-VMSwitch”. (Figure 4)

Add-VMSwitch -Name pool-internal -ResourcePoolName testethpool


Figure 4


Step 3: Configure Resource Pool


We can see Resource pool is available in the settings of the VM Pool-Test on Test005. (Figure 5 and Figure 6)


Figure 5


Figure 6


Step 4: Create Resource Pool on another Host


Use the same commands in steps 2. (Figure 7)


Figure 7


Step 5: Perform Live Migration or Export/Import


We are able to export the VM “Pool-Test” and import it into Hyper-V Host test010 successfully. (Figure 8 and Figure 9)


In the procedure of importing, it will not prompt the option of selecting network connection, and it still connect to same pool.


Figure 8


Figure 9


Please click to vote if the post helps you. This can be beneficial to other community members reading the thread.

Hyper V internal network no ping between real and virtual server

$
0
0

Hi

I have a 2012 server with a static 192.168.1.102 ip address and a 255.255.255.0 subnetmask. This server can be pinged by other servers. 

On this server I have Hyper V installed, and configured a virtual internal network switch. 

In Hyper V, I installed a 2012 server, using the virtual internal network switch, with the static 192.168.1.111 ip address and 255.255.255.0 subnetmask. The virtual server can ping other virtual computers using the same virtual internal network switch.

However, the host server can't ping the virtual server and vice versa. What am I doing wrong? I there something else that needs to be configured?


Second drives on Hyper-V guests failing suddenly

$
0
0

In past 2 months or so, we have lost 3-4 Hyper-V guest systems that had a second drive attached via the virtual SCSI adapter. Up until this time, these servers have run flawlessly for 3 years+. The drives appear on the host, but if you try to access them, they tell you that the disk cannot be found. However, the .vhd is full size and sitting in the SharedCluster storage folder where they belong.

Even if I create a new server or drive from scratch, in short order the second drive becomes unusable, even if I create it as an IDE device instead of SCSI.

I have 2 host servers running 2008 R2 Enterprise connected to a Equallogics SAN via iSCSI in a 2 node cluster.

Oddly, the boot drives seem to not have any issues, on old or new servers. It's only the second drive. Very odd, and scary. Any ideas out there?

SQL support for Hyper-V Replica

$
0
0

One of the requirements for allowing Hyper-V replicas of SQL is to enable the PowerShell parameter -EnableWriteOrderPreservationAcrossDisks (KB956893). I have Hyper-V hosts running Windows Server 2012 SP1. It would appear that this flag is already set to $true when checking Get-VMReplication. Does anyone know if this parameter is enabled by default? The help pages do not say. Thanks.




Hyper-V guest boots to recovery console after shutdown

$
0
0

I experience the following scenario:

After a hyper-V host (W2008R2 Ent.) is restarted, the guest VMs (W2008R2 Ent.) boot randomly to recovery console. This means some of the VMs boot correctly into Windows server environment while others boot into recovery console. Whether the recovery console is booted does not depend on the particular VM i.e. on one occasion a given VM boots correctly next it boots into recovery. Most frequently this happens after updates have been installed and the hyper-v server restarted.

Neither the system log or the application log reveals anything out of ordinary, shutdown procedure is executed in a standard manner without any problems. The same about the bootup after hitting cancel in recovery console. There is no mention about entering the recovery console in the log.

Can you please guide me through troubleshooting. I suspected that the hyper-v host shuts down before the guests are all off but in this case I would hope to see a notification from the system that the previous shutdown was unexpected which does not happen.



Hyper-V Issues

$
0
0

Hello, I seem to be experiencing major issues with Hyper-V on Windows Server 2012. Basically, when I try to add a resource and/or change virtual machine settings in Hyper-V it takes an extremely long time... 30+ minutes to make the change. After a really long time, the state of the virtual machine changes to Off-Critical. This affects other virtual machines on the same box.

This is a new install of Windows Server 2012 with all updates applied. I've also had the same thing happen when no updates were applied.

According to resource monitor, nothing is being pegged. Disk also looks good. CPU is under 5%. Memory is under 10%. I have no idea what the heck is going on. The only thing that I can think of is that I have recently installed new 128 GB of RAM in this box. The memory is obviously compatible as I wouldn't be able to boot otherwise.

I have three 3TB SATA disks in Parity mode used to stored all virtual hard disk files.

Any suggestions would be greatly appreciated.



Log Name: Microsoft-Windows-Hyper-V-VMMS-Admin Source: Microsoft-Windows-Hyper-V-VMMS Date: 14/07/14 01:47:33 Event ID: 19100 Task Category: None Level: Error Keywords: User: SYSTEM Computer: XXXXXX

$
0
0
I am having the same problem with our VM, we created snapshots into our VM server and deleted it but the process that we did was wrong, we deleted the snapshots inside the Hyper-V starting from the old snapshots to the latest snapshots and when i powered off the VM it is giving me the error 19070 ['VM name' background disk merge failed to complete. General access denied error (0x80070005)]. Now we are having a problem as we did the snapshots to our production server and I am worried on the Hard disk space. please anyone out there who can help me delete my .avhd file.

Routing and Remote Access + Hyper V

$
0
0

Hi Everyone,

I have a setup where i need three VM's running on a server 2012 r2 host.

One of the VM's i would like to be isolated from the rest of the network, but still have access to the internet.

For this virtual machine i have created an internal virtual switch and used Routing and Remote access to NAT the "public" and "private" NIC's

NIC Details below

"Public"
IP: 192.168.10.11
Netmask: 255.55.55.0
Default Gateway: 192.168.10.254
DNS: 192.168.10.254

"Private" (internal VM switch)

IP: 192.168.1.1
Netmask: 255.255.255.0

I have installed RRAS and used the below text as a guideline. Select LAN Routing and NAT and click Finish. Click on Start Service when prompted. This will configure the RRAS server and start the RRAS service. Notice that RRAS server will have a green up arrow denoting that server is enabled and configured.

9. Expand IPv4, Select NAT, make a right click on it and select New Interface. Select Public and click OK.



10. You will be prompted to Select Interface type. Select Public Interface connected to Internet and Select Enable NAT on this Interface. Click OK.

From the Islocated VM, i can access 192.168.0.1 fine and browse to the server UNC path, i also cannot ping any toher VM.

BUT, i have no internet access.

My guess is RRAS is not routing the HTTP traffic correctly (this is also ticked in RRAS) but i ran out of ideas.

Any help would be magic!

Very Slow login to a VM DC

$
0
0

Hi there, 

We have a DC for a second domain running as a VM. Recently the time to login has been taking very long. What could cause this? How can i resolve it?

The host server is running Server 2008 R2. This problem just started happening a few weeks ago. 

EDIT: It also takes a long time to login with remote desktop. It takes about 5 minutes for the prompt for the login info to even come up. This is the only server that this is happening to.

Permissions issue moving VM to other drive

$
0
0

Hi

I'm running a single installation of hyper-v on a WS 2012 machine. It's not domain-joined and I'm logged in as the local admin account.

I'm attempting to do a move of my VM's vhdx file in hyper-v manager. I've only got local drives and I'm moving it from my SSD (C:) to my HDD (D:).

The steps I'm doing is in short: Move->Move vm storage -> Move only vm hard disk etc. The VM is actually powered off, but I've tried on powered on ones to. I know that live migration between hyper-v hosts requires a domain, but that's not of any interest until (if) I gets another server.

Event viewer is able to tell me this:
Storage migration for virtual machine '<name>' (DDC5063D-533C-4A35-8045-6CDE64EC4E17) failed with error 'General access denied error' (0x80070005).

Migration did not succeed. User does not have enough rights for 'C:\Virtualisering3\hyperv'.

Viewing all 8743 articles
Browse latest View live


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