VM crashed when usb_add executed

C

cirroz

Guest
[Solved] VM crashed when usb_add executed

I recently upgraded PVE and updated windows kvm guest drivers (SCSI, NIC and Balloon) to version 0.1.22
Now I found out my VM with usb dongles doesn't start if I add the line hostusb: host:xxxx:yyyy to VM's config.
When I remove this line the VM starts well. But it crashes when I'm trying to add usb device manually from qm-console: usb_add host:xxxx:yyyy.
The command with specified bus.port - usb_add host:1.10 - doesn't work too.
I tested Windows XP SP3 and Windows 2008R2 x64 with recent updates.
No one works.

What may it be?

# pveversion -v
pve-manager: 1.9-26 (pve-manager/1.9/6567)
running kernel: 2.6.32-7-pve
proxmox-ve-2.6.32: 1.9-55+ovzfix-2
pve-kernel-2.6.32-7-pve: 2.6.32-55+ovzfix-2
qemu-server: 1.1-32
pve-firmware: 1.0-15
libpve-storage-perl: 1.0-19
vncterm: 0.9-2
vzctl: 3.0.29-3pve1
vzdump: 1.2-16
vzprocps: 2.0.11-2
vzquota: 3.0.11-1
pve-qemu-kvm: 0.15.0-2
ksm-control-daemon: 1.0-6


P.S.
I checked VM with old 0.1.15 guest drivers. It crashes now too.
Looks like it depends with last PVE update :(

Help, please.
 
Last edited by a moderator:
Sorry, it's my mistake in the post.
I can paste whole VM's config if you'd like.
 
Code:
[B]proxve:~# lsusb [/B]
Bus 002 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 007: ID 13ba:0017 Unknown PS/2 Keyboard+Mouse Adapter
Bus 001 Device 006: ID 051d:0002 American Power Conversion Uninterruptible Power Supply
Bus 001 Device 005: ID 0529:0001 Aladdin Knowledge Systems HASP v0.06
Bus 001 Device 004: ID 096e:0001 Feitian Technologies, Inc. 
Bus 001 Device 003: ID 096e:0001 Feitian Technologies, Inc. 
Bus 001 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
[B]proxve:~# cat /etc/qemu-server/112.conf[/B]
name: +devlicman-sdj
vlan0: virtio=B6:D2:E5:B0:1A:AB
bootdisk: virtio0
virtio0: devserv:0.0.8.scsi-3600144f022a8480000004cfc89770008,cache=none
ostype: wxp
memory: 512
onboot: 0
sockets: 1
boot: c
freeze: 0
cpuunits: 1000
acpi: 1
kvm: 1
cores: 1
vlan1: virtio=AA:1B:80:0F:EB:A9
description: Запущен менеджер лицензий HASP и ROCKEY4
ide0: local:iso/virtio-win-0.1-22.iso,media=cdrom
args: -balloon virtio
hostusb: 096e:0001
[B]proxve:~# qm status 112[/B]
stopped
[B]proxve:~# qm start 112[/B]
kvm: usb_create: no bus specified, using "usb.0" for "usb-host"


husb: open device 1.3
husb: grabbed usb device 1.3

[B]proxve:~# qm status 112[/B]
stopped
[B]proxve:~# tail -40 /var/log/messages[/B]
Mar 20 10:45:30 proxve kernel: device tap112i0d0 entered promiscuous mode
Mar 20 10:45:30 proxve kernel: vmbr0: port 4(tap112i0d0) entering forwarding state
Mar 20 10:45:30 proxve kernel: device tap112i1d0 entered promiscuous mode
Mar 20 10:45:30 proxve kernel: vmbr1: port 4(tap112i1d0) entering forwarding state
Mar 20 10:45:31 proxve kernel: usb 1-1.1: reset low speed USB device using ehci_hcd and address 3
Mar 20 10:45:31 proxve kernel: vmbr0: port 4(tap112i0d0) entering disabled state
Mar 20 10:45:31 proxve kernel: vmbr0: port 4(tap112i0d0) entering disabled state
Mar 20 10:45:31 proxve kernel: vmbr1: port 4(tap112i1d0) entering disabled state
Mar 20 10:45:31 proxve kernel: vmbr1: port 4(tap112i1d0) entering disabled state
[B]proxve:~# [/B]

How can I get detailed log?
 
Dietmar, have you seen this topic?
Is this patch already applied to PVE's kvm?
What version of kvm used in PVE?
 
Last 88th version has old buffer's length - 1024 bytes.
If I will patch and compile vanilla kvm sources can I replace proxmox's kvm module without troubles?
 
I found the cause of problem.

Only one USB dongle ROCKEY4NET works fine.
As soon I add the second ROCKEY4NET key the VM crashes.

But VM crashes with only one Aladdin USB Master Key.

I tried to boot with PVE 2.0RC1 but my computer can't boot from this iso.
I'm going to try again tomorrow with usb-drive.
 

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!