A
aluminumpork
Guest
I've been using Proxmox for about a month now and have been loving it so far. I've been slowly migrating our existing file server over to a Proxmox VM running Ubuntu. We have two external Maxtor USB drives that are swapped in and out every couple of weeks. A cronjob on the file server does nightly backups to this drive. My client does this on his own, whenever he wants without notifying me. I had my udev rules setup to automatically symlink any USB drive with the vendor "Maxtor" to create an additional symlink to /dev/usb_backup and then run a mount command to /mnt/archive. This setup worked great for around 4 years.
I've been trying to get this same setup working with my Proxmox VM using USB passthrough. I have the two USB hosts in the qemu configuration (101.conf) and the file reads as follows:
This seems to work, especially if I reset the VM. The usb host shows up (via lsusb), the udev rules run and the mount happens. However, if I unplug the drive and plug it back in again (or the other drive), no events happen. Using 'udevadm monitor' confirms this. If I run 'lsusb' after re-plugging the drive in, it takes 3-4 seconds to run and displays the list (not including the Maxtor drive), but the udev rules run. If I run 'lsusb' again, it now shows the Maxtor.
Any thoughts on the best way to accomplish what I need, or why this issue is happening? The same behavior happens using the qm monitor 'usb_add' command. The command does not trigger any usb 'events' in the VM until the VM runs the 'lsusb' command.
Thanks in advance for any assistance. It's greatly appreciated.
[edit]Oh, I'm running the 2.6.32-4-pve kernel[/edit]
I've been trying to get this same setup working with my Proxmox VM using USB passthrough. I have the two USB hosts in the qemu configuration (101.conf) and the file reads as follows:
Code:
name: destiny
ide2: local:iso/ubuntu-10.10-server-amd64.iso,media=cdrom
bootdisk: ide0
ostype: l26
ide0: local:101/vm-101-disk-1.raw
memory: 4096
onboot: 1
sockets: 1
vlan0: e1000=8E:D9:96:96:C1:BE
hostusb: 0d49:7200,0bc2:50a1
This seems to work, especially if I reset the VM. The usb host shows up (via lsusb), the udev rules run and the mount happens. However, if I unplug the drive and plug it back in again (or the other drive), no events happen. Using 'udevadm monitor' confirms this. If I run 'lsusb' after re-plugging the drive in, it takes 3-4 seconds to run and displays the list (not including the Maxtor drive), but the udev rules run. If I run 'lsusb' again, it now shows the Maxtor.
Any thoughts on the best way to accomplish what I need, or why this issue is happening? The same behavior happens using the qm monitor 'usb_add' command. The command does not trigger any usb 'events' in the VM until the VM runs the 'lsusb' command.
Thanks in advance for any assistance. It's greatly appreciated.
[edit]Oh, I'm running the 2.6.32-4-pve kernel[/edit]
Last edited by a moderator: