#987445 kvm: -usbdevice tablet: '-usbdevice' is deprecated, please use '-device usb-...' instead #987445
- Package:
- ganeti-3.0
- Source:
- ganeti
- Submitter:
- "Carlos R. Pasqualini"
- Date:
- 2021-09-08 08:51:05 UTC
- Severity:
- normal
Dear Maintainer, Creating a new instance, looselly following: https://ahwhattheheck.wordpress.com/2014/12/15/migrating-vms-from-a-libvirt-setup-to-a-ganeti-cluster/ as done before. gnt-instance add -B vcpus=${VCPUS},minmem=${MINMEM},maxmem=${MAXMEM} \ -H kvm:kernel_path='',machine_version='q35',nic_type='paravirtual',disk_ty pe='paravirtual',scsi_controller_type='virtio-scsi- pci',usb_mouse='tablet',keymap='es',use_guest_agent=true \ -t drbd --disk 0:size=${DISK_SIZE_0} \ -t drbd --disk 1:size=${DISK_SIZE_1} \ -n ${NODE1}:${NODE2} \ -o debootstrap+default \ --net 0:mac=${MAC},link=${VMBR} \ --no-ip-check --no-name-check \ --no-install --no-wait-for-sync ${VMNAME} And then writting a qemu image to the DRBD devices No errors yet but, on start I get: root@hostname:~# gnt-instance start VMNAME Waiting for job 60574 for VMNAME ... Job 60574 for VMNAME has failed: Failure: command execution error: Could not start instance 'VMNAME': Hypervisor error: Failed to start instance VMNAME: exited with exit code 1 (kvm: -usbdevice tablet: '- usbdevice' is deprecated, please use '-device usb-...' instead ) It seems weird, because the very same was reported and fixed on a pre 3.0 branch: https://github.com/ganeti/ganeti/issues/1338 Spent a few hours on this, but unable to find a workaround Thanks for the help and, BTW: thanks for this great software Best Regards Carlos Pasqualini
Hi again I found in the logs that the instance was failing because of machine_version='q35' setting, and not related to the kvm command output. See: https://github.com/ganeti/ganeti/issues/1388 So, the severity of this bug can be decreased further, as the subject is just a deprecation warning, needs to be fixed some day, but still works. Thanks!
Hi! I also got hit by the same warning on the logs that completelly misleaded me (thinking it was the error stopping me). I wanted to comment just in case some other people may also get hit by it. After upgrading a cluster from buster to bullseye I couldn't bring the guests back to my upgraded nodes. Ganeti would refuse to move them because there was a problem, when I looked at the ganeti logs I could only see the message: ganeti.errors.OpExecError: Could not pre-migrate instance sid: Failed to accept instance: Failed to start instance sid: exited with exit code 1 (kvm: -usbdevice tablet: '-usbdevice' is deprecated, please use '-device usb-...' instead This was completely misleading, as this message is only a warning, not an error, the real error was... kvm: -vnc 127.0.0.1:5142: keymap include files are not supported any more Which I just couldn't see anywhere until I looked at the kvm logs, don't know why I didn't see it, now I see it was on Ganeti's logs as well. Anyway, the error was caused by me having the keymap set to spanish, so what I did was: gnt-instance modify -H keymap= guest for every guest, but having them change the keymap meant a reboot off all guests. Having done that I thought I had finished, as I had all the nodes updated to bullseye and cleaned, the cluster is running ok and everything looks fine, however I got hit by another bug (#993920). Regards...