VirtualDiskAPI::CreateFormattedDisk failed to create vhd(x) - Status set to 31: Unknown status

Copper Contributor

Hi, anyone has seen this problem?

Environment: Citrix PVS - Server 2016 Multi OS, VDA 1912 LTSR CU2, Fslogix 2009 HF01, Citrix UPM and Fslogix ODFC

 

User starts his hession, the vhdx is getting created correctly. User logs off and on, the vhdx is not getting mounted. Every user and server is affected.


VHDNamePattern and VHDNameMatch are configured as default so should not influence. Strangely there was a Key on the golden Image under HKLM\Software\Policies\FSLogix, removing it did not help.
Any suggestion? Next step would completely uninstalling Fslogix and reinstalling it.

 

[11:48:22.244][tid:00000d60.00005820][INFO]            Configuration setting not found: SOFTWARE\Policies\FSLogix\ODFC\VHDXSectorSize.  Using default: 0
[11:48:22.244][tid:00000d60.00005820][INFO]            Configuration Read (DWORD): SOFTWARE\Policies\FSLogix\ODFC\SizeInMBs.  Data: 10000
[11:48:22.244][tid:00000d60.00005820][INFO]            Configuration setting not found: SOFTWARE\Policies\FSLogix\ODFC\IsDynamic.  Using default: 1
[11:48:22.244][tid:00000d60.00005820][INFO]            Configuration Read (DWORD): SOFTWARE\Policies\FSLogix\ODFC\Enabled.  Data: 1
[11:48:22.244][tid:00000d60.00005820][INFO]            Configuration setting not found: SOFTWARE\Policies\FSLogix\ODFC\RedirectType.  Using default: 2
[11:48:22.244][tid:00000d60.00005820][INFO]            SID: S-1-5-21-1047669721-706718334-3333939066-6965
[11:48:22.244][tid:00000d60.00005820][INFO]            Include group SID: S-1-5-21-1161614799-2861318814-1952206321-1010
[11:48:22.244][tid:00000d60.00005820][INFO]            Exclude group SID: S-1-5-21-1161614799-2861318814-1952206321-1011
[11:48:22.244][tid:00000d60.00005820][INFO]            User is a member of the include group
[11:48:22.244][tid:00000d60.00005820][INFO]            Configuration setting not found: SOFTWARE\Policies\FSLogix\ODFC\IgnoreNonWVD.  Using default: 0
[11:48:22.244][tid:00000d60.00005820][INFO]            Configuration setting not found: SOFTWARE\Policies\FSLogix\ODFC\OutlookFolderPath.  Using default: %userprofile%\AppData\Local\Microsoft\Outlook
[11:48:22.244][tid:00000d60.00005820][INFO]            Configuration Read (DWORD): SOFTWARE\Policies\FSLogix\ODFC\IncludeOutlook.  Data: 0
[11:48:22.244][tid:00000d60.00005820][INFO]            Configuration Read (DWORD): SOFTWARE\Policies\FSLogix\ODFC\IncludeOutlookPersonalization.  Data: 0
[11:48:22.244][tid:00000d60.00005820][INFO]            Configuration Read (DWORD): SOFTWARE\Policies\FSLogix\ODFC\IncludeOneDrive.  Data: 1
[11:48:22.244][tid:00000d60.00005820][INFO]            Configuration setting not found: SOFTWARE\Policies\FSLogix\ODFC\IncludeSkype.  Using default: 1
[11:48:22.244][tid:00000d60.00005820][INFO]            Configuration Read (DWORD): SOFTWARE\Policies\FSLogix\ODFC\IncludeSharepoint.  Data: 1
[11:48:22.244][tid:00000d60.00005820][INFO]            Configuration Read (DWORD): SOFTWARE\Policies\FSLogix\ODFC\IncludeOfficeActivation.  Data: 0
[11:48:22.244][tid:00000d60.00005820][INFO]            Configuration Read (DWORD): SOFTWARE\Policies\FSLogix\ODFC\IncludeOfficeFileCache.  Data: 0
[11:48:22.244][tid:00000d60.00005820][INFO]            Configuration setting not found: SOFTWARE\Policies\FSLogix\ODFC\OneNoteFlags.  Using default: 0
[11:48:22.244][tid:00000d60.00005820][INFO]            Configuration setting not found: SOFTWARE\Policies\FSLogix\ODFC\VhdAccessMode.  Using default: 0
[11:48:22.244][tid:00000d60.00005820][INFO]            Configuration setting not found: SOFTWARE\Policies\FSLogix\ODFC\AccessNetworkAsComputerObject.  Using default: 0
[11:48:22.244][tid:00000d60.00005820][INFO]            Accessing network as user object
[11:48:22.244][tid:00000d60.00005820][INFO]            Configuration setting not found: SOFTWARE\Policies\FSLogix\ODFC\AttachVHDSDDL.  Using default:
[11:48:22.244][tid:00000d60.00005820][INFO]            ODFC path: C:\Users\test\AppData\Local\Microsoft\Outlook
[11:48:22.260][tid:00000d60.00005820][INFO]            Configuration setting not found: SOFTWARE\Policies\FSLogix\ODFC\VolumeWaitTimeMS.  Using default: 20000
[11:48:22.260][tid:00000d60.00005820][INFO]            Configuration setting not found: SOFTWARE\Policies\FSLogix\ODFC\CCDLocations.  Using default:
[11:48:22.260][tid:00000d60.00005820][INFO]            Configuration Read (REG_SZ): SOFTWARE\Policies\FSLogix\ODFC\VHDLocations.
[11:48:22.260][tid:00000d60.00005820][INFO]            VHDLocations found - configured to use Local Disk
[11:48:22.260][tid:00000d60.00005820][INFO]            Configuration setting not found: SOFTWARE\Policies\FSLogix\ODFC\DiffDiskParentFolderPath.  Using default: C:\Windows\TEMP\
[11:48:22.260][tid:00000d60.00005820][INFO]            Configuration setting not found: SOFTWARE\Policies\FSLogix\ODFC\NoProfileContainingFolder.  Using default: 0
[11:48:22.260][tid:00000d60.00005820][INFO]            Configuration Read (DWORD): SOFTWARE\Policies\FSLogix\ODFC\FlipFlopProfileDirectoryName.  Data: 1
[11:48:22.260][tid:00000d60.00005820][INFO]            Configuration setting not found: SOFTWARE\Policies\FSLogix\ODFC\VHDNameMatch.  Using default: ODFC*
[11:48:22.260][tid:00000d60.00005820][INFO]            Configuration Read (REG_SZ): SOFTWARE\Policies\FSLogix\ODFC\VolumeType.  Data: VHDX
[11:48:22.260][tid:00000d60.00005820][ERROR:00000005]  FindFile failed for path: \\srvfile.contoso.local\FSLogix$\test_S-1-5-21-1047669721-706718334-3333939066-6965\ODFC*.VHDX (Access Denied)
[11:48:22.260][tid:00000d60.00005820][INFO]            Configuration setting not found: SOFTWARE\Policies\FSLogix\ODFC\VHDNamePattern.  Using default: ODFC_%username%
[11:48:22.309][tid:00000d60.00005820][INFO]            vhd(x): \\rvfile.contoso.local\FSLogix$\test-1-5-21-1047669721-706718334-3333939066-6965\test.VHDX
[11:48:22.309][tid:00000d60.00005820][INFO]            ODFC VHD not found.  Creating new VHD.
[11:48:22.309][tid:00000d60.00005820][INFO]            Configuration setting not found: SOFTWARE\Policies\FSLogix\ODFC\DirectAttachOnCreateVHD.  Using default: 0
[11:48:22.309][tid:00000d60.00005820][INFO]            Configuration setting not found: SOFTWARE\Policies\FSLogix\ODFC\LockedRetryCount.  Using default: 12
[11:48:22.309][tid:00000d60.00005820][INFO]            Configuration setting not found: SOFTWARE\Policies\FSLogix\ODFC\LockedRetryInterval.  Using default: 5
[11:48:22.309][tid:00000d60.00005820][INFO]           ===== Begin Session:  Create Formatted Disk
[11:48:22.328][tid:00000d60.00005820][ERROR:00000050]   VirtualDiskAPI::CreateFormattedDisk failed to create vhd(x): \\srvfile.contoso.local\FSLogix$\test_S-1-5-21-1047669721-706718334-3333939066-6965\ODFC_test.VHDX (The file exists.)
[11:48:22.328][tid:00000d60.00005820][INFO]           ===== End Session:  Create Formatted Disk
[11:48:22.328][tid:00000d60.00005820][INFO]            Status set to 31: Unknown status

3 Replies
Hi, yes! Give a look on the NTFS Rights on the Root Share. Attribute "Write attributes" (this folder only) was required. MS official statement right now is to have modify permissions for the users.
Hi, I had the same issues setting up FSLogix. Profile disk was created but after logoff I couldn't get back in.

Turned out I missed this setting in the GPO;
FSLogix > Profile Containers > Container and directory naming > flip flop profile directory name = ENABLED

Reason is MS changed the names in later versions of FSLogix so tutorials will not be exact.

Instead I manually input a custom value of %username%_SID in SID Directory name pattern and this created a mismatch with the profile disk naming causing the error. So SID Directory name pattern should be = NOT CONFIGURED.

So in conclusion;
FSLogix > Profile Containers > Container and directory naming > flip flop profile directory name = ENABLED
FSLogix > Profile Containers > Container and directory naming > SID Directory name pattern = NOT CONFIGURED.

This has resolved the issue for me.