Skip to content

Script to attach and detach usb devices in Proxmox environment

Notifications You must be signed in to change notification settings

m2608/usbattach.sh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 

Repository files navigation

Script to attach (detach) usb devices to (from) virtual machines. Uses qm monitor as backend. Tested only in Proxmox environment.

Requirements: fzf, expect.

Usage:

usbattach.sh [VM id]

Script does not perform any checks (eg. whether or not device already attached), only runs qm monitor commands.

It uses fzf to show interface and expect to interact with qm monitor.

Being started without parameters it shows a list of running VMs.

Being started with VM id as first parameter, it shows a list of attached devices for this specific VM.

usbattach.mp4

About

Script to attach and detach usb devices in Proxmox environment

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages