You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
According to the crash report, it looks like that you are using a pre-built QEMU binary or you might have forgotten to apply the associated patch (qemu-2.1.1.patch). Since this patch is for a very old and dated version, I have attached a simple script to build and patch various QEMU versions. If you build QEMU for the first time, you also need to compile and install usbredir by yourself. I have attached a script for this purpose as well. Please be aware that you probably have to install certain build tools such as automake and libtool.
qemu.sh
#!/bin/bash
patch=true
version='2.4.0'
wget http://wiki.qemu-project.org/download/qemu-$version.tar.bz2
tar xf qemu-$version.tar.bz2
if$patch;then
sed -i '/ usbredirparser_caps_set_cap(caps, usb_redir_cap_64bits_ids);/c\ //usbredirparser_caps_set_cap(caps, usb_redir_cap_64bits_ids);' qemu-$version/hw/usb/redirect.c
sed -i '/ dev->next_attach_time = qemu_clock_get_ms(QEMU_CLOCK_VIRTUAL) + 200;/c\ dev->next_attach_time = 0;' qemu-$version/hw/usb/redirect.c
ficd qemu-$version
./configure --target-list=x86_64-softmmu --enable-usb-redir
make -j 4
usbredir.sh
#!/bin/bash
git clone https://github.com/SPICE/usbredir.git
cd usbredir/
aclocal
autoconf
autoheader
./autogen.sh
automake --add-missing
make
sudo make install
Instead of crashing the VM, I am getting a core dump from the qemu.
ubuntu@ubuntu-Standard-PC-i440FX-PIIX-1996:~$ qemu-system-x86_64: hw/usb/redirect.c:1306: usbredir_chardev_read: Assertion `dev->read_buf == ((void *)0)' failed.
Aborted (core dumped)
This is the error that I am getting.
The text was updated successfully, but these errors were encountered: