These fields go between the VIRTUALENV tags.
< REGISTRY >
< REGKEY HIVE="HKLM" KEY="SOFTWARE\Test" NOREDIR="FALSE" >
< REGVALUE REGTYPE="REG_SZ" > some_string_that_becomes_value_of_the_default_of_the_key < /REGVALUE >
< /REGKEY >
< REGISTRY >
Good idea to use a tool to edit the OSD so that the XML formating is correct.
An OSD editor and other tools can be obtained from http://www.loginconsultants.com