773 B
773 B
Virtual USB Pendrive
https://forum.proxmox.com/threads/virtual-pendrive-on-vm.114143/
Create virtual USB drive (replace with required size in GB)
dd bs=1G count=8 if=/dev/zero of=/tmp/usb0.img
Attach drive to VM in Proxmox
Use "Monitor" inside the VM menu in Proxmox GUI to do this.
drive_add 0 file=/root/usb16.img,if=none,id=drive-usb0,format=raw,cache=none
device_add usb-storage,id=drive-usb0,drive=drive-usb0,removable=on
Boot from the virtual USB pendrive
To boot from the virtual pendrive, first attach it as described above then during VM boot press the key to enter Proxmox VM boot menu. From here just select the virtual USB pendrive to boot from.
Remove the virtual USB pendrive when no longer needed
device_del drive-usb0