OneDrive for Business - Azure RemoteApps - Hanging Login / Not working

%3CLINGO-SUB%20id%3D%22lingo-sub-1649637%22%20slang%3D%22en-US%22%3EOneDrive%20for%20Business%20-%20Azure%20RemoteApps%20-%20Hanging%20Login%20%2F%20Not%20working%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1649637%22%20slang%3D%22en-US%22%3E%3CP%3EHaving%20a%20couple%20issues%20with%20Azure%20Windows%20Virtual%20Desktop%20VMs%20that%20could%20be%20OneDrive%20related.%26nbsp%3B%20For%20the%20VMs%20described%20below%2C%20we%20have%20OneDrive%20installed%20with%20the%20%2FAllusers%20switch%20for%20machine%20mode%2C%20Group%20Policies%20in%20place%20to%20start%20OneDrive%20automatically%20on%20login%2C%20enable%20Files%20on%20Demand%2C%20and%20Sync%20%2F%20File%20Redirection%20start%20automatically%20on%20login%20as%20well.%26nbsp%3B%20For%20the%20RemoteApps%2C%20we%20also%20have%20the%20Registry%20setting%20at%26nbsp%3B%3CSTRONG%3EHKLM%5CSYSTEM%5CCurrentControlSet%5CControl%5CTerminal%20Server%5CRailRunonce%26nbsp%3B%3C%2FSTRONG%3Eset%20to%26nbsp%3B%3CSPAN%3E%3CEM%3E%3CSTRONG%3E%E2%80%9CC%3A%5CProgram%20Files%20(x86)%5CMicrosoft%20OneDrive%5COneDrive.exe%E2%80%9D%20%2Fbackground%3C%2FSTRONG%3E%3C%2FEM%3E%20so%20OneDrive%20runs%20when%20the%20RemoteApps%20start.%26nbsp%3B%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EWe%20are%20having%20the%20following%20issues%3A%3C%2FSPAN%3E%3C%2FP%3E%3CUL%3E%3CLI%3EWhen%20we%20have%20Azure%20WVD%20VMs%20in%20a%20host%20pool%20(GPU%20VMs%20with%20NV12s_v3%20Size)%20running%20RemoteApps%20that%20our%20students%20use%20to%20access%20as%20part%20of%20their%20Virtual%20Computer%20Labs.%26nbsp%3B%20When%20the%20machines%20have%20been%20up%20and%20running%20for%20a%20while%20and%20users%20try%20to%20access%20a%20RemoteApp%2C%20the%20app%20hangs%20and%20wont%20start.%26nbsp%3B%20Clicking%20on%20Show%20Details%20on%20the%20app%20loading%20screen%20shows%20that%20the%20VM%20is%20hung%20at%20Preparing%20Windows.%26nbsp%3B%20If%20you%20try%20to%20Remote%20into%20the%20VM%20that%20the%20App%20is%20trying%20to%20start%20from%2C%20you%20get%20a%20black%20screen%20once%20you%20login.%26nbsp%3B%20You%20can%20do%20a%20CTL-ALT-END%2C%20start%20Task%20Manager%2C%20start%20things%20from%20the%20File%20Menu%20of%20Task%20Manager%2C%20but%20the%20Desktop%20Never%20Shows%20up.%26nbsp%3B%20It%20takes%20a%20reboot%20of%20the%20VM%20for%20things%20to%20work%20again.%26nbsp%3B%20After%20the%20reboot%2C%20the%20issue%20will%20come%20back.%3C%2FLI%3E%3C%2FUL%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CUL%3E%3CLI%3EWhen%20opening%20RemoteApps%20successfully%2C%20after%20a%20while%2C%20OneDrive%20will%20not%20show%20up%20and%20give%20users%20their%20available%20files%20when%20they%20try%20to%20open%20a%20file%20in%20the%20Application%20they%20are%20using.%26nbsp%3B%20The%20option%20for%20OneDrive%20is%20empty%20(Example%20-%20if%20you%20go%20to%20File%20-%20Open%20in%20an%20application).%26nbsp%3B%20These%20are%20not%20Microsoft%20Office%20applications%2C%20these%20are%20various%20applications%20students%20use%20(ArcMap%20%2F%20Solidworks%20%2F%20Adobe%20app%20%2Fetc).%26nbsp%3B%20Again%2C%20only%20a%20reboot%20of%20that%20VM%20fixes%20the%20issue.%3C%2FLI%3E%3C%2FUL%3E%3CP%3EIf%20OneDrive%20is%20not%20set%20to%20run%20automatically%20on%20login%20or%20dont%20have%20the%20option%20for%20RemoteApps%20in%20registry%2C%20these%20issues%20arent%20happening.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAny%20help%20is%20greatly%20appreciated....%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1649637%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EOneDrive%20for%20Business%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESync%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Occasional Contributor

Having a couple issues with Azure Windows Virtual Desktop VMs that could be OneDrive related.  For the VMs described below, we have OneDrive installed with the /Allusers switch for machine mode, Group Policies in place to start OneDrive automatically on login, enable Files on Demand, and Sync / File Redirection start automatically on login as well.  For the RemoteApps, we also have the Registry setting at HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server\RailRunonce set to “C:\Program Files (x86)\Microsoft OneDrive\OneDrive.exe” /background so OneDrive runs when the RemoteApps start.  

 

We are having the following issues:

  • When we have Azure WVD VMs in a host pool (GPU VMs with NV12s_v3 Size) running RemoteApps that our students use to access as part of their Virtual Computer Labs.  When the machines have been up and running for a while and users try to access a RemoteApp, the app hangs and wont start.  Clicking on Show Details on the app loading screen shows that the VM is hung at Preparing Windows.  If you try to Remote into the VM that the App is trying to start from, you get a black screen once you login.  You can do a CTL-ALT-END, start Task Manager, start things from the File Menu of Task Manager, but the Desktop Never Shows up.  It takes a reboot of the VM for things to work again.  After the reboot, the issue will come back.

 

  • When opening RemoteApps successfully, after a while, OneDrive will not show up and give users their available files when they try to open a file in the Application they are using.  The option for OneDrive is empty (Example - if you go to File - Open in an application).  These are not Microsoft Office applications, these are various applications students use (ArcMap / Solidworks / Adobe app /etc).  Again, only a reboot of that VM fixes the issue.

If OneDrive is not set to run automatically on login or dont have the option for RemoteApps in registry, these issues arent happening.

 

Any help is greatly appreciated....

0 Replies