{"id":1115,"date":"2010-03-14T12:20:02","date_gmt":"2010-03-14T10:20:02","guid":{"rendered":"https:\/\/alax.info\/blog\/?p=1115"},"modified":"2016-08-17T14:30:37","modified_gmt":"2016-08-17T12:30:37","slug":"windows-visual-pc-files-and-locations","status":"publish","type":"post","link":"https:\/\/alax.info\/blog\/1115","title":{"rendered":"Windows Virtual PC files and locations"},"content":{"rendered":"<p><a href=\"http:\/\/www.microsoft.com\/Windows\/Virtual-PC\/default.aspx\">Microsoft Windows Virtual PC<\/a> implements virtual machines and the application holds the entire machine state and virtual hard disk information in files. In a few large files in fact, so a question to move and\/or backup the files is a question of periodic interest.<\/p>\n<p>So what are the files it is using? First of all, the primary file a user clicks on to start virtual machine is a <strong>.VMCX<\/strong> file and it is located in <strong>&#8220;C:\\Users\\$(UserName)\\Virtual Machines&#8221;<\/strong> directory. It is a shortcut to internal files and is holding very basic information about the machine, its state and location of other files.<\/p>\n<pre><\/pre>\n<pre style=\"color: #000000; background: none repeat scroll 0% 0% #ffffff;\"><span style=\"color: #004a43;\">&lt;?<\/span><span style=\"color: #004a43;\">xml<\/span> <span style=\"color: #004a43;\">version<\/span><span style=\"color: #808030;\">=<\/span><span style=\"color: #008c00;\">\"1.0\"<\/span> <span style=\"color: #004a43;\">encoding<\/span><span style=\"color: #808030;\">=<\/span><span style=\"color: #0000e6;\">\"UTF-16\"<\/span><span style=\"color: #004a43;\">?&gt;<\/span>\r\n<span style=\"color: #696969;\">&lt;!--<\/span><span style=\"color: #696969;\"> Microsoft Virtual Machine Description and Registration Settings <\/span><span style=\"color: #696969;\">--&gt;<\/span>\r\n<span style=\"color: #a65700;\">&lt;<\/span><span style=\"color: #5f5035;\">vm_description<\/span><span style=\"color: #a65700;\">&gt;<\/span>\r\n    <span style=\"color: #a65700;\">&lt;<\/span><span style=\"color: #5f5035;\">ram_size<\/span> <span style=\"color: #274796;\">type<\/span><span style=\"color: #808030;\">=<\/span><span style=\"color: #0000e6;\">\"<\/span><span style=\"color: #0000e6;\">string<\/span><span style=\"color: #0000e6;\">\"<\/span><span style=\"color: #a65700;\">&gt;<\/span>512 MB<span style=\"color: #a65700;\">&lt;\/<\/span><span style=\"color: #5f5035;\">ram_size<\/span><span style=\"color: #a65700;\">&gt;<\/span>\r\n    <span style=\"color: #a65700;\">&lt;<\/span><span style=\"color: #5f5035;\">vmstate<\/span> <span style=\"color: #274796;\">type<\/span><span style=\"color: #808030;\">=<\/span><span style=\"color: #0000e6;\">\"<\/span><span style=\"color: #0000e6;\">string<\/span><span style=\"color: #0000e6;\">\"<\/span><span style=\"color: #a65700;\">&gt;<\/span>Hibernated<span style=\"color: #a65700;\">&lt;\/<\/span><span style=\"color: #5f5035;\">vmstate<\/span><span style=\"color: #a65700;\">&gt;<\/span>\r\n    <span style=\"color: #a65700;\">&lt;<\/span><span style=\"color: #5f5035;\">primary_disk1<\/span> <span style=\"color: #274796;\">type<\/span><span style=\"color: #808030;\">=<\/span><span style=\"color: #0000e6;\">\"<\/span><span style=\"color: #0000e6;\">string<\/span><span style=\"color: #0000e6;\">\"<\/span><span style=\"color: #a65700;\">&gt;<\/span>C:\\Users\\Roman\\AppData\\Local\\Microsoft\\Windows Virtual PC\\Virtual Machines\\Windows XP Mode.vhd<span style=\"color: #a65700;\">&lt;\/<\/span><span style=\"color: #5f5035;\">primary_disk1<\/span><span style=\"color: #a65700;\">&gt;<\/span>\r\n    <span style=\"color: #a65700;\">&lt;<\/span><span style=\"color: #5f5035;\">secondary_disk1<\/span> <span style=\"color: #274796;\">type<\/span><span style=\"color: #808030;\">=<\/span><span style=\"color: #0000e6;\">\"<\/span><span style=\"color: #0000e6;\">string<\/span><span style=\"color: #0000e6;\">\"<\/span> <span style=\"color: #a65700;\">\/&gt;<\/span>\r\n    <span style=\"color: #a65700;\">&lt;<\/span><span style=\"color: #5f5035;\">notes<\/span> <span style=\"color: #274796;\">type<\/span><span style=\"color: #808030;\">=<\/span><span style=\"color: #0000e6;\">\"<\/span><span style=\"color: #0000e6;\">string<\/span><span style=\"color: #0000e6;\">\"<\/span><span style=\"color: #a65700;\">&gt;<\/span>Windows XP Professional in \"XP Mode\"\r\nUsername XPMUser, Password XPM User<span style=\"color: #a65700;\">&lt;\/<\/span><span style=\"color: #5f5035;\">notes<\/span><span style=\"color: #a65700;\">&gt;<\/span>\r\n    <span style=\"color: #a65700;\">&lt;<\/span><span style=\"color: #5f5035;\">vmc_path<\/span> <span style=\"color: #274796;\">type<\/span><span style=\"color: #808030;\">=<\/span><span style=\"color: #0000e6;\">\"<\/span><span style=\"color: #0000e6;\">string<\/span><span style=\"color: #0000e6;\">\"<\/span><span style=\"color: #a65700;\">&gt;<\/span>C:\\Users\\Roman\\AppData\\Local\\Microsoft\\Windows Virtual PC\\Virtual Machines\\Windows XP Mode.vmc<span style=\"color: #a65700;\">&lt;\/<\/span><span style=\"color: #5f5035;\">vmc_path<\/span><span style=\"color: #a65700;\">&gt;<\/span>\r\n<span style=\"color: #a65700;\">&lt;\/<\/span><span style=\"color: #5f5035;\">vm_description<\/span><span style=\"color: #a65700;\">&gt;<\/span><\/pre>\n<p>This directory has a special hidden <strong>desktop.ini<\/strong> file in it, which instruct the shell to treat the directory and the files in a special way, as Virtual PC files. This is also how Windows is providing user a link &#8220;Create virtual machine&#8221;.<\/p>\n<p>The <strong>.VMCX<\/strong> file is editable (its format is based on XML) and it holds references to <strong>.VHD<\/strong> virtual disk files and <strong>.VMC<\/strong> virtual machine configuration files. However, <strong>.VMCX<\/strong> file is nothing but a shortcut only, and Windows Virtual PC will re-created those files once underlying <strong>.VMC<\/strong> file is double-clicked to be started, so there is no need to edit <strong>.VMCX<\/strong> files.<\/p>\n<p><strong>.VMC<\/strong> file is a virtual machine configuration file and it holds the settings a user provides for the virtual machine through settings dialog. The file is also using XML formatting, and is editable. While the file is small itself, its location is used as a base location for <strong>.VSV<\/strong> file, where software stores runtime state of virtual machine. The <strong>.VSV<\/strong> file size is stipulated by amount of RAM granted to the virtual machine, so the file may be pretty large itself and it might be desired to be moved to another location also. To achieve this, the small <strong>.VMC<\/strong> file needs to be moved to location of interest. A <strong>.VMC<\/strong> file can be double-clicked itself to start the virtual machine.<\/p>\n<p><a href=\"https:\/\/alax.info\/blog\/wp-content\/uploads\/2010\/03\/14-Image001.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-1116\" title=\"Windows Virtual PC Settings Dialog\" src=\"https:\/\/alax.info\/blog\/wp-content\/uploads\/2010\/03\/14-Image001-320x214.png\" alt=\"Windows Virtual PC Settings Dialog\" width=\"320\" height=\"214\" srcset=\"https:\/\/alax.info\/blog\/wp-content\/uploads\/2010\/03\/14-Image001-320x214.png 320w, https:\/\/alax.info\/blog\/wp-content\/uploads\/2010\/03\/14-Image001.png 699w\" sizes=\"auto, (max-width: 320px) 100vw, 320px\" \/><br \/>\n<\/a><\/p>\n<p><strong>.VHD <\/strong>are the large files as they store data from virtual hard disks, so moving them may make sense. Additionally to the files themselves, if &#8220;Create Undo Disks&#8221; option is enabled, software will manage additional <strong>.VUD<\/strong> file with the name of format &#8220;VirtualPCUndo_$(VirtualMachineName)_$(Token).vud&#8221; file with changes that has not yet been applied. If moved, the <strong>.VUD<\/strong> files have to be thought of as a part of <strong>.VHD <\/strong>files.<\/p>\n<p>By default a <strong>.VMC<\/strong> file holds both absolute and relative path refrences to <strong>.VHD<\/strong> and <strong>.VUD<\/strong> files, with relative reference as a priority. So if <strong>.VMC<\/strong> and <strong>.VHD<\/strong> (optionally with <strong>.VUD<\/strong>) files are moved together, no special path update\/edit required. Software will be able to locate moved disk file automatically as soon as virtual machine is started. Still it is possible to edit the files manually and have files located in different directories. Also if disk file location is modified via GUI, software offers\/attempts to strip undo disk <strong>.VUD<\/strong> file and cancel unapplied changes. If configuration file is edited manually, it is possible to keep undo disks without canceling the changes.<\/p>\n<p>When moving files to a different location, make sure to check directory security so that Windows Virtual PC has sufficient privileges accessing files in the new location, or otherwise it would show ambiguous error messages &#8220;Could not register the virtual machine&#8221;.<\/p>\n<p>See Also: <a href=\"http:\/\/download.microsoft.com\/download\/7\/D\/6\/7D686A6A-B0F7-42E5-BB3B-4972A8C42C9F\/Windows Virtual PC Tips.pdf\">Windows Virtual PC Tips on microsoft.com<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Microsoft Windows Virtual PC implements virtual machines and the application holds the entire machine state and virtual hard disk information in files. In a few large files in fact, so a question to move and\/or backup the files is a question of periodic interest. So what are the files it is using? First of all,&hellip; <\/p>\n<p><a class=\"moretag\" href=\"https:\/\/alax.info\/blog\/1115\">Read the full article<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12],"tags":[287,289,290,288,47,291,286],"class_list":["post-1115","post","type-post","status-publish","format-standard","hentry","category-technology","tag-vhd","tag-vmc","tag-vmcx","tag-vud","tag-howto","tag-tip","tag-virtual-pc"],"_links":{"self":[{"href":"https:\/\/alax.info\/blog\/wp-json\/wp\/v2\/posts\/1115","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/alax.info\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/alax.info\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/alax.info\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/alax.info\/blog\/wp-json\/wp\/v2\/comments?post=1115"}],"version-history":[{"count":0,"href":"https:\/\/alax.info\/blog\/wp-json\/wp\/v2\/posts\/1115\/revisions"}],"wp:attachment":[{"href":"https:\/\/alax.info\/blog\/wp-json\/wp\/v2\/media?parent=1115"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/alax.info\/blog\/wp-json\/wp\/v2\/categories?post=1115"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/alax.info\/blog\/wp-json\/wp\/v2\/tags?post=1115"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}