[Bug 1016418] New: Gnome-boxes unable to start VMs, spice-qemu-char: unsupported type: smartcard
http://bugzilla.opensuse.org/show_bug.cgi?id=1016418 Bug ID: 1016418 Summary: Gnome-boxes unable to start VMs, spice-qemu-char: unsupported type: smartcard Classification: openSUSE Product: openSUSE Distribution Version: Leap 42.2 Hardware: x86-64 OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: GNOME Assignee: bnc-team-gnome@forge.provo.novell.com Reporter: tamas@tamasnagy.com QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- Running gnome-boxes gives the following error (gnome-boxes:6605): Gtk-WARNING **: Theme parsing error: gtk-style.css:76:18: The 'outline-radius' property has been renamed to '-gtk-outline-radius' (gnome-boxes:6605): Gtk-WARNING **: Theme parsing error: gtk-style.css:87:18: The 'outline-radius' property has been renamed to '-gtk-outline-radius' ** (gnome-boxes:6605): WARNING **: Entity http://download.opensuse.org/tumbleweed/repo referenced but not defined ** (gnome-boxes:6605): WARNING **: Entity http://www.linux-usb.org/usb.ids/80ee/0021 referenced but not defined ** (gnome-boxes:6605): WARNING **: Using a file (/usr/share/gnome-boxes/gnome-boxes-logos-db.xml) as a database location is deprecated, use a directory instead (gnome-boxes:6605): Boxes-WARNING **: machine.vala:606: Failed to start openSUSE Tumbleweed: Unable to start domain: internal error: process exited while connecting to monitor: at.spice.0 -device usb-tablet,id=input0 -device usb-mouse,id=input1 -device usb-kbd,id=input2 -spice port=0,disable-ticketing,image-compression=off,seamless-migration=on -device qxl-vga,id=video0,ram_size=67108864,vram_size=67108864,vram64_size_mb=0,vgamem_mb=16,max_outputs=1,bus=pci.0,addr=0x2 -device AC97,id=sound0,bus=pci.0,addr=0x4 -chardev spicevmc,id=charredir0,name=usbredir -device usb-redir,chardev=charredir0,id=redir0 -chardev spicevmc,id=charredir1,name=usbredir -device usb-redir,chardev=charredir1,id=redir1 -chardev spicevmc,id=charredir2,name=usbredir -device usb-redir,chardev=charredir2,id=redir2 -chardev spicevmc,id=charredir3,name=usbredir -device usb-redir,chardev=charredir3,id=redir3 -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x7 -msg timestamp=on spice-qemu-char: unsupported type: smartcard allowed names: vdagent, usbredir qemu-system-x86_64: qemu-char.c:4533: qmp_chardev_add: Assertion `!i' failed. This is on Leap 42.2 with all the latest updates. This is my gnome-boxes version: oweinerlab@null-c82a1447f5bc:~> zypper info gnome-boxes Loading repository data... Reading installed packages... Information for package gnome-boxes: ------------------------------------ Repository : Main Repository (OSS) Name : gnome-boxes Version : 3.20.2-2.1 Arch : x86_64 Vendor : openSUSE Installed Size : 2.9 MiB Installed : Yes Status : up-to-date Summary : A simple GNOME 3 application to access remote or virtual systems Description : Boxes is an application to easily create, setup, access, and use: remote machines, remote and local virtual machines, and, when technology permits, applications on local virtual machines. oweinerlab@null-c82a1447f5bc:~> https://bugzilla.opensuse.org/show_bug.cgi?id=1007263 looks related -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1016418 http://bugzilla.opensuse.org/show_bug.cgi?id=1016418#c1 Andreas Stieger <astieger@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |astieger@suse.com, | |tamas@tamasnagy.com Flags| |needinfo?(tamas@tamasnagy.c | |om) --- Comment #1 from Andreas Stieger <astieger@suse.com> --- Tamas, can you try the qemu package from one of the repositories below: http://download.opensuse.org/repositories/openSUSE:/Maintenance:/6079/openSU... http://download.opensuse.org/update/leap/42.2-test/ -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1016418 http://bugzilla.opensuse.org/show_bug.cgi?id=1016418#c2 --- Comment #2 from Tamas Nagy <tamas@tamasnagy.com> --- I'm still getting the error even with the updated qemu packages. Here's what I did: oweinerlab@null-c82a1447f5bc:~> sudo zypper ar http://download.opensuse.org/repositories/openSUSE:/Maintenance:/6079/openSU... leap422test Adding repository 'leap422test' ..........................................[done] Repository 'leap422test' successfully added Enabled : Yes Autorefresh : No GPG Check : Yes Priority : 99 URI : http://download.opensuse.org/repositories/openSUSE:/Maintenance:/6079/openSU... oweinerlab@null-c82a1447f5bc:~> sudo zypper up qemu Retrieving repository 'Main Update Repository' metadata ..................[done] Building repository 'Main Update Repository' cache .......................[done] New repository or package signing key received: Repository: leap422test Key Name: openSUSE:Maintenance OBS Project <openSUSE:Maintenance@build.opensuse.org> Key Fingerprint: 7C097045 B0D351D3 69AC453A 598D0E63 B3FD7E48 Key Created: Thu 06 Aug 2015 02:49:53 AM PDT Key Expires: Sat 14 Oct 2017 02:49:53 AM PDT Rpm Name: gpg-pubkey-b3fd7e48-55c32dc1 Do you want to reject the key, trust temporarily, or trust always? [r/t/a/? shows all options] (r): a Building repository 'leap422test' cache ..................................[done] Loading repository data... Reading installed packages... Resolving package dependencies... The following 7 packages are going to be upgraded: qemu qemu-block-curl qemu-block-iscsi qemu-block-rbd qemu-block-ssh qemu-tools qemu-x86 7 packages to upgrade. Overall download size: 5.7 MiB. Already cached: 0 B. After the operation, additional 141.3 KiB will be used. Continue? [y/n/? shows all options] (y): y Retrieving package qemu-block-ssh-2.6.2-23.1.x86_64 (1/7), 104.3 KiB ( 22.6 KiB unpacked) Retrieving: qemu-block-ssh-2.6.2-23.1.x86_64.rpm .........................[done] Retrieving package qemu-block-rbd-2.6.2-23.1.x86_64 (2/7), 103.5 KiB ( 22.8 KiB unpacked) Retrieving: qemu-block-rbd-2.6.2-23.1.x86_64.rpm .........................[done] Retrieving package qemu-block-iscsi-2.6.2-23.1.x86_64 (3/7), 108.0 KiB ( 35.1 KiB unpacked) Retrieving: qemu-block-iscsi-2.6.2-23.1.x86_64.rpm .......................[done] Retrieving package qemu-block-curl-2.6.2-23.1.x86_64 (4/7), 102.7 KiB ( 21.4 KiB unpacked) Retrieving: qemu-block-curl-2.6.2-23.1.x86_64.rpm ........................[done] Retrieving package qemu-2.6.2-23.1.x86_64 (5/7), 316.4 KiB (905.4 KiB unpacked) Retrieving: qemu-2.6.2-23.1.x86_64.rpm ...................................[done] Retrieving package qemu-x86-2.6.2-23.1.x86_64 (6/7), 4.2 MiB ( 17.4 MiB unpacked) Retrieving: qemu-x86-2.6.2-23.1.x86_64.rpm ...................[done (1.3 MiB/s)] Retrieving package qemu-tools-2.6.2-23.1.x86_64 (7/7), 786.3 KiB ( 4.4 MiB unpacked) Retrieving: qemu-tools-2.6.2-23.1.x86_64.rpm ...............[done (320.0 KiB/s)] Checking for file conflicts: .............................................[done] (1/7) Installing: qemu-block-ssh-2.6.2-23.1.x86_64 .......................[done] (2/7) Installing: qemu-block-rbd-2.6.2-23.1.x86_64 .......................[done] (3/7) Installing: qemu-block-iscsi-2.6.2-23.1.x86_64 .....................[done] (4/7) Installing: qemu-block-curl-2.6.2-23.1.x86_64 ......................[done] (5/7) Installing: qemu-2.6.2-23.1.x86_64 .................................[done] (6/7) Installing: qemu-x86-2.6.2-23.1.x86_64 .............................[done] (7/7) Installing: qemu-tools-2.6.2-23.1.x86_64 ...........................[done] oweinerlab@null-c82a1447f5bc:~> gnome-boxes (gnome-boxes:9181): Gtk-WARNING **: Theme parsing error: gtk-style.css:76:18: The 'outline-radius' property has been renamed to '-gtk-outline-radius' (gnome-boxes:9181): Gtk-WARNING **: Theme parsing error: gtk-style.css:87:18: The 'outline-radius' property has been renamed to '-gtk-outline-radius' ** (gnome-boxes:9181): WARNING **: Entity http://download.opensuse.org/tumbleweed/repo referenced but not defined ** (gnome-boxes:9181): WARNING **: Entity http://www.linux-usb.org/usb.ids/80ee/0021 referenced but not defined ** (gnome-boxes:9181): WARNING **: Using a file (/usr/share/gnome-boxes/gnome-boxes-logos-db.xml) as a database location is deprecated, use a directory instead (gnome-boxes:9181): Boxes-WARNING **: machine.vala:606: Failed to start openSUSE Tumbleweed: Unable to start domain: internal error: process exited while connecting to monitor: spice-qemu-char: unsupported type: smartcard allowed names: vdagent, usbredir qemu-system-x86_64: qemu-char.c:4539: qmp_chardev_add: Assertion `!i' failed. C^C -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1016418 http://bugzilla.opensuse.org/show_bug.cgi?id=1016418#c3 --- Comment #3 from Tamas Nagy <tamas@tamasnagy.com> --- Also, I don't know if this helps but I saw this conflict when removing qemu and reinstalling gnome-boxes. Also, I'm pretty new to opensuse so I'm still trying to get a hang of zypper. oweinerlab@null-c82a1447f5bc:~> sudo zypper rm qemu Loading repository data... Reading installed packages... Resolving package dependencies... The following application is going to be REMOVED: "GNOME Boxes" The following 7 packages are going to be REMOVED: gnome-boxes gnome-boxes-lang gnome-shell-search-provider-boxes libvirt-daemon-driver-qemu libvirt-daemon-qemu qemu qemu-x86 7 packages to remove. After the operation, 24.4 MiB will be freed. Continue? [y/n/? shows all options] (y): y (1/7) Removing gnome-boxes-lang-3.20.2-2.1.noarch .................................................................................................................................................[done] (2/7) Removing gnome-shell-search-provider-boxes-3.20.2-2.1.x86_64 ................................................................................................................................[done] (3/7) Removing qemu-x86-2.6.2-23.1.x86_64 .........................................................................................................................................................[done] (4/7) Removing gnome-boxes-3.20.2-2.1.x86_64 ......................................................................................................................................................[done] (5/7) Removing libvirt-daemon-qemu-2.0.0-9.1.x86_64 ...............................................................................................................................................[done] (6/7) Removing libvirt-daemon-driver-qemu-2.0.0-9.1.x86_64 ........................................................................................................................................[done] (7/7) Removing qemu-2.6.2-23.1.x86_64 .............................................................................................................................................................[done] oweinerlab@null-c82a1447f5bc:~> sudo zypper in gnome-boxes Loading repository data... Reading installed packages... Resolving package dependencies... Problem: gnome-boxes-3.20.2-2.1.x86_64 requires libvirt-daemon-qemu, but this requirement cannot be provided uninstallable providers: libvirt-daemon-qemu-2.0.0-9.1.x86_64[download.opensuse.org-oss] Solution 1: Following actions will be done: downgrade of qemu-block-curl-2.6.2-23.1.x86_64 to qemu-block-curl-2.6.1-21.1.x86_64 downgrade of qemu-block-iscsi-2.6.2-23.1.x86_64 to qemu-block-iscsi-2.6.1-21.1.x86_64 downgrade of qemu-block-rbd-2.6.2-23.1.x86_64 to qemu-block-rbd-2.6.1-21.1.x86_64 downgrade of qemu-block-ssh-2.6.2-23.1.x86_64 to qemu-block-ssh-2.6.1-21.1.x86_64 downgrade of qemu-tools-2.6.2-23.1.x86_64 to qemu-tools-2.6.1-21.1.x86_64 Solution 2: do not install gnome-boxes-3.20.2-2.1.x86_64 Solution 3: break gnome-boxes-3.20.2-2.1.x86_64 by ignoring some of its dependencies -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1016418 http://bugzilla.opensuse.org/show_bug.cgi?id=1016418#c4 Robin Roevens <robin.roevens@uza.be> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |robin.roevens@uza.be Flags|needinfo?(tamas@tamasnagy.c | |om) | --- Comment #4 from Robin Roevens <robin.roevens@uza.be> --- I see the same error using virt-manager on an up-to-date LEAP 42.2: ---- Fout bij starten van domein: internal error: process exited while connecting to monitor: spice-qemu-char: unsupported type: smartcard allowed names: vdagent, usbredir qemu-system-x86_64: qemu-char.c:4540: qmp_chardev_add: Assertion `!i' failed. Traceback (most recent call last): File "/usr/share/virt-manager/virtManager/asyncjob.py", line 88, in cb_wrapper callback(asyncjob, *args, **kwargs) File "/usr/share/virt-manager/virtManager/asyncjob.py", line 124, in tmpcb callback(*args, **kwargs) File "/usr/share/virt-manager/virtManager/libvirtobject.py", line 83, in newfn ret = fn(self, *args, **kwargs) File "/usr/share/virt-manager/virtManager/domain.py", line 1404, in startup self._backend.create() File "/usr/lib64/python2.7/site-packages/libvirt.py", line 1035, in create if ret == -1: raise libvirtError ('virDomainCreate() failed', dom=self) libvirtError: internal error: process exited while connecting to monitor: spice-qemu-char: unsupported type: smartcard allowed names: vdagent, usbredir qemu-system-x86_64: qemu-char.c:4540: qmp_chardev_add: Assertion `!i' failed. ---- .. If a remember correctly it did work on a fresh LEAP 42.2, but must have stopped working somewhere after installing updates. I also came across this similar Ubuntu bug https://bugs.launchpad.net/ubuntu/+source/gnome-boxes/+bug/1484118 from 2015 where spice was compiled without smartcard support. I suppose this may also be the problem here? I could not test with the proposed qemu packages as the first link is dead and the second does not contain qemu packages to upgrade to. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1016418 http://bugzilla.opensuse.org/show_bug.cgi?id=1016418#c5 Bruce Rogers <brogers@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |brogers@suse.com, | |lyan@suse.com Component|GNOME |Virtualization:Other Assignee|bnc-team-gnome@forge.provo. |virt-bugs@suse.de |novell.com | --- Comment #5 from Bruce Rogers <brogers@suse.com> --- Cedric, can you look into this from a spice perspective. It also seems we should not be getting an assert in qemu, but that is secondary, I believe, to resolving this issue. I'll add Liang Y, as a cc also to look at the qemu assert. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1016418 Bruce Rogers <brogers@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|virt-bugs@suse.de |cbosdonnat@suse.com -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1016418 http://bugzilla.opensuse.org/show_bug.cgi?id=1016418#c6 --- Comment #6 from Liang Yan <lyan@suse.com> --- I have been tracking code flow inside qemu, nothing special found yet. But I do find a interesting part about spice-0.12.7 in opensuse Leap 42.2. https://build.opensuse.org/package/view_file/openSUSE:Leap:42.2:Update/spice... --disable-smartcard but in currentspice0.12.8 (https://build.opensuse.org/package/view_file/Virtualization/spice/spice.spec...) it becomes: %if 0%{?is_opensuse} --enable-smartcard %else --disable-smartcard %endif I also checked qemu configure file, all enable-smartcard for opensuse. so I rebuild a spice package to enable smartcard (https://build.opensuse.org/package/binaries/home:lyan:branches:openSUSE:Leap...) Could anyone give it a try? Thanks. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1016418 http://bugzilla.opensuse.org/show_bug.cgi?id=1016418#c7 --- Comment #7 from Liang Yan <lyan@suse.com> --- I have been tracking code flow inside qemu, nothing special found yet. But I do find a interesting part about spice-0.12.7 in opensuse Leap 42.2. https://build.opensuse.org/package/view_file/openSUSE:Leap:42.2:Update/spice... --disable-smartcard but in currentspice0.12.8 (https://build.opensuse.org/package/view_file/Virtualization/spice/spice.spec...) it becomes: %if 0%{?is_opensuse} --enable-smartcard %else --disable-smartcard %endif I also checked qemu configure file, all enable-smartcard for opensuse. so I rebuild a spice package to enable smartcard (https://build.opensuse.org/package/binaries/home:lyan:branches:openSUSE:Leap...) Could anyone give it a try? Thanks. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1016418 http://bugzilla.opensuse.org/show_bug.cgi?id=1016418#c8 --- Comment #8 from Liang Yan <lyan@suse.com> --- Sorry, please ignore the above two comments, ): will keep debug source code. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1016418 http://bugzilla.opensuse.org/show_bug.cgi?id=1016418#c9 Liang Yan <lyan@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Flags| |needinfo?(tamas@tamasnagy.c | |om) --- Comment #9 from Liang Yan <lyan@suse.com> --- After debugging inside QEMU, I found the error is because that it could not create spicevmc devices, and during these creating process it needs to access libspice-server library outside. So eventually it is still because of this library. I hit this error in my openSUSE leap 42.2, and it became fine after I replace libspice-server library. So Tamas, Robin, could you give it a test for below steps? Thanks. =================================== sudo zypper ar http://download.opensuse.org/repositories/home:/lyan:/branches:/openSUSE:/Le... spice-test sudo zypper up libspice-server1 =================================== -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1016418 http://bugzilla.opensuse.org/show_bug.cgi?id=1016418#c10 Robin Roevens <robin.roevens@uza.be> changed: What |Removed |Added ---------------------------------------------------------------------------- Flags|needinfo?(tamas@tamasnagy.c | |om) | --- Comment #10 from Robin Roevens <robin.roevens@uza.be> --- I updated libspice-server1 but still get this error with virt-manager: --- Fout bij starten van domein: internal error: process exited while connecting to monitor: ccid-card-emulated: failed to initialize vcard 2017-03-21T08:15:35.190072Z qemu-system-x86_64: -device ccid-card-emulated,backend=nss-emulated,id=smartcard0,bus=ccid0.0: Device initialization failed. Traceback (most recent call last): File "/usr/share/virt-manager/virtManager/asyncjob.py", line 88, in cb_wrapper callback(asyncjob, *args, **kwargs) File "/usr/share/virt-manager/virtManager/asyncjob.py", line 124, in tmpcb callback(*args, **kwargs) File "/usr/share/virt-manager/virtManager/libvirtobject.py", line 83, in newfn ret = fn(self, *args, **kwargs) File "/usr/share/virt-manager/virtManager/domain.py", line 1404, in startup self._backend.create() File "/usr/lib64/python2.7/site-packages/libvirt.py", line 1035, in create if ret == -1: raise libvirtError ('virDomainCreate() failed', dom=self) libvirtError: internal error: process exited while connecting to monitor: ccid-card-emulated: failed to initialize vcard 2017-03-21T08:15:35.190072Z qemu-system-x86_64: -device ccid-card-emulated,backend=nss-emulated,id=smartcard0,bus=ccid0.0: Device initialization failed. --- Boxes gives me this: --- (gnome-boxes:9476): Boxes-WARNING **: machine.vala:606: Failed to start uzaws0531win: Unable to start domain: internal error: qemu unexpectedly closed the monitor: ccid-card-emulated: failed to initialize vcard 2017-03-21T08:16:41.388550Z qemu-system-x86_64: -device ccid-card-emulated,backend=nss-emulated,id=smartcard0,bus=ccid0.0: Device initialization failed. --- -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com