VMware Horizon Community
Moluxtery
Contributor
Contributor
Jump to solution

App Volumes 4.0 / Writable Volume ignores snapvol.cfg

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):

https://docs.vmware.com/en/VMware-App-Volumes/4/com.vmware.appvolumes.admin.doc/GUID-73986A35-F00B-4...

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.

Reply
0 Kudos
1 Solution

Accepted Solutions
Moluxtery
Contributor
Contributor
Jump to solution

Problem solved!

I've set the following Regkey:

pastedImage_1.png

Many thanks to Jack from vmware support.

View solution in original post

8 Replies
Alex_Romeo
Leadership
Leadership
Jump to solution

Hi,

This post could be useful.

Using the VMware App Volumes snapvol.cfg File to Customize Writable Volumes:

Using the VMware App Volumes snapvol.cfg File to Customize Writable Volumes | VMware End-User Comput...

other info!

Best method of updating snapvol.cfg

ARomeo

Blog: https://www.aleadmin.it/
Reply
0 Kudos
jesperalberts
Contributor
Contributor
Jump to solution

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

Moluxtery
Contributor
Contributor
Jump to solution

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.

Reply
0 Kudos
bjartest
Enthusiast
Enthusiast
Jump to solution

Did you try with adding this to the snapvol.cfg

reverse_replicate_file=Program Files\Mozilla Firefox\firefox.exe

Reply
0 Kudos
Moluxtery
Contributor
Contributor
Jump to solution

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

Reply
0 Kudos
bjartest
Enthusiast
Enthusiast
Jump to solution

Did you try without exclude_uwv_file=\Program Files (x86)\Mozilla Firefox

Reply
0 Kudos
Moluxtery
Contributor
Contributor
Jump to solution

Yes. I tried. Same effect. After a write operation in the firefox folder, firefox no longer works.

Reply
0 Kudos
Moluxtery
Contributor
Contributor
Jump to solution

Problem solved!

I've set the following Regkey:

pastedImage_1.png

Many thanks to Jack from vmware support.