{"id":3794,"date":"2025-07-11T11:21:08","date_gmt":"2025-07-11T15:21:08","guid":{"rendered":"https:\/\/increasec.com\/?p=3794"},"modified":"2025-08-15T09:25:01","modified_gmt":"2025-08-15T13:25:01","slug":"xcp-how-to-import-a-physical-machine-or-hyperv","status":"publish","type":"post","link":"https:\/\/increasec.com\/?p=3794","title":{"rendered":"XCP how to import a Physical machine or HyperV"},"content":{"rendered":"\n<p>Find some scratch disk space large enough to hold the disk image, an external hard drive will work.<\/p>\n\n\n\n<p>Download the <a href=\"https:\/\/learn.microsoft.com\/en-us\/sysinternals\/downloads\/disk2vhd\">Disk2VHD <\/a>utility from Microsoft SysInternals    I used the 64bit version<\/p>\n\n\n\n<p>BonusPoints: set all the Windows Shares to read-only, then users can still access files while you are exporting the disk.<\/p>\n\n\n\n<p>Run the Disk2VHD utility on the PC you want to convert to a VM.  You will need to allow Admin &amp; Agree to the ULA.<\/p>\n\n\n\n<p>make a note with the network settings and systeminfo (cpu cores, ram, OS version)<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"512\" height=\"355\" src=\"https:\/\/increasec.com\/wp-content\/uploads\/2025\/07\/image.png\" alt=\"\" class=\"wp-image-3796\" srcset=\"https:\/\/increasec.com\/wp-content\/uploads\/2025\/07\/image.png 512w, https:\/\/increasec.com\/wp-content\/uploads\/2025\/07\/image-300x208.png 300w\" sizes=\"auto, (max-width: 512px) 100vw, 512px\" \/><\/figure>\n\n\n\n<p>Use the 3 dots button to choose a save location on a NAS or external drive.<br>Set the options in the top right as shown.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>Step2:  <\/p>\n\n\n\n<p>Login to XCP-NG<\/p>\n\n\n\n<p>Choose <strong>IMPORT<\/strong>, <strong>DISK<\/strong>, select an XCP disk repository destination, ideally NFS as it allows THIN storage (all the free disk space is in 1 pool)<br>Click the box and choose your .VHD disk file, drag&amp;drop tends to move to a different screen :\/<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"906\" height=\"682\" src=\"https:\/\/increasec.com\/wp-content\/uploads\/2025\/07\/image-1.png\" alt=\"\" class=\"wp-image-3798\" style=\"width:381px;height:auto\" srcset=\"https:\/\/increasec.com\/wp-content\/uploads\/2025\/07\/image-1.png 906w, https:\/\/increasec.com\/wp-content\/uploads\/2025\/07\/image-1-300x226.png 300w, https:\/\/increasec.com\/wp-content\/uploads\/2025\/07\/image-1-768x578.png 768w\" sizes=\"auto, (max-width: 906px) 100vw, 906px\" \/><\/figure>\n\n\n\n<p>You can check your progress in the tasks menu on the left<\/p>\n\n\n\n<p><br>Create an empty VM with the same CPU, Ram, OS Template, Name as above, add a 1 mb hard drive<br>* After creating, you may need to stop the VM as XCP auto-starts it<br>* Home, VMs, you may need to click the X beside filters to also show powered off VMs<br>Edit the new VM, Disks tab, <strong>Attach Disk<\/strong>, click the drop-down right below (its hard to see) and select the disk imported in the previous step.<br>click Attach<br>you can Detach the temporary disk by clicking the red Trashcan Icon beside it, verify it&#8217;s size is 2mb.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"321\" src=\"https:\/\/increasec.com\/wp-content\/uploads\/2025\/07\/image-2-1024x321.png\" alt=\"\" class=\"wp-image-3799\" srcset=\"https:\/\/increasec.com\/wp-content\/uploads\/2025\/07\/image-2-1024x321.png 1024w, https:\/\/increasec.com\/wp-content\/uploads\/2025\/07\/image-2-300x94.png 300w, https:\/\/increasec.com\/wp-content\/uploads\/2025\/07\/image-2-768x241.png 768w, https:\/\/increasec.com\/wp-content\/uploads\/2025\/07\/image-2.png 1478w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Start your VM using the Play button in the top right<br>If your VM fails to boot, stop the VM using the Square in the top right, open the Advanced tab, enable secure boot OR you may need to set the Boot Firmware to bios.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><strong>ALTERNATE<\/strong>:   Use this method if the server runs more than file shares<\/p>\n\n\n\n<p>From the Hyper-V host<\/p>\n\n\n\n<p>STOP-VM -Name<br>Get-VMHardDiskDrive -VMName<br>Convert-VHD -Path -DestinationPath -VHDType Dynamic<\/p>\n\n\n\n<p>Use Step-2 from above to import<\/p>\n\n\n\n<p>Full Instructions here  <a href=\"https:\/\/docs.xcp-ng.org\/installation\/migrate-to-xcp-ng\/#-from-hyper-v\">https:\/\/docs.xcp-ng.org\/installation\/migrate-to-xcp-ng\/#-from-hyper-v<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Find some scratch disk space large enough to hold the disk image, an external hard drive will work. Download the Disk2VHD utility from Microsoft SysInternals I used the 64bit version&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-3794","post","type-post","status-publish","format-standard","hentry","category-uncategorised"],"_links":{"self":[{"href":"https:\/\/increasec.com\/index.php?rest_route=\/wp\/v2\/posts\/3794","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/increasec.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/increasec.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/increasec.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/increasec.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3794"}],"version-history":[{"count":7,"href":"https:\/\/increasec.com\/index.php?rest_route=\/wp\/v2\/posts\/3794\/revisions"}],"predecessor-version":[{"id":3874,"href":"https:\/\/increasec.com\/index.php?rest_route=\/wp\/v2\/posts\/3794\/revisions\/3874"}],"wp:attachment":[{"href":"https:\/\/increasec.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3794"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/increasec.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3794"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/increasec.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3794"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}