Raw disk size issue with passtrough usb key

INFOSERV

Member
Dec 14, 2014
6
1
23
Hi all,

we installed Proxmox 4.4 using ZFS RAID 1 and 2 x 1.5TB HD.

Then we created 2 VMs, one of these (201 VM) has a 230GB virtual HD (Virtio) and 2 USB key (passtrough mode) that Proxmox see as unused disk 0 and 1.

The 2 pendrive are used from a software, into the 201 VM, to ckeck the license authenticity.

So, in VM 201 hardware list, we can see:

Code:
   Hard Disk (virtio1)               local-zfs:vm-201-disk-3,cache=writeback,size=230G
   Unused Disk 0                     local-zfs:vm-201-disk-2
   Unused Disk 1                     local-zfs:vm-201-disk-1

for a better understanding, look at the picture below:

screenshot_1-jpg.5310


The problem is that now local-zfs content show:
  • vm-201-disk-1 raw 230.00 GiB
  • vm-201-disk-2 raw 230.00 GiB
  • vm-201-disk-3 raw 230.00 GiB

The vm-201-disk-1 and vm-201-disk-2 sizes are incorrect and, in this way, Proxmox full local-zfs space (there are other VM raw files).

If we execute qm monitor 201 command and then info usb we read:

Code:
   Device 0.1, Port 1, Speed 12 Mb/s, Product QEMU USB Tablet, ID: tablet
   Device 1.1, Port 1, Speed 1.5 Mb/s, Product CPUSB - V 1.8, ID: usb0
   Device 1.2, Port 2, Speed 1.5 Mb/s, Product CPUSB - V 1.8, ID: usb1

...and typing lsusb -t command we obtain:

Code:
/:  Bus 04.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/6p, 5000M
   |__ Port 3: Dev 2, If 0, Class=Hub, Driver=hub/4p, 5000M
/:  Bus 03.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/14p, 480M
   |__ Port 3: Dev 2, If 0, Class=Hub, Driver=hub/4p, 480M
       |__ Port 2: Dev 4, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M
   |__ Port 6: Dev 3, If 0, Class=Vendor Specific Class, Driver=usbfs, 1.5M
   |__ Port 8: Dev 5, If 0, Class=Mass Storage, Driver=usb-storage, 480M
   |__ Port 9: Dev 6, If 0, Class=Vendor Specific Class, Driver=usbfs, 1.5M
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/2p, 480M
   |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/8p, 480M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/2p, 480M
   |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/6p, 480M
Our question is: Why Proxmox assign 230GiB size to disk-1 and disk-2 too?

How can we solve it?

Thank you in advance.
 

Attachments

  • screenshot_1.jpg
    screenshot_1.jpg
    111.3 KB · Views: 18
Sorry, but the disks disk-2 and disk-1 are not usb keys. You created virtual disks that are currently not attached to the GUI. USB passthrough is not visible on the GUI at the moment.
 
Sorry, but the disks disk-2 and disk-1 are not usb keys. You created virtual disks that are currently not attached to the GUI. USB passthrough is not visible on the GUI at the moment.

Thanks for your quick answer.

Since the VM works without use these disks, there is no risk to erase disk-1 and disk-2? Isn't it?
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!