Question:
I was wondering how to attach an external usb drive to an existing virtual machine inside a Proxmox VE server. So basically the USB drive will be physically connected to my Proxmox server (host) but I want to read and use the USB hard drive directly and exclusively from my virtual machine (guest machine).
Solution:
There is a quite simple way to connect the USB device to any existing guest machine on Proxmox host. The detailed information can be found in the Proxmox documentation.
Step 1. Find out the host device type
Use the following command to get the detailed information about the USB device.
As you can see, my USB is listed as the following:
Bus 002 Device 002: ID 0bc2:ab24 Seagate RSS LLC
Make a note of the hardware ID which is in my case : 0bc2:ab24
Step 2. Assign USB disk to the vm
Now we can start assigning the USB disk to any VM with the following command. I want to attach the USB disk to VM ID 112. You may change it accordingly. Before executing this command, shut down or stop the vm first. And then on Proxmox host, do the following.
qm set 112 -usb0 host=0bc2:ab24
It should returned something like this:
root@pve:~# qm set 112 -usb0 host=0bc2:ab24
update VM 112: -usb0 host=0bc2:ab24
Now start the vm and check if the new disk is listed using fdisk -l command
thank you mimin, bisa belajar lagi ndak ama mimin