knazarov / homebrew-qemu-virgl

A homebrew tap for qemu with support for 3d accelerated guests
415 stars 68 forks source link

after add Clipboard sharing start parameter, qemu complains 'qemu-vdagent' is not a valid char driver name #47

Closed lzq420241 closed 3 years ago

lzq420241 commented 3 years ago

here are my macbook info:

Screen Shot 2021-08-17 at 12 05 23 AM Screen Shot 2021-08-17 at 12 06 39 AM

I installed an ubuntu 20.04 guest, when run qemu with the following -chardev qemu-vdagent,id=spice,name=vdagent,clipboard=on -device virtio-serial-pci -device virtserialport,chardev=spice,name=com.redhat.spice.0 the startup failed, the output is: qemu-system-x86_64: -chardev qemu-vdagent,id=spice,name=vdagent,clipboard=on: 'qemu-vdagent' is not a valid char driver name

lzq420241 commented 3 years ago

Should I run qemu with clipboard sharing when I built the guest from cdrom? The guest image file was made from an offical qemu.

knazarov commented 3 years ago

Hi @lzq420241 !

Try rebuilding from source like this:

brew reinstall -s qemu-virgl

It’s possible that you’ve grabbed a binary release that lags a bit behind.

Regarding the image - it doesn’t matter how you built it — the image from regular qemu will do.

lzq420241 commented 3 years ago

Thanks! After reinstall from source, the clipboard works now.