[Spice-devel] spice-vdagent start failed
Dunrong Huang
riegamaths at gmail.com
Sun Nov 18 18:53:03 PST 2012
hi,
It seems that your Host os is gentoo, and guest os is windows xp.
QEMU running on your host simulates the device for guest os, and your
host do not know nothing of the device.
So guest is responsible for installing device driver, runing agent
application for communication with device and QEMU.
The virtual serial device only exists in guest os(for linux guest, the
path is /dev/virtio-ports/com.redhat.spice.0),
so you wont get /dev/virtio-ports/com.redhat.spice.0 in your host.
Similarly, Only the guest os has /etc/init.d/spice-vdagent
and can run it.
In your case, you shoud download and install window drivers in your windows XP.
Please refer: http://spice-space.org/download.html // Guest -> Windows binaries
2012/11/18 me,apporc <appleorchard2000 at gmail.com>:
> Hi,
>
> I use this qemu command line to start my virtual machine, but didn't get
> /dev/virtio-ports/com.redhat.spice.0
>
>
> /usr/bin/qemu-system-x86_64 -enable-kvm -name winxp -S -M pc-1.1 -cpu
> core2duo,+lahf_lm,+pdcm,+xtpr,+cx16,+tm2,+est,+vmx,+ds_cpl,+dtes64,+pbe,+tm,+ht,+ss,+acpi,+ds
> -enable-kvm -m 1024 -smp 1,sockets=1,cores=1,threads=1 -uuid
> 05f5ab57-fca8-3c2e-6705-79e40e85a2b4 -no-user-config -nodefaults -chardev
> socket,id=charmonitor,path=/var/lib/libvirt/qemu/winxp.monitor,server,nowait
> -mon chardev=charmonitor,id=monitor,mode=control -rtc base=localtime
> -no-shutdown -device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 -device
> virtio-serial-pci,id=virtio-serial0,bus=pci.0,addr=0x5 -drive
> file=/var/lib/libvirt/images/winxp.img,if=none,id=drive-virtio-disk0,format=qcow2
> -device
> virtio-blk-pci,scsi=off,bus=pci.0,addr=0x7,drive=drive-virtio-disk0,id=virtio-disk0,bootindex=1
> -drive
> file=/home/apporc/Software/ISO/virtio-win-0.1-30.iso,if=none,id=drive-ide0-1-0,readonly=on,format=raw
> -device ide-cd,bus=ide.1,unit=0,drive=drive-ide0-1-0,id=ide0-1-0 -netdev
> tap,fd=19,id=hostnet0,vhost=on,vhostfd=20 -device
> virtio-net-pci,netdev=hostnet0,id=net0,mac=52:54:00:9d:e6:c2,bus=pci.0,addr=0x3
> -chardev pty,id=charserial0 -device
> isa-serial,chardev=charserial0,id=serial0 -chardev
> spicevmc,id=charchannel0,name=vdagent -device
> virtserialport,bus=virtio-serial0.0,nr=1,chardev=charchannel0,id=channel0,name=com.redhat.spice.0
> -device usb-tablet,id=input0 -spice
> port=5900,addr=127.0.0.1,disable-ticketing -vga qxl -global
> qxl-vga.vram_size=67108864 -device AC97,id=sound0,bus=pci.0,addr=0x4
> -chardev spicevmc,id=charredir0,name=usbredir -device
> usb-redir,chardev=charredir0,id=redir0 -device
> virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x6
>
>
> OS: gentoo
> Kernel: 3.5.7 x86_64
> VIRSH version:
> Compiled against library: libvirt 0.10.2
> Using library: libvirt 0.10.2
> Using API: QEMU 0.10.2
> Running hypervisor: QEMU 1.1.2
>
> spice-vdagent version: 0.12.0
>
>
> apporc-gentoo ~ # /etc/init.d/spice-vdagent start
> * Checking for required modules and devices ...
> * Required virtio port does not exist. Make sure you
> * started the virtual machine with appropriate parameters.
> [ !! ]
> * ERROR: spice-vdagent failed to start
> apporc-gentoo ~ # virsh list
> Id Name State
> ----------------------------------------------------
> 4 winxp running
>
>
> Thank you.
>
>
> _______________________________________________
> Spice-devel mailing list
> Spice-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/spice-devel
>
--
Best Regards,
Dunrong Huang
More information about the Spice-devel
mailing list