Hi everyone,
I'm setting up a new vmware Horizon environment and I'm struggling with writable volumes and adding an path exclusion to them with a "snapvol.cfg" file.
I put Mozilla Firefox 72.0.2 in an AppStack and it works fine as long there is no writable volume attached to the same machine. When I add a writable volume to the machine, Firefox stops working after a while. I can reproduce the issue, if I create a new folder in the Firefox install directory with a writable volume attached. After creating the new folder firefox stops working.
I followed these instructions to create a snapvol.cfg file to exclude the firefox install folder (C:\Program Files (x86)\Mozilla Firefox):
But it seems the App Volume Agent just ignores the file. And yes, I created the folder structure "config/writable/snapvol.cfg" before I zipped and uploaded it.
Any help in this cas would be greatly appreciated. Thanks.
P.S: Sorry for any mistakes in this text. English is not my first language.
Problem solved!
I've set the following Regkey:
Many thanks to Jack from vmware support.
Hi,
This post could be useful.
other info!
Best method of updating snapvol.cfg
ARomeo
In v4.0 the "snapvol.cfg" is moved to the install directory of the agent (this is mentioned in the release notes). But unfortunately the documentation doesn't reflect this (very welcome) change.
Can you try and place your "snapvol.cfg" in the following location: c:\Program Files (x86)\CloudVolumes\Agent\Config\Custom
Hi jesperalberts,
Thank you for your advise.
I've put the snapvol.cfg in the mentioned path and it seems to work. Partially a least. The the cfg file is getting loaded by svservice but the exclusion statements doesn't work properly.
When I use "exclude_path=\Program Files (x86)\Mozilla Firefox" the folder becomes inaccessible and firefox won't start. The statements "exclude_uwv_file=\Program Files (x86)\Mozilla Firefox" and/or "exclude_uwv=\Program Files (x86)\Mozilla Firefox" seems to have no effect.
Did you try with adding this to the snapvol.cfg
reverse_replicate_file=Program Files\Mozilla Firefox\firefox.exe
Hi bjartest,
thanks for the advise. Unfortunately this does not work either. My snapvol.cfg looks like this at the moment:
writable_type=uia
################################################################
# File system
################################################################
virtualize=\
################################################################
# Exclusions
################################################################
#Firefox
exclude_uwv_file=\Program Files (x86)\Mozilla Firefox
reverse_replicate_file=Program Files (x86)\Mozilla Firefox\firefox.exe
################################################################
# Registry
################################################################
virtualize_registry=\REGISTRY\MACHINE\SOFTWARE
virtualize_registry=\REGISTRY\MACHINE\COMPONENTS\CanonicalData
virtualize_registry=\REGISTRY\MACHINE\COMPONENTS\DerivedData
virtualize_registry=\REGISTRY\MACHINE\COMPONENTS\ServicingStackVersions
virtualize_registry=\REGISTRY\MACHINE\COMPONENTS\Installers
virtualize_registry=\REGISTRY\MACHINE\COMPONENTS\Configuration
virtualize_registry=\REGISTRY\MACHINE\COMPONENTS\ccpinterface
virtualize_registry=\REGISTRY\MACHINE\SYSTEM\ControlSet001\control
virtualize_registry=\REGISTRY\MACHINE\SYSTEM\ControlSet001\services
virtualize_registry_notify_change=\REGISTRY\MACHINE\Software\Microsoft\.NetFramework
virtualize_registry_notify_change=\REGISTRY\MACHINE\Software\Wow6432Node\Microsoft\.NetFramework
# This should always be the last line in the policy
os=any
Did you try without exclude_uwv_file=\Program Files (x86)\Mozilla Firefox
Yes. I tried. Same effect. After a write operation in the firefox folder, firefox no longer works.
Problem solved!
I've set the following Regkey:
Many thanks to Jack from vmware support.