quickemu icon indicating copy to clipboard operation
quickemu copied to clipboard

The VM fails to start because value 'smartcard' of argument 'name' of the -chardev option of qemu-system-x86_64 is invalid.

Open DidierSpaier opened this issue 1 year ago • 10 comments

Expected behaviour

quickemu --vm should start the VM

Actual behaviour

The VM fails to start.

Please note that I have installed qemu 8.2.0. Configuration summary.

Steps to reproduce the behaviour

Outline the step to reproduce the issue you've encountered.

quickget windows 11
quickemu --vm windows-11.conf

I have tried other distributions, same issue in all cases.

Quickemu output

Run quickemu or quickget and paste the output here.

quickemu --vm windows-11.conf
Quickemu 4.9.1 using /usr/bin/qemu-system-x86_64 v8.2.0
 - Host:     Slint 15.0 running Linux 6.6 (ici.ici.net)
 - CPU:       Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz
 - CPU VM:   1 Socket(s), 2 Core(s), 2 Thread(s), 4G RAM
 - MSR:      WARNING! Ignoring unhandled Model-Specific Registers is disabled.

             echo 1 | sudo tee /sys/module/kvm/parameters/ignore_msrs

             If you are unable to run macOS or Windows VMs then run the above 👆
             This will enable ignoring of unhandled MSRs until you reboot the host.
             You can make this change permanent by running: 'quickemu --ignore-msrs-always'
 - BOOT:     EFI (Windows), OVMF (/usr/share/qemu/edk2-x86_64-code.fd), SecureBoot (off).
 - Disk:     windows-11/disk.qcow2 (64G)
             Looks unused, booting from windows-11/Win11_23H2_English_x64v2.iso
 - Boot ISO: windows-11/Win11_23H2_English_x64v2.iso
 - CD-ROM:   windows-11/virtio-win.iso
 - Display:  SDL, virtio-vga-gl, GL (on), VirGL (on)
 - Sound:    intel-hda
 - ssh:      On host:  ssh user@localhost -p 22220
 - WebDAV:   On guest: dav://localhost:9843/
 - smbd:     On guest: smb://10.0.2.4/qemu
 - TPM:      windows-11/windows-11.swtpm-sock (6844)
 - Network:  User (virtio-net)
 - Monitor:  On host:  nc -U "windows-11/windows-11-monitor.socket"
             or     :  socat -,echo=0,icanon=0 unix-connect:windows-11/windows-11-monitor.socket
 - Serial:   On host:  nc -U "windows-11/windows-11-serial.socket"
             or     :  socat -,echo=0,icanon=0 unix-connect:windows-11/windows-11-serial.socket
qemu-system-x86_64: -no-hpet: warning: -no-hpet is deprecated, use '-machine hpet=off' instead
qemu-system-x86_64: -chardev spicevmc,id=ccid,name=smartcard: unsupported type name: smartcard
allowed spice char type names: vdagent, usbredir
cat: windows-11/windows-11.pid: No such file or directory
 - Process:  Starting windows-11.conf as windows-11 ()
 - Sending:  sendkey ret
2023/12/29 18:52:56 socat[6854] E connect(5, AF=2 127.0.0.1:4440, 16): Connection refused

Linux Distribution & Kernel

Run the following and paste the output.

lsb_release --all
uname -a

lsb_release is not installed however os-release is present:

didier[bigfiles]$ cat /etc/os-release
NAME=Slint
VERSION="15.0"
ID=slint
VERSION_ID=15.0
PRETTY_NAME="Slint 15.0"
ANSI_COLOR="0;34"
CPE_NAME="cpe:/o:slint:slint_linux:15.0"
HOME_URL="https://slint.fr/"
SUPPORT_URL="https://www.freelists.org/list/slint"
BUG_REPORT_URL="https://www.freelists.org/list/slint"
didier[bigfiles]$ uname -a
Linux ici.ici.net 6.6.7 #1 SMP PREEMPT_DYNAMIC Thu Dec 14 21:30:24 CET 2023 x86_64 Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz GenuineIntel GNU/Linux

FYI this script instead works: https://slint.fr/doc/windows11.sh

DidierSpaier avatar Dec 29 '23 18:12 DidierSpaier

Not directly releated but what about adding slint to supported distros? 🤔

Not many distros for blind people I think...

Yes, this has been suggested by a friend so I consider doing that and also package quickemu for Slint, this is why I am trying it. But for this to happen I have to test it successfully first :)

DidierSpaier avatar Dec 29 '23 19:12 DidierSpaier

Smartcard support is disabled in your distro's QEMU build. You'll have to build QEMU yourself or request the distro maintainers to enable the feature in the next build. This is not a quickemu issue.

lj3954 avatar Dec 29 '23 20:12 lj3954

Smartcard support is disabled in your distro's QEMU build. You'll have to build QEMU yourself or request the distro maintainers to enable the feature in the next build. This is not a quickemu issue.

I can rebuild QEMU (I am the distro maintainer), but I suggest that the required features of QEMU to run quickemu be documented. Maybe they are, but I was unable to find such an information. Do I need better glasses? I would not like to also miss another needed feature, hence my question.

DidierSpaier avatar Dec 29 '23 20:12 DidierSpaier

Digging a little more i have found the answer in a closed issue: https://github.com/quickemu-project/quickemu/issues/717

However I agree with this comment https://github.com/quickemu-project/quickemu/pull/364#issuecomment-1046211509

DidierSpaier avatar Dec 29 '23 21:12 DidierSpaier

Add Slint PR #889

Some specific distro requirements? I spot something about 50GB on DistroWatch...

Yes, listed here. By the way I still do not really know why Jesse Smith failed to install it...

DidierSpaier avatar Dec 29 '23 21:12 DidierSpaier

Live ISO would be nice for quicker testing...

Yes. Contributors are welcome :)

DidierSpaier avatar Dec 29 '23 22:12 DidierSpaier

This isn't affecting all distros. My feeling is that issue is down to differing Qemu builds and/or differing dependency builds in different distros. There was similar problem back in June too, last year #717

Manjaro offered updates to Qemu 8.2 yesterday. It all works fine. Smartcard is present as normal.

8 2 smartcard

Irrespectively, I have added a hot fix for this problem to qqX this morning while we wait for a new quickemu update ...

https://github.com/TuxVinyards/qqX/releases/tag/1.4.05

TuxVinyards avatar Jan 03 '24 15:01 TuxVinyards

Closed via #986

flexiondotorg avatar Apr 11 '24 22:04 flexiondotorg

I could fix this issue on Gentoo Linux by rebuilding app-emulation/spice with smartcard USE flag. I built app-emulation/qemu with smartcard as well but this didn't help.

atykhonov avatar Jun 24 '24 01:06 atykhonov

This issue was fixed several releases ago, it's no longer relevant.

lj3954 avatar Jun 24 '24 02:06 lj3954

This issue was fixed several releases ago, it's no longer relevant.

I ran into it an hour ago.

$ ./quickemu --version                      
4.9.5

atykhonov avatar Jun 24 '24 02:06 atykhonov

This issue was fixed several releases ago, it's no longer relevant.

I ran into it an hour ago.

$ ./quickemu --version                      
4.9.5

Please paste the output of qemu-system-x86_64 -device help | grep smartcard, if you still have access to the build in which you experienced these issues.

lj3954 avatar Jun 24 '24 02:06 lj3954

Please paste the output of qemu-system-x86_64 -device help | grep smartcard, if you still have access to the build in which you experienced these issues.

I built qemu with smartcard USE flag. So it was there, but still, the issue remained actual. It was fixed when I rebuilt app-emulation/spice with smartcard USE flag as I wrote in my comment.

Ok, np, if you still need it, here it is:

$ qemu-system-x86_64 -device help | grep smartcard
name "ccid-card-emulated", bus ccid-bus, desc "emulated smartcard"
name "ccid-card-passthru", bus ccid-bus, desc "passthrough smartcard"
name "usb-ccid", bus usb-bus, desc "CCID Rev 1.1 smartcard reader"

atykhonov avatar Jun 24 '24 02:06 atykhonov

Re-opening issue due to regression in https://github.com/quickemu-project/quickemu/commit/e29173a16d5fb1546a725a28bc8973007b228bbe

lj3954 avatar Jun 24 '24 02:06 lj3954

Removed some unrelated comments for clarity.

flexiondotorg avatar Jun 24 '24 08:06 flexiondotorg