[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [TestDay] F20 Xen 4.4 RC3 Spice support



Il 04/02/2014 16:41, Eric Houby ha scritto:
Xen list,

I am trying to boot a F20 guest and connect using Spice but have run
into an issue.

My VM config file includes:
spice = 1
spicehost='0.0.0.0'
spiceport=6001
spicedisable_ticketing=1


Is Spice supported with qemu-xen-traditional?

No, only with upstream qemu and if compile xen and qemu from source you also enable spice support on qemu build, for example on my xen build tests I add:

tools/Makefile
@@ -201,6 +201,8 @@ subdir-all-qemu-xen-dir: qemu-xen-dir-find
         --datadir=$(SHAREDIR)/qemu-xen \
         --localstatedir=/var \
         --disable-kvm \
+        --enable-spice \
+        --enable-usb-redir \
         --disable-docs \
         --disable-guest-agent \
         --python=$(PYTHON) \

If you use upstream qemu from distribution package probably have already spice build-in, for example, on debian I've already tested and working.



[root@xen ~]# xl -vvv create f20.xl
Parsing config from f20.xl
libxl: debug: libxl_create.c:1342:do_domain_create: ao 0x795750: create:
how=(nil) callback=(nil) poller=0x794e10
libxl: verbose: libxl_create.c:134:libxl__domain_build_info_setdefault:
qemu-xen is unavailable, use qemu-xen-traditional instead: No such file
or directory
libxl: debug: libxl_device.c:251:libxl__device_disk_set_backend: Disk
vdev=hda spec.backend=unknown
libxl: debug: libxl_device.c:286:libxl__device_disk_set_backend: Disk
vdev=hda, using backend phy
libxl: debug: libxl_create.c:797:initiate_domain_create: running
bootloader
libxl: debug: libxl_bootloader.c:321:libxl__bootloader_run: not a PV
domain, skipping bootloader
libxl: debug: libxl_event.c:607:libxl__ev_xswatch_deregister: watch
w=0x795af8: deregister unregistered
libxl: debug: libxl_numa.c:475:libxl__get_numa_candidate: New best NUMA
placement candidate found: nr_nodes=1, nr_cpus=8, nr_vcpus=4,
free_memkb=14131
libxl: detail: libxl_dom.c:195:numa_place_domain: NUMA placement
candidate with 1 nodes, 8 cpus and 14131 KB free selected
xc: detail: elf_parse_binary: phdr: paddr=0x100000 memsz=0x9e704
xc: detail: elf_parse_binary: memory: 0x100000 -> 0x19e704
xc: detail: VIRTUAL MEMORY ARRANGEMENT:
   Loader:        0000000000100000->000000000019e704
   Modules:       0000000000000000->0000000000000000
   TOTAL:         0000000000000000->00000000ffc00000
   ENTRY ADDRESS: 0000000000100000
xc: detail: PHYSICAL MEMORY ALLOCATION:
   4KB PAGES: 0x0000000000000200
   2MB PAGES: 0x00000000000003fd
   1GB PAGES: 0x0000000000000002
xc: detail: elf_load_binary: phdr 0 at 0x7f87b7100000 -> 0x7f87b719558d
libxl: debug: libxl_device.c:251:libxl__device_disk_set_backend: Disk
vdev=hda spec.backend=phy
libxl: debug: libxl_event.c:559:libxl__ev_xswatch_register: watch
w=0x796f68 wpath=/local/domain/0/backend/vbd/3/768/state token=3/0:
register slotnum=3
libxl: debug: libxl_create.c:1356:do_domain_create: ao 0x795750:
inprogress: poller=0x794e10, flags=i
libxl: debug: libxl_event.c:503:watchfd_callback: watch w=0x796f68
wpath=/local/domain/0/backend/vbd/3/768/state token=3/0: event
epath=/local/domain/0/backend/vbd/3/768/state
libxl: debug: libxl_event.c:646:devstate_watch_callback:
backend /local/domain/0/backend/vbd/3/768/state wanted state 2 still
waiting state 1
libxl: debug: libxl_event.c:503:watchfd_callback: watch w=0x796f68
wpath=/local/domain/0/backend/vbd/3/768/state token=3/0: event
epath=/local/domain/0/backend/vbd/3/768/state
libxl: debug: libxl_event.c:642:devstate_watch_callback:
backend /local/domain/0/backend/vbd/3/768/state wanted state 2 ok
libxl: debug: libxl_event.c:595:libxl__ev_xswatch_deregister: watch
w=0x796f68 wpath=/local/domain/0/backend/vbd/3/768/state token=3/0:
deregister slotnum=3
libxl: debug: libxl_event.c:607:libxl__ev_xswatch_deregister: watch
w=0x796f68: deregister unregistered
libxl: debug: libxl_device.c:1022:device_hotplug: calling hotplug
script: /etc/xen/scripts/block add
libxl: debug: libxl_event.c:607:libxl__ev_xswatch_deregister: watch
w=0x796ff0: deregister unregistered
libxl: debug: libxl_event.c:607:libxl__ev_xswatch_deregister: watch
w=0x796ff0: deregister unregistered
libxl: debug: libxl_dm.c:1303:libxl__spawn_local_dm: Spawning
device-model /usr/lib/xen/bin/qemu-dm with arguments:
libxl: debug:
libxl_dm.c:1305:libxl__spawn_local_dm:   /usr/lib/xen/bin/qemu-dm
libxl: debug: libxl_dm.c:1305:libxl__spawn_local_dm:   -d
libxl: debug: libxl_dm.c:1305:libxl__spawn_local_dm:   3
libxl: debug: libxl_dm.c:1305:libxl__spawn_local_dm:   -domain-name
libxl: debug: libxl_dm.c:1305:libxl__spawn_local_dm:   f20
libxl: debug: libxl_dm.c:1305:libxl__spawn_local_dm:   -videoram
libxl: debug: libxl_dm.c:1305:libxl__spawn_local_dm:   4
libxl: debug: libxl_dm.c:1305:libxl__spawn_local_dm:   -boot
libxl: debug: libxl_dm.c:1305:libxl__spawn_local_dm:   c
libxl: debug: libxl_dm.c:1305:libxl__spawn_local_dm:   -acpi
libxl: debug: libxl_dm.c:1305:libxl__spawn_local_dm:   -vcpus
libxl: debug: libxl_dm.c:1305:libxl__spawn_local_dm:   2
libxl: debug: libxl_dm.c:1305:libxl__spawn_local_dm:   -vcpu_avail
libxl: debug: libxl_dm.c:1305:libxl__spawn_local_dm:   0x03
libxl: debug: libxl_dm.c:1305:libxl__spawn_local_dm:   -net
libxl: debug: libxl_dm.c:1305:libxl__spawn_local_dm:
nic,vlan=0,macaddr=00:16:00:00:11:22,model=e1000
libxl: debug: libxl_dm.c:1305:libxl__spawn_local_dm:   -net
libxl: debug: libxl_dm.c:1305:libxl__spawn_local_dm:
tap,vlan=0,ifname=vif3.0-emu,bridge=br0,script=no,downscript=no
libxl: debug: libxl_dm.c:1305:libxl__spawn_local_dm:   -M
libxl: debug: libxl_dm.c:1305:libxl__spawn_local_dm:   xenfv
libxl: debug: libxl_event.c:559:libxl__ev_xswatch_register: watch
w=0x795d30 wpath=/local/domain/0/device-model/3/state token=3/1:
register slotnum=3
libxl: debug: libxl_event.c:503:watchfd_callback: watch w=0x795d30
wpath=/local/domain/0/device-model/3/state token=3/1: event
epath=/local/domain/0/device-model/3/state
libxl: debug: libxl_event.c:503:watchfd_callback: watch w=0x795d30
wpath=/local/domain/0/device-model/3/state token=3/1: event
epath=/local/domain/0/device-model/3/state
libxl: debug: libxl_event.c:595:libxl__ev_xswatch_deregister: watch
w=0x795d30 wpath=/local/domain/0/device-model/3/state token=3/1:
deregister slotnum=3
libxl: debug: libxl_event.c:607:libxl__ev_xswatch_deregister: watch
w=0x795d30: deregister unregistered
libxl: debug: libxl_event.c:559:libxl__ev_xswatch_register: watch
w=0x79a038 wpath=/local/domain/0/backend/vif/3/0/state token=3/2:
register slotnum=3
libxl: debug: libxl_event.c:503:watchfd_callback: watch w=0x79a038
wpath=/local/domain/0/backend/vif/3/0/state token=3/2: event
epath=/local/domain/0/backend/vif/3/0/state
libxl: debug: libxl_event.c:646:devstate_watch_callback:
backend /local/domain/0/backend/vif/3/0/state wanted state 2 still
waiting state 1
libxl: debug: libxl_event.c:503:watchfd_callback: watch w=0x79a038
wpath=/local/domain/0/backend/vif/3/0/state token=3/2: event
epath=/local/domain/0/backend/vif/3/0/state
libxl: debug: libxl_event.c:642:devstate_watch_callback:
backend /local/domain/0/backend/vif/3/0/state wanted state 2 ok
libxl: debug: libxl_event.c:595:libxl__ev_xswatch_deregister: watch
w=0x79a038 wpath=/local/domain/0/backend/vif/3/0/state token=3/2:
deregister slotnum=3
libxl: debug: libxl_event.c:607:libxl__ev_xswatch_deregister: watch
w=0x79a038: deregister unregistered
libxl: debug: libxl_device.c:1022:device_hotplug: calling hotplug
script: /etc/xen/scripts/vif-bridge online
libxl: debug: libxl_event.c:607:libxl__ev_xswatch_deregister: watch
w=0x79a0c0: deregister unregistered
libxl: debug: libxl_device.c:1022:device_hotplug: calling hotplug
script: /etc/xen/scripts/vif-bridge add
libxl: debug: libxl_event.c:607:libxl__ev_xswatch_deregister: watch
w=0x79a0c0: deregister unregistered
libxl: debug: libxl_event.c:607:libxl__ev_xswatch_deregister: watch
w=0x79a0c0: deregister unregistered
libxl: debug: libxl_event.c:1729:libxl__ao_progress_report: ao 0x795750:
progress report: ignored
libxl: debug: libxl_event.c:1559:libxl__ao_complete: ao 0x795750:
complete, rc=0
libxl: debug: libxl_event.c:1531:libxl__ao__destroy: ao 0x795750:
destroy
xc: debug: hypercall buffer: total allocations:1097 total releases:1097
xc: debug: hypercall buffer: current allocations:0 maximum allocations:4
xc: debug: hypercall buffer: cache current size:4
xc: debug: hypercall buffer: cache hits:1089 misses:4 toobig:4
[root@xen ~]#

The QEMU command line created is:

/usr/lib/xen/bin/qemu-dm -d 3 -domain-name f20 -videoram 4 -boot c -acpi
-vcpus 2 -vcpu_avail 0x03 -net
nic,vlan=0,macaddr=00:16:00:00:11:22,model=e1000 -net
tap,vlan=0,ifname=vif3.0-emu,bridge=br0,script=no,downscript=no -M xenfv



Thanks,

Eric









_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.