Expiring Today—Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17


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

Posted on 2014-11-13
Medium Priority
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?
Free Backup Tool for VMware and Hyper-V

Restore full virtual machine or individual guest files from 19 common file systems directly from the backup file. Schedule VM backups with PowerShell scripts. Set desired time, lean back and let the script to notify you via email upon completion.  


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 http://technet.microsoft.com/en-us/library/dd876854(v=exchg.150).aspx 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

Nothing ever in the clear!

This technical paper will help you implement VMware’s VM encryption as well as implement Veeam encryption which together will achieve the nothing ever in the clear goal. If a bad guy steals VMs, backups or traffic they get nothing.

Question has a verified solution.

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

The following article is comprised of the pearls we have garnered deploying virtualization solutions since Virtual Server 2005 and subsequent 2008 RTM+ Hyper-V in standalone and clustered environments.
Windows Server 2003 introduced persistent Volume Shadow Copies and made 2003 a must-do upgrade.  Since then, it's been a must-implement feature for all servers doing any kind of file sharing.
This tutorial will walk an individual through locating and launching the BEUtility application to properly change the service account username and\or password in situation where it may be necessary or where the password has been inadvertently change…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

719 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