Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AppLayering: Layer finalize is blocked #38

Closed
EUCweb opened this issue Mar 29, 2018 · 5 comments
Closed

AppLayering: Layer finalize is blocked #38

EUCweb opened this issue Mar 29, 2018 · 5 comments

Comments

@EUCweb
Copy link
Owner

EUCweb commented Mar 29, 2018

if you prepare the VM step by step before import them into ELM and run BIS-F to finalize the image, BIS-F prompt the Error: Layer Finalized is blocked

29/03/2018 11:38:47 | Administrator | INFORMATION... | Processing function Test-BISFAppLayeringSoftware
29/03/2018 11:38:47 | Administrator | INFORMATION... | Processing function Test-BISFService
29/03/2018 11:38:47 | Administrator | INFORMATION... | Service UniService exists
29/03/2018 11:38:48 | Administrator | INFORMATION... | Product Citrix AppLayering (Version 4.9.0.74172) installed
29/03/2018 11:38:48 | Administrator | INFORMATION... | AppLayering MachineState is set to 3
29/03/2018 11:38:48 | Administrator | INFORMATION... | Processing function Test-BISFRegistryValue
29/03/2018 11:38:48 | Administrator | INFORMATION... | Registrypath HKLM:\SYSTEM\CurrentControlSet\Services\UniService, Value OSLayerEdit NOT exists !!
29/03/2018 11:38:48 | Administrator | INFORMATION... | Processing function Test-BISFRegistryValue
29/03/2018 11:38:48 | Administrator | INFORMATION... | Registrypath HKLM:\SYSTEM\CurrentControlSet\Services\UniService, Value VolumeSerialNumber NOT exists !!
29/03/2018 11:38:48 | Administrator | INFORMATION... | Processing function Test-BISFRegistryValue
29/03/2018 11:38:48 | Administrator | INFORMATION... | Registrypath HKLM:\SYSTEM\CurrentControlSet\Services\UniService, Value PrevBICTaskID NOT exists !!
29/03/2018 11:38:48 | Administrator | WARNING......... | Not defined - AppLayering MachineState is set to 3

@EUCweb
Copy link
Owner Author

EUCweb commented Mar 29, 2018

Bugfix is required check MachineState 3 also

@EUCweb
Copy link
Owner Author

EUCweb commented Mar 29, 2018

add on Line 2276 BISF.psm1

3 {
				#VM is running pre ELM, build VM before import
				IF ((!($AppLayOS)) -and  (!($AppLayVS)) -and (!($PrevBICTaskID)) -and ($CTXAppLayerName -eq $Null)) {Write-BISFLog -Msg "Citrix AppLayering - VM is not running Pre-ELM" -ShowConsole -SubMsg -Color DarkCyan; $GLobal:CTXAppLayerName = "No-ELM"}
			}

@EUCweb
Copy link
Owner Author

EUCweb commented Mar 30, 2018

implement in Bugs Bunny and developer branch

@EUCweb
Copy link
Owner Author

EUCweb commented Apr 2, 2018

Here you go, I can reproduce the problem on a new OS Layer. I would recommend they create their base OS Layer from the ISO with the minimum installed, import the layer into the ELM then introduce BIS-F in a version of the OS Layer.

I don’t remember where I saw it but one of the original Unidesk engineers recommended creating an OS Layer with the ISO only and import that into the ELM. Create an image template linked to the initial OS Layer so the initial OS Layer from the ISO can never be deleted. Then do all your work off a version of the original OS Layer, including BIS-F and any optimizations. All App Layers are tied to the original OS Layer if for whatever reason you have to “start over” you can revert back to the original OS Layer without having to recreate all your App Layers.

I don’t think BIS-F is properly identifying the original OS Layer install before importing into the ELM but based off what I said above I don’t know that it’s something you want to fix.

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\UniService]
"Type"=dword:00000010
"Start"=dword:00000002
"ErrorControl"=dword:00000001
"ImagePath"=""C:\Program Files\Unidesk\Uniservice\Uniservice.exe" -R"
"DisplayName"="Citrix App Layering Guest Service"
"Group"="Unidesk"
"ObjectName"="LocalSystem"
"Description"="Citrix App Layering in guest service."
"PreshutdownTimeout"=dword:0002bf20
"Installpath"=hex(2):43,00,3a,00,5c,00,50,00,72,00,6f,00,67,00,72,00,61,00,6d,
00,20,00,46,00,69,00,6c,00,65,00,73,00,5c,00,55,00,6e,00,69,00,64,00,65,00,
73,00,6b,00,5c,00,55,00,6e,00,69,00,73,00,65,00,72,00,76,00,69,00,63,00,65,
00,00,00
"Logpath"=hex(2):43,00,3a,00,5c,00,50,00,72,00,6f,00,67,00,72,00,61,00,6d,00,
20,00,46,00,69,00,6c,00,65,00,73,00,5c,00,55,00,6e,00,69,00,64,00,65,00,73,
00,6b,00,5c,00,75,00,6e,00,69,00,73,00,65,00,72,00,76,00,69,00,63,00,65,00,
5c,00,4c,00,6f,00,67,00,00,00
"LogLevel"=dword:00000001
"TraceLevel"=dword:00000001
"OldTraceLevel"=dword:00000001
"DebugLevel"=dword:00000002
"OldDebugLevel"=dword:00000002
"MachineState"=dword:00000004
"DebugFlags"=dword:00000000
"OldDebugFlags"=dword:00000000
"MaxFileSize"=dword:00a00000
"MaxFileCnt"=dword:00000003
"CAID"=hex:00,00,01,00,00,00,00,00
"MAID"=hex:00,80,00,00,00,00,00,00
"BILCScanState"=dword:00000003
"DebugLog"=dword:00000001
"cltl"=dword:00000000
"cmdl"=dword:00000000
"cmdf"=dword:00000000
"RedistributeLevel"=dword:00000002
"MachineID"=hex:00,00,00,00,00,00,00,00
"CAIPAddress"=dword:c5a2fe0a
"MAIPAddress"=dword:0100007f
"FailureActions"=hex:80,51,01,00,00,00,00,00,00,00,00,00,03,00,00,00,14,00,00,
00,01,00,00,00,64,00,00,00,01,00,00,00,64,00,00,00,01,00,00,00,64,00,00,00
"DependOnService"=hex(7):77,00,69,00,6e,00,6d,00,67,00,6d,00,74,00,00,00,00,00
"MachineType"=dword:00000000
"IsNonPersistentDesktop"=dword:00000000
"BICTaskID"=hex(b):5b,80,8b,00,00,00,00,00
"DisableLogoffNotify"=dword:00000001

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\UniService\VolEnum]

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\UniService\VolEnum\C]
"NtfsDisable8dot3NameCreation"=dword:00000000

@EUCweb
Copy link
Owner Author

EUCweb commented Apr 2, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants