From 742c536d06b8e7bff8c1fc94023e7b4b0b7e779a Mon Sep 17 00:00:00 2001 From: Kim Brian Ramberg Date: Sun, 2 Nov 2025 18:26:32 +0100 Subject: [PATCH] - --- Proxmox/Virtual USB Pendrive.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 Proxmox/Virtual USB Pendrive.md diff --git a/Proxmox/Virtual USB Pendrive.md b/Proxmox/Virtual USB Pendrive.md new file mode 100644 index 0000000..044a084 --- /dev/null +++ b/Proxmox/Virtual USB Pendrive.md @@ -0,0 +1,22 @@ +# 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`