brewedbits.dev

Personal blog with guides and news on selfhosting, Linux and AI, from the Netherlands

nextDash nextdash --aboutYour bookmarks. Your terminal. checks your links knows your Docker host one container, no cloudLive demo →nextdash.cc ↗

Tip: attach USB devices to an Unraid VM before you start it

Unraid
~/tips/tip-unraid-vm-usb-before-start

cat ~/tips/tip-unraid-vm-usb-before-start.md

Unraid VMs cannot hot-plug USB, so tick the devices before the VM starts.

It is tempting to plug in a USB stick and attach it to a VM that is already running. On Unraid that does not work, and the docs say so directly.

The Unraid VM setup page lists USB devices among the things you assign to a VM, with this rule: devices must be attached before starting the VM, because USB hot-plugging is not supported.

So the order I follow is simple. Plug the device into the server, stop the VM if it is running, tick the device in the VM’s USB devices list, save, and start the VM.

The same page says the Unraid boot device cannot be assigned to a VM, so it never shows up as an option. That is a useful safety net, since handing your boot stick to a guest would be a mess.

The creation form also has a checkbox, Start VM after creation. The VM starts automatically after you click Create VM unless you untick it. If you want to pick devices carefully first, untick it and start the VM yourself when the list is right.

If you forget a device, you have to shut the VM down again to add it, so plan the list before the first boot. A keyboard and mouse for a physical GPU are also USB devices, and the docs include them in the same step.

Further reading: Unraid docs: VM setup

More Unraid tips Change the RAID profile of a Unraid BTRFS pool with Balance Replace a disk in a redundant Unraid pool from the Main tab Test every Unraid drive with the DiskSpeed container See the XML behind a VM with the inline XML view in Unraid 7 Choose where a new VM's disk image is created with Unraid's storage override All Unraid tips (77) All topics

Link