neow Posted March 29, 2021 Share Posted March 29, 2021 hello i want to transfer some windows 10 vm from one old unraid server to a new unraid server (new hardware + new licence unraid) can you explain me the best way to do it ? i don't want to reactivate each win 10 vm too thanks in advance Quote Link to comment
lnxd Posted March 29, 2021 Share Posted March 29, 2021 (edited) Hey @neow, I don't know if this is the best way, but here's one safe way that migrates everything including the nvram. I don't know how comfortable you are with terminal so I've minimised the need for that as much as possible: You need the array started on your old server, but make sure the VM isn't running Open the Unraid WebUI from your computer > click VMs > Check the VM's config to see where the vdisks are located, most likely it's in /mnt/user/domains/Windows 10 if you've called the VM Windows 10 on your server. While you're in here, Change from (Form View) to (XML View) and find the contents of the nvram tag, eg. <nvram>/etc/libvirt/qemu/nvram/91801fae-a4eb-a604-0b6f-906d2b7e90f8_VARS-pure-efi.fd</nvram> Copy the contents of the tag: /etc/libvirt/qemu/nvram/91801fae-a4eb-a604-0b6f-906d2b7e90f8_VARS-pure-efi.fd Go back to the Unraid WebUI from your computer > open Terminal > Run: cp /etc/libvirt/qemu/nvram/91801fae-a4eb-a604-0b6f-906d2b7e90f8_VARS-pure-efi.fd /mnt/users/domains/Windows 10/ Where 91801fae-a4eb-a604-0b6f-906d2b7e90f8_VARS-pure-efi.fd is the name of the file you got from step 3, and Windows 10 is the location of your vdisks from step 1 Go back to the Unraid WebUI from your computer > click Shares > click the little symbol next to the domains share under the View heading to browse the contents. Navigate to the folder where your vdisk is stored, probably Windows 10 Download the vdisk, probably vdisk1.img, and the .fd file we put there in step 4 to somewhere on your computer Transfer these files to the same location on your new server (/mnt/user/domains/Windows 10) however you want to, easiest via SMB or ssh/scp Go back to the old server's Unraid WebUI from your computer > click VMs > Edit your VM > Uncheck / remove any passed devices or USBs and change any primary GPUs to VNC and remove any secondary GPUs Change to XML View again and copy the entire contents to your clipboard Go to the new server's Unraid WebUI from your computer > click VMs > Add a VM Repeat the same as step 8, but this time paste the entire contents Double check there are no hostdev tags, if there are, delete them because your other server is very unlikely to be using the same device IDs / PCI addresses. Eg. Would become: Change back to Form View and make sure everything looks fine, then try saving it but uncheck the box to start the VM Open Terminal from the Unraid WebUI on your new server and run the reverse of the command in step 4, eg. cp /mnt/users/domains/Windows 10/91801fae-a4eb-a604-0b6f-906d2b7e90f8_VARS-pure-efi.fd /etc/libvirt/qemu/nvram/ Where Windows 10 is the name of your VM and 91801fae-a4eb-a604-0b6f-906d2b7e90f8_VARS-pure-efi.fd is the name of your NVRAM file from step 3. Start the VM, everything should be ready. If you get errors, you probably didn't remove all devices in XML view / step 13 Hope this helps. EDIT: ^^^^ I Keep removing this random XML view icon but it keeps coming back 😂 Edited March 29, 2021 by lnxd Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.