Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Move VM from unassigned to array

Featured Replies

Hello all, 

 

Apologies if this is in the wrong place, but I'm after moving my single Windows VM from my dedicated "unassigned Sabrent NVME" to my main array. 

 

My VM Primary vdisk location with the VM template is;

/dev/disk/by-id/nvme-Sabrent_Rocket_Q_7FD407090DDA92030729

 

Screenshot_20221019_143714_Firefox.thumb.jpg.9115d5b2444a73aa7567a45d4131335e.jpg

 

Looking in this location with MC shows five files;

Screenshot_20221019_143754_JuiceSSH.jpg.7f0555c0c4d267a6e8f21377e3bdbe80.jpg

 

My unassigned drive shows the below under the main unraid tab;

Screenshot_20221019_143902_Firefox.thumb.jpg.8b029d1772ce7e41a3f5fb5c2d5017af.jpg

 

 

Can anyone please advise how I can make the move. I use the VM for 30 minutes each month and so the speed decrease will not matter, but I want to ensure the transfer goes smoothly and nothing is lost. 

 

Many thanks. 

  • Community Expert
3 hours ago, BeardedNoir said:

Hello all, 

 

Apologies if this is in the wrong place, but I'm after moving my single Windows VM from my dedicated "unassigned Sabrent NVME" to my main array. 

 

My VM Primary vdisk location with the VM template is;

/dev/disk/by-id/nvme-Sabrent_Rocket_Q_7FD407090DDA92030729

 

Screenshot_20221019_143714_Firefox.thumb.jpg.9115d5b2444a73aa7567a45d4131335e.jpg

 

Looking in this location with MC shows five files;

Screenshot_20221019_143754_JuiceSSH.jpg.7f0555c0c4d267a6e8f21377e3bdbe80.jpg

 

My unassigned drive shows the below under the main unraid tab;

Screenshot_20221019_143902_Firefox.thumb.jpg.8b029d1772ce7e41a3f5fb5c2d5017af.jpg

 

 

Can anyone please advise how I can make the move. I use the VM for 30 minutes each month and so the speed decrease will not matter, but I want to ensure the transfer goes smoothly and nothing is lost. 

 

Many thanks. 

I think you will need to use a tool to covert the physical drive to an image. @ghost82would you have any tool you could recommend?

Yes qemu-img is fine. You might want to save as qcow2 instead of raw in addition to using the -S to make the image smaller, otherwise the image file will take the size of the original disk.

 

 

 

 

  • Author
4 minutes ago, Kilrah said:

Yes qemu-img is fine. You might want to save as qcow2 instead of raw in addition to using the -S to make the image smaller, otherwise the image file will take the size of the original disk.

 

 

 

 

 

Thank you and for everyone else's help with this. 

 

Apologies, I'm not familiar with these commands or qcow2, would a command of something like this then work or should it be amended to utilise qcow2;

 

qemu-img convert -p -S 512 /dev/disk/by-id/nvme-Sabrent_Rocket_Q_7FD407090DDA92030729 -O raw /mnt/user/domains/win11/win11image.img

Edited by BeardedNoir

5 hours ago, BeardedNoir said:

Looking in this location with MC shows five files

that are not really files; the name without -partX is the whole disk, other names with -partX suffix are single partitions.

You need to clone the whole disk, not sure if the command will works with the by-id for the source (it should work in my opinion), if it doesn't clone the disk just find the sdX name of that disk and follow that post you linked.

Command dd is fine too to clone disks to img, if you search google you will find examples, just use path/to/vdisk.img as the target (most examples use /dev/sdX as a target, to clone and restore files on a physical disk, but img as target will be fine).

Make sure the target disk have enough space, larger than the physical disk you are cloning.

The advice to sparsify the image is good too, so the image size will be that of the sizes of all the files, and make sure to enable trim in the vm for the vdisk.

  • Author

Right, so I pushed ahead and ran;

qemu-img convert -p -S 512 /dev/disk/by-id/nvme-Sabrent_Rocket_Q_7FD407090DDA92030729 -O qcow2 /mnt/user/domains/win11/vdisk.img

 

Which produced a 500gb image which is about right for the size of the VM, however when I ran it, the VM would say it was running, display the attached log information, but I could not connect and the assigned IP was not taken. 

 

I then deleted the image and ran;

qemu-img convert -p -S 512 /dev/disk/by-id/nvme-Sabrent_Rocket_Q_7FD407090DDA92030729 -O raw /mnt/user/domains/win11/vdisk.img

 

This produced a 2tb image however the same issue happened when I ran it. 

 

I have only ever had this one VM, and it was setup with the unassigned nvme. Do I need to do anything in the VM template other than changing the image location? 

 

Screenshot_20221021_115214_Firefox.thumb.jpg.cc34d39e57b7b1e77c04c9aa2bdf125e.jpg

 

Screenshot_20221021_115308_Firefox.thumb.jpg.5d0f392b7c9b791940077b3cd0f710c4.jpg

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.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.