Virtual hard drive attached in VM in windows server 2012 r2 becomes offline after administrator logoff

Posted on 2014-11-13
Last Modified: 2015-02-18
I have a new Windows Server 2012 r2 environment that is a domain.  I have 3 VM's running on the host.  The host has a VHDX attached to a NAS that is used for backup of the machine, except for the VM's which I didn't want to backup from the host since one of them is running Exchange 2013 and I didn't want to stop receiving email during the backup process.  The host backup runs fine, without an admin being logged in.  I logged into the Exchange Guest, created another VHDX on the same NAS (in a different folder) and setup backup on the guest.  When I manually run backup on the guest it is successful.  When I schedule it, I get notification that it is started, but it never completes.  When I look at the logs, I get an indication that the backup drive is offline.  More digging tells me that the volume is not available.  Is there some setting that I need to enable to allow this connection to remain even when I log off?
Question by:Wyant Niswonger
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 7
  • 4
LVL 20

Expert Comment

by:Svet Paperov
ID: 40442895
My guess will be that the NAS OS is not compatible. Did you try upgrading its Firmware?

Windows Server 2012 supports VHDX files a Windows Server 2012-based SMB share only.

My recommendation will be using iSCSI, if supported on the NAS device, instead of shared volume. iSCSI protocol is much more stable and portable between different manufactures.

Author Comment

by:Wyant Niswonger
ID: 40453403
I setup an iSCSI partition on the NAS, and then connected to it on the VM.  The backup (Windows Server 2012 r2 with Exchange 2013 SP1 running on it) finally completed, but it took over 13 hours.  The entire drive space on the VM is only using 45 GB.  I am stumped why it is taking so long.  I have upgraded the NAS firmware to the latest.  Also, the NAS is working just fine on the host which has a VHDX setup on it as a backup solution.  That drive is 350 GB and completes in about an hour and a half, has all the AD roles on it too.  Any thoughts?
LVL 20

Expert Comment

by:Svet Paperov
ID: 40456176
How did you configure the backup: to a dedicated volume (iSCSI) or to a VHDX file on a share created on iSCSI? If you are using a dedicated volume as a target, that probably means an issue with the network adapter. Are you using a dedicated adapter for the backup?
Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.


Author Comment

by:Wyant Niswonger
ID: 40456552
Dedicated volume, (iSCSI).  But the same NAS has no issues with a backup running from the host to it using a VHDX and runs in about an hour and 20 minutes.  The Exchange machine is a VM on the HOST.  So:

HOST MACHINE (Called JARVIS.  Yeah, I know I'm ripping off Tony Stark.)
Running Windows Server 2012R2
HyperV installed
the Host has a 4 GIG NIC TEAM that is port channeled on the Cisco Switch using LACP
The NAS is a Single GIG connection to the Same Cisco Switch.
This has a VHDX on the NAS connected via GIG ethernet.
VM called Remote running Windows Server 2012 R2, Exchange 2013, Client Access and Mailbox role.
Created as was suggested an iSCSI partition on the NAS and started the service on the VM to connect the iSCSI and it is viewable under Disc Management.  Started Windows Server Backup and configured it to backup everything on REMOTE, except the iSCSI disc.  Started the Exchange backup agents.
This backup starts at 1 am.  I have Blat running to email me when it starts, stops or if it fails.
I got emailed today at 15:23 that the backup was complete.

The backup on JARVIS starts at 2100 and was complete by 22:23 yesterday.  It is NOT using iSCSI.  IT is using a VHDX that I created and dedicated to WSB.

Am I missing something?  I am relatively new to Hyper-V VM's.  But it would seem to me that the VM should be at least as fast as the Host given that the VM is only using a total of 48 GB and has only 8 mailboxes on it.

Thoughts?  Anything else that I can provide to help?
LVL 20

Expert Comment

by:Svet Paperov
ID: 40458311
It looks like a networking issue then.

Here are some recommendations:
-      Update NIC drivers
-      Use Microsoft teaming instead of manufacture’s software
-      Change Load balancing mode to Dynamic

The following EE articles and answered questions could help:


On another note: the configuration you have with ADDC running on the same physical host as Hyper-V is not supported and you cannot use the additional license for a virtual machine. Recommendation: have a ADDC installed on different physical host. Then, if you own 2012 Standard edition, you can install up to 2 VM on the Hyper-V host with the same license. In case your network is really small and this is the only available server, you could have a different configuration: keep the host in Workgroup environment and install DC on a virtual machine.

Author Comment

by:Wyant Niswonger
ID: 40469469
I am not using the same license for my VM's.  I have several licenses.  Everything is working fine except for the backup.  The backup is simply taking an excessive amount of time.  I do not have an additional physical machine to use.  I was using a machine with SBS2011 on it that failed.  I moved the domain to 2012 R2, fresh install.  Created the accounts, created the VM's installed Exchange and Exchange is running like a champ.  I just don't understand the slowness of the backup.  The other VM's on the host run very quickly.  I am using iSCSI as was suggested.  Those backups complete in less than an hour.
LVL 20

Expert Comment

by:Svet Paperov
ID: 40470784
As I understood the Exchange server is backing up from the guest OS but what about the other virtual machines. Are they backed up from within the guest OS as well or on the host level?

Did you follow the instructions here and set VSS full backup for the Exchange server?

Author Comment

by:Wyant Niswonger
ID: 40470787
checking the link above now, but yes the re backing up from the guest.  will report back after checking that link

Author Comment

by:Wyant Niswonger
ID: 40470807
I checked the link and am already doing everything.  Here is the output from the Exchange command shell.  Name                   : Mailbox Database 0641854074
SnapshotLastFullBackup : True
LastFullBackup         : 11/27/2014 9:03:27 PM

Accepted Solution

Wyant Niswonger earned 0 total points
ID: 40609380
I ended up resolving this by deleting the VHDX and creating another iSCSI partition on the NAS.

Author Closing Comment

by:Wyant Niswonger
ID: 40616136
The Lenovo NAS software works best when it is converted to iSCSI for Windows shares. I have not had any issues since I converted the entire NAS (less the OS) to iSCSI in 3 different partitions. I added 2 of them to my host server as shares (1 for backup and 1 for files and shares) and the 3rd I attached to the Exchange Guest. The backup now takes about an hour and a half on each device.

Featured Post

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this article, I am going to show you how to simulate a multi-site Lab environment on a single Hyper-V host. I use this method successfully in my own lab to simulate three fully routed global AD Sites on a Windows 10 Hyper-V host.
Previously, on our Nano Server Deployment series, we've created a new nano server image and deployed it on a physical server in part 2. Now we will go through configuration.
In this Micro Tutorial viewers will learn how they can get their files copied out from their unbootable system without need to use recovery services. As an example non-bootable Windows 2012R2 installation is used which has boot problems.
This tutorial will show how to configure a new Backup Exec 2012 server and move an existing database to that server with the use of the BEUtility. Install Backup Exec 2012 on the new server and apply all of the latest hotfixes and service packs. The…

756 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question