Retrieve log files
from vDisk images
This topic provides
guidance on using log files that reside on shared (vDisk) images created with
Citrix Provisioning Services. Profile management saves the files at logoff,
but, if you use vDisk images, you should take account of the fact that base
images can be reset, which results in log files being deleted. You therefore
need to take some action in order to retrieve the files. The action you take
depends on whether the log files are being deleted at logon or logoff.
Use of vDisk
images is common in XenDesktop deployments, so the guidance in this topic uses
that product as an example.
To retrieve a
log file that is deleted at logoff
profiles or parts of them are not saved back to the user store on the network,
the log file will also not be saved there.
Provisioning Services write-cache is stored on the computer running
Provisioning Services, this issue should not arise and the log file should be
saved back to the user store.
write-cache is stored locally, in this procedure you may have to log on from
the same device as the user. However, even this may fail if the write-cache is
stored locally in RAM.
If the write
cache is not on the computer running Provisioning Services, you may have to
create a copy of the vDisk image, assign it to the new virtual machine, and
change the write-cache on the image so it is stored on that computer.
XenDesktop, create a new desktop group, add one virtual machine to it, and
point it to your vDisk image.
- Grant access
to the virtual machine to one test user and the administrator.
- Modify the
desktop group's idle pool count to
1 for all times of the day (to stop power management
turning the machine off), and set its logoff behavior to
nothing (to prevent the machine restarting and resetting the
- Log on as
the test user to the virtual desktop and then log off from it.
- Log on as
administrator from the XenCenter or VMware console, and retrieve the log file.
documentation for more information on creating desktop groups and
modifying their properties.
To retrieve a
log file that is deleted at logon
If a profile is
current in the user store on the network but does not load correctly when the
user logs on, log file entries will be lost.
- Map a drive
to \\<vmhostname>\C$ and, before the user logs off the session, locate
the log file.
The log file will not be
complete (some entries will be missing) but if the problem you are
troubleshooting is at logon, it may provide enough information for you to
isolate the cause of the issue.
Provisioning Services log files
Image mode, the Provisioning Services event log files are lost when the system
shuts down. For instructions on changing the default location of the files to
prevent this, see