2017年10月4日 星期三

QEMU -usbdevice is deprecated

改成:

machine usb=on -device usb-tablet



更新Arch linux 後啟動 qemu 虛擬機時遇到提示:


qemu-system-x86_64: -usbdevice tablet: '-usbdevice' is deprecated, please use '-device usb-...' instead

加上 -device usb-tablet 之後出現

qemu-system-x86_64: -device usb-tablet: No 'usb-bus' bus found for device 'usb-tablet'

Deprecation of old parameters and features 連結的 qemu-doc.html#Deprecated-features 找到需要再加上 -machine usb=on

目前使用 windows xp 的 qcow2 映像檔,使用copy-on-write 檔案 win_xp_cp.img
 client 可從 //10.0.2.4/qemu 以samba 連接到 /tmp,
VNC: localhost:5999
但是在 windows xp 中無法看到雙處理器
$ qemu-system-x86_64 -m 2048 -hda win_xp_cp.img -enable-kvm -net nic,model=rtl8139 -net user,smb=/tmp -cpu host -smp 2,sockets=1,cores=2,threads=1 -soundhw ac97 -vga std -device usb-tablet -machine usb=on,type=pc,accel=kvm -vnc :99


沒有留言:

張貼留言