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

Bitlocker within Virtual Machines on Hyper-V 2012 R2 Host

$
0
0

I'm just trying to get a definitive answer to the question of can we enable Bitlocker encryption within a VM that's housed on a hyper-V 2012 R2 host?

Some posts I've seen say it can be done and detail the steps, but others suggest that you can only use Bitlocker on data drives within the VM and not boot drives.

Can anyone please clarify the situation for me?

Cheers for now

Russell


Random failure when trying to start a new VM (file used by another process)

$
0
0

Hi, I'm a maintainer or docker-machine hyper-v driver and I'm trying to improve/fix the driver.

The problem that I'm facing is that often when I try to start a VM I just created, it fails with this error message:

Start-VM : 'default' failed to start.
(default) DBG | Microsoft Emulated IDE Controller (Instance ID 83F8638B-8DCA-4152-9EDA-2CA8B33039B4): Failed to Power on
 with Error
(default) DBG | 'The process cannot access the file because it is being used by another process.'.
(default) DBG | Failed to open attachment 'C:\Users\dgageot\.docker\machine\machines\default\boot2docker.iso'. Erro
r: 'The
(default) DBG | process cannot access the file because it is being used by another process.'.
(default) DBG | 'default' failed to start. (Virtual machine ID 2DF1FC70-16EC-488D-B49B-581554A19E17)
(default) DBG | 'default' Microsoft Emulated IDE Controller (Instance ID 83F8638B-8DCA-4152-9EDA-2CA8B33039B4): Failed t
o Power on
(default) DBG | with Error 'The process cannot access the file because it is being used by another process.' (0x80070020
). (Virtual
(default) DBG | machine ID 2DF1FC70-16EC-488D-B49B-581554A19E17)
(default) DBG | 'default': Failed to open attachment 'C:\Users\dgageot\.docker\machine\machines\default\boot2docker
.iso'. Error:
(default) DBG | 'The process cannot access the file because it is being used by another process.' (0x80070020). (Virtual
 machine ID
(default) DBG | 2DF1FC70-16EC-488D-B49B-581554A19E17)
(default) DBG | At line:1 char:1
(default) DBG | + Start-VM -Name default
(default) DBG | + ~~~~~~~~~~~~~~~~~~~~~~
(default) DBG |     + CategoryInfo          : ResourceBusy: (:) [Start-VM], VirtualizationException
(default) DBG |     + FullyQualifiedErrorId : ObjectInUse,Microsoft.HyperV.PowerShell.Commands.StartVM

What I don't understand is that this message sometimes appears when I have zero VM created yet.

Each vm has it's own copy of the iso file mounted as a DVD so I don't how the file could be in use by another process.

I use this command to attach an iso to a newly created vm: 

Add-VMHardDiskDrive -VMName default -Path path_to_b2d.iso

I tried retrying the Start-VM, waited before each retry. No success

What's really frustrating is that when docker-machine fails to create the VM, I can start it manually withStart-VM default. And it works every time. It can also be started from the GUI without any change to the configuration.

Hyper-V Virtual Domain Controller Server : Going on/offline constantly.

$
0
0

Everyone,

I have a hyper-v virtual Domain controller (server 2012) that started going offline randomly first of this week.  Tuesday I opened a ticket with microsoft, of which has not really helped ...i feel tossed around between network/backup/fileshare teams. No offense meant, but i can't get a call so a bit frustrated. 

The host is online 100%, no outtages or downtime.  I have other virtuals on this host that are working 100%.  This DC, going down all the time, and it's not dependable at all. 

Do you all have any suggestions at what could be causing this?   I'm open to any suggestion/help.  

Troubleshooting i've tried:

i moved the DC off the onboard nic thinking it was overloaded, and i installed a dedicated nic with updated drivers/etc.  On the new/dedicated nic, it does the same thing.  

Thoughts?  i'm at your mercy guys.  My next step is to completely start over.  I don't want to do that if at all possible. 

Failover for Hyper-V VM's

$
0
0

I am working on Hyper-V replication, I have replicated 1 VM from our one DC to another DC. I have performed failover but while performing i have kept source Vm running, Do i need to click failover on 2nd host as well. DO we need to perform fail over from both hosts.


Akshay Pate

should the host be Core only?

$
0
0

Windows Server 2012 R2

we're starting to build our VM from Oracle VM to Hyper-V. in comparison, the Oracle VM hosts only have Linux CLI installed. no GUI. for Hyper-V, there is a GUI installed with Windows Server 2012 R2. in wanting to squeeze out every bit of performance, is it advisable to install Core only or will the gains be so minimal it's not worth it?

chkdsk error on Hyper V Cluster

$
0
0

How Can i resolve below error ?

through Disk Maintenance

Hyper-V Client Configuration Maximum Resource Allocation Question

$
0
0
I have a Hyper-V host (win 2012) with 192 GB memory, 2 processors has 16 cores. I am going to bring up a hyper-v VM (version 2) with 24GB of RAM and 10 virtual processors. My question is am I over doing my Hyper-V VM with 10 processor? the host has only 2. Is there a tool that tells me how much processors and RAM I can configure on VMs based on the resources of the host? Thanks.

Thang Mo

Planned Failover Question

$
0
0

Hi

We are moving premises and to facilitate the IT move have set up a new Hyper-V (2012R2) Cluster.  This is all fine but what I don't what to have to do is set up reverse replication for our VMs - the infrastructure they will reverse back to will be removed and re-used elsewhere.

Is there any way to perform a Planned Failover without doing the Reverse Replication?

Many thanks


Hyper-V 2008 R2 SP1 Dynamic memory question

$
0
0

Hello - im asking a Dynamic Memory question, I have done some searching on this and come across a lot of forum posts on here, just nothing has answered my particular question.<o:p></o:p>

I understand that Dynamic Memory will grow from initial to max as needed, but will never release the memory - so if the VM grows from 2.0GB to 5.0GB and then all of a sudden only needs 3.0 GB of memory the guest’s Task Manager will reflect the max size it has grown to, and the Hyper-V Manager shows actual usage..... am I right?<o:p></o:p>

So my question is - I am running a VM for Dell/WYSE WSM and initial size is 10gb max is 16gb. I am afraid that the dynamic memory is not working as intended in this scenario, as the Guest task manager shows its 96-98% utilized on its memory, and I have a 20% buffer so it should have expanded by now. The Hyper-V manager shows 5.8GB in use. <o:p></o:p>

Everyone always says that the Hyper-V manager is the correct value, but in this case im not so sure. I get that a VM can have its memory expand up to max, but the VM’s task manager should always reflect the amount of actual in-use memory, and then grow again as needed. I believe that the task manager in the guest is accurate and the Hyper-V manager is wrong but I dont know how to verify that 100%. Shouldn’t the guests task manager be showing somewhere near, within 1GB of what Hyper-V manager shows is used? So 6.3/10.0 GB instead of 9.8/10.0 GB?<o:p></o:p>

I do know that even with a 16GB cap, it will eventually freeze up and when it does if I happen to be looking at the task manager on the guest, it always shows about the same size, 11GB or just under as the allocated RAM and Hyper-V manager is also usually around the 6.0 GB or just under mark.<o:p></o:p>

Any advice would be great, thanks in advance!<o:p></o:p>


Can assign same key to guest VMs which has already been assigned to Physical Host machine for activating Windows?

$
0
0

I am confuse to activate the Windows of Guest Machines which are hosted on MS Windows Server 2012 R2 Standard Edition. Same edition of Windows is installed on Guest VMs.

 

I know that License Keys are assigned to Physical Server for activating the Windows of Physical Server and One License of Windows Server 2012 R2 Standard Edition with two Physical CPU is applicable for only two guest VMs.

Please confirm that can we use same license key for activating Windows of Guest VMs however same key has already been used to physical host machine for activating its Windows.

 

Please help out……..


Principal.System Engineer

time issue

$
0
0

Hi,

had to perform some job on Hyper-V host (2008 R2) of Remote Site.

When logged in found a weird time issue.

Two VMs (2008R2) running on Host: one is DC and other Print Server.

DC shows correct time, while Host and second VM (print server) are 10 min ahead.

1. Time sync is unchecked in both VMs settings

2. Logon server for the Host and second VM (showing wrong time) is DC (running on the same host).

3. All three are on the same Site and subnet.

What is wrong?

Thanks.


--- When you hit a wrong note its the next note that makes it good or bad. --- Miles Davis

VM performance suffers after migrate to Hyper-V

$
0
0

Windows Server 2012 R2

we started with all our Windows 2008 R2 servers implemented in an Oracle VM environment. this OVM environment only have 1Gb network ports, however, but the performance though not fast, is acceptable in our production.

when we implemented Hyper-V (using IBM servers; with 10Gb network ports), we migrated several VMs from OVM to Hyper-V. what we found is that the VMs in Hyper-V only have a transfer rate of around 2000KB/sec compared to the VMs in OVM that have 8000KB/sec at least.

with Hyper-V having 10Gb/sec ports, why is this network performance issue?

copy files to Hyper-v 2012 R2 server

$
0
0

Hi all,

this sounds like a silly question to me but I can't figure it out:

I am using export/import to move a vm from a Windows 2008 hyper-v install to our brand-spankin' new Hyper-v 2012 R2 host.  Every guide I have read talks about doing the following:

1. export function to save all the files to a local drive on the 2008 server

2. copy the files to a local drive on the hyper-v 2012 server

3. import them.

I am stumped on step 2.  I can't find an available file share on the hyper-v server.  what the what? 

do i need to do something silly like copy the files to a usb drive, plug it into the hyper-v server, then use the available command line to copy the files?

Why do we use IDE

$
0
0

Greetings all

As you all know in Generation 1 VMs we use IDE (or PATA) as the Disk Controller but why we don't use a virtualized SATA as the Disk Controller since the speed is more than PATA ?

Although all of these happens in the scenario that in PATA  sends 8 bits at the same time but  SATA  sends 1 bit at the same time so why SATA is faster ?

Hyper-V fixed disk issue...

$
0
0

Hi all,

I have a very odd issue with hyper-v.

I have a hyper-v host with two local direct attached disks. One C drive and one E drive. The E drive used for VHDs and the associated VMs, snapshots etc.

I also have a VM which is a DC called DC1. DC1 has two VHDs attached. One for the C drive and one for the D drive used for data, files shares etc.

The C drive on DC1 is provisioned as a dynamically expanding disk: 120GB.

The D drive on DC1 is provisioned as a fixed disk: 900GB

The issue is, the E drive on the hyper-v host is tight for space, the disk is 1.3TB in total. So 900GB is being taken by the fixed disk (drive D on DC1) and 20GB is being taken by the dynamically expanding disk (C drive on DC1) if the space on this C drive expands too much we have a real issue of course.

My concern is that someone has way over provisioned the D drive on DC1, it should not have been allocated 900GB as there is only 342GB being used on the disk. But as its a fixed disk it is taking a massive 900GB of space from the E drive on the hyper-v host.

Now then.. what makes this interesting is... on my initial inspection of the issue, I seen the 900GB drive as a dynamically expanding disk and I seen the C drive as a fixed disk. So I though ok great, I can simply compact the dynamically expanding disk after moving some old data of the D drive on DC1 and pull a big chunk of data back. This was not the case, this was my error, in actual fact it is the other way round, the 900GB drive is fixed and the 120GB C drive is dynamic. So anyway... I then did a compact on the C drive (at this time still thinking I was actually compacting the 900GB D drive) which then reclaimed a huge chunk of data from the E drive on the hyper-v host.

Now I have 240GB of free space on the E drive of the hyper-v host (after deleting old unwanted data from the D drive of DC1) AND compacting the C drive of DC1. This entire issues is an issue and is under investigation as I received an automated alert telling me the E drive on the hyper-v host had 0.4% disk space. This obviously needed action taking as the DC was going into a paused state.

One of my colleagues say this is just sheer coincidence that the C drive compact happened to need compacting therefore a large chunk of space was freed up on the E drive of the hyper-v host. I really hope this is the case otherwise I feel all my knowledge of hyper-v and storage is a total waste of time.

My next question is.. how is best to reduce the size of the D drive on DC1? I have tried to shrink the volume from windows on DC1 however the shrink volume wizard only allows me to shrink by 89GB, which isn't any good really. I assume there are some file locks slap bang in the middle of the disk therefore cannot reclaim the space. Could I use hyper-v to shrink the disk maybe? It is a live production environment so I need to be very careful.

Thanks in advance and any help would be greatly appreciated.

Thanks


Windows Server 2012 - Can occasionally not access second virtual hard drive inside a VM

$
0
0

I run Windows Server 2012 RTM Hyper-V and I can occasionally not access the second virtual hard drive (dynamically expanding VHDX) attached to the VM through the virtual SCSI controller. I can however access the first hard drive that is connected with the virtual IDE controller.

I get the following warning in the event log under “Administrative Events” every 30 seconds when this happens:

  • Log Name: System
  • Source: Storvsc
  • ID: Storvsc
  • Message: “Reset to device, \Device\RaidPort0, was issued.”

I get this error once or twice a week and it has caused serious problems since one of the virtual servers that have this problem is a fileserver and the second hard drive contains all the data.

The only quick solution to the problem that I have found is to force the virtual machine to stop using the “Turn Off” feature since a normal shut down does not work (stops at shutting down the event log or similar) and then start the virtual machine again.

You can also wait for about 30 minutes or longer until the disk for some reason becomes accessible again by itself.

My research into this problem shows that:

  • Only 2 of the 10 VMs running Windows Server 2012 RTM that I have, have this problem.
  • Both these VMs have a second virtual hard drive (dynamically expanding VHDX) that cannot be accessed for 30 minutes or longer.
  • Check Disk of the virtual hard drive shows no errors.
  • The second hard drive is attached to the virtual SCSI controller.
  • I can find no problems at all with the physical storage on the (not related) 4 hosts that I have. The problem exists only in the VMs.

I have now attached the second virtual hard drive to the virtual IDE controller to see if this permanently fixes this problem (i.e. does not happen for at least a week).

Is there something wrong with the virtual SCSI controller or the virtual SCSI device driver that comes with Windows Server 2012 RTM? Does anyone else have this problem?

Bug with Wbadmin / VSS and VHD files

$
0
0

Hi There,

Whilst working on a little backup application I've hit a strange bug which has caused me quite a lot hair pulling and teeth gnashing. To reproduce:

  • Create a new VHD using Disk Part or Diskmgmt and format 
  • Either mount the VHD to a drive letter or take note of the \\?\Volume identifier, problem occurs however you access it
  • Run wbadmin start backup where -backupTarget is your VHD volume/drive letter. For testing I would recommend you use a smaller partition so you're not waiting on this job forever
  • Wait for wbadmin to complete. I've also been waiting for the VSS service to move to the "Stopped" state so the job is definitely done.
  • Detach VHD
  • Reattach VHD and repeat backup process, Detach VHD, Attach VHD, repeat backup process, etc.

You usually have to run between 2 - 6 backups for the problem to occur but very soon you should find that all previous VSS shadows are lost and only one backup exists in the archive. The Windows System log will also show the message:

volsnap EventID 27

The shadow copies of volume [volume] were aborted during detection because a critical control file could not be opened.

EventData
DeviceName
VolumeName[volume]
NTSTATUSc0000043
SourceTag173
SourceFileID0x0001
SourceLine5489
0000000006003000000000001B0006C0AD000000430000C00B000000000000000000000000000000

Binary data:

In Words

0000: 00000000 00300006 00000000 C006001B
0010: 000000AD C0000043 0000000B 00000000
0020: 00000000 00000000

In Bytes

0000: 00 00 00 00 06 00 30 00 ......0.
0008: 00 00 00 00 1B 00 06 C0 .......À
0010: AD 00 00 00 43 00 00 C0 ­...C..À
0018: 0B 00 00 00 00 00 00 00 ........
0020: 00 00 00 00 00 00 00 00 ........

-----------------------------------------------------------------------

The problem seems to be related to detatching the vhd file. As soon as you detatch the volume then the problem will usually occur soon after. If you do not detach the file then the error does not occur and you can even reboot and reattach and the wbadmin job works correctly.

I've also noticed that sometimes after the job is complete the VHD file is locked out (long after the VSS service has ended and the Block Level Backup process has ended) but Sysinternals Process Explorer does not list any process as locking the file. However if you try to mount the volume in disk part you get the message:

DISKPART>
DiskPart has encountered an error: The process cannot access the file because it is being used by another process.

It seems like either the VSS service or the Wbadmin job is not correctly closing the VHD and leaving it in an erroneous state so detaching the volume causes the VSS catalogue to corrupt. 

Could the issue be logged as a bug and investigated?

Thanks very much,

Olly


Olly

Failover Cluster - Windows Update Server Restart

$
0
0

Hi,

 I have a cluster with 2 Hyper-V nodes. Server 1 and Server 2. There are 60 Personal VMs and 10 Pooled VMs reside on these 2 servers. 30 Personal are on Server 1 and 30 Personal + Pool are on Server 2.

Updates are applied to Server 1 every 3rd Tuesday of the month from SCCM and server will restart. All VMs failed over to Server 2 which caused the 98% memory usage. I have to manually perform live migration the 30 back to Server 1. Is there is best way of doing this where I don't have to manually perform live migration? Powershell script? CAU?

Thanks


Tuan


USB redirection possible with Windows 8.1 Pro Hyper-V?

$
0
0

Hi, I've been searching on this topic for a while and I seem to see conflicting information everywhere, so I'm not sure where to turn now.

I've got a USB scanner on the host machine that I need to give access to the VM.  I've set up the enhanced session on the VM and have even tried RDPing into the VM as some have suggested, and set up access to all local PNP devices (though the scanner is never listed) in both instances, but the scanner is not listed in the device manager nor is found by the program which is supposed to use it.

This following link seems to suggested that maybe I need Windows 8.1 Enterprise on the VM (and maybe even the HM) in order for the USB ports to be recognized:

http://blogs.msdn.com/b/rds/archive/2012/11/26/remotefx-features-for-windows-8-and-windows-server-2012.aspx

Any thoughts on this?

Windows 2012 R2 Hyper-V replica

$
0
0

Hi.

I have a Windows 2012 R2 server running Hyper-V role.

There are two VMs running, each with MS SQL 2012 STD, hope someone can help me on this

The MS SQL 2012 are configured in Simple Recovery Model. No Logs.

1. Does Hyper-V Support MS SQL 2012 running on VM? 

How about MS SQL 2008 on a VM or MS SQL 2008 R2 on a VM ?

2. Can I replicate the VM with MS SQL using simple recovery model  to a second server? Will I encounter any issues?

3. Can I replicate the VM with MS SQL using full recovery model (with transaction logs)  to a second server? Will I encounter any issues?

4. I've properly sized my servers base on Dell's DPACK tool, how much buffer space should I add for Hyper-V replication engine?

Thanks,

Paul

Viewing all 19461 articles
Browse latest View live




Latest Images