LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-21-2012, 10:27 AM   #1
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,371

Rep: Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750
Virtual XP guest shuts down when spice client disconnects from qemu-kvm


I have been fumbling my way through building a Windows XP guest to run in qemu-kvm that I want to be able to access using a spice client.

I am now at a stage that I can access the guest using 'spicec -h localhost -p 5930' on the host machine or by using spicec.exe on a remote Windows machine. It is really impressive!

However, when I disconnect by closing the spice client, the virtual machine also shuts down and I see this.
Quote:
listen_to_new_client_channel: NEW ID = 0
reds_show_new_channel: channel 3:0, connected successfully, over Non Secure link
inputs_connect: inputs channel client create
display_channel_client_wait_for_init: creating encoder with id == 0
display_channel_release_item: not pushed (101)
red_channel_client_disconnect: 0x7fbb7e387a40 (channel 0x7fbb79a564a0 type 1 id 0)
main_channel_client_on_disconnect: rcc=0x7fbb7e387a40
reds_client_disconnect:
red_client_destroy: destroy client with #channels 4
red_channel_client_disconnect: 0x7fbb7e1ec1b0 (channel 0x7fbb79a624a0 type 3 id 0)
red_dispatcher_disconnect_display_peer:
handle_dev_display_disconnect: disconnect display client
red_channel_client_disconnect: 0x7fbb7e1ac810 (channel 0x7fbb79b9ac00 type 2 id 0)
display_channel_client_on_disconnect:
red_dispatcher_disconnect_cursor_peer:
handle_dev_cursor_disconnect: disconnect cursor client
red_channel_client_disconnect: 0x7fbb7e3aafa0 (channel 0x7fbb79b9b1a0 type 4 id 0)
red_channel_client_disconnect: 0x7fbb7e387a40 (channel 0x7fbb79a564a0 type 1 id 0)
red_channel_remove_client: ASSERT pthread_equal(pthread_self(), rcc->channel->thread_id) failed
/usr/lib64/libspice-server.so.1(+0xbe1c4)[0x7fbb75b4c1c4]
/usr/lib64/libspice-server.so.1(+0x1a053)[0x7fbb75aa8053]
/usr/lib64/libspice-server.so.1(+0x1c439)[0x7fbb75aaa439]
/usr/lib64/libspice-server.so.1(+0x456b0)[0x7fbb75ad36b0]
/usr/lib64/libspice-server.so.1(+0x45cb9)[0x7fbb75ad3cb9]
/usr/lib64/libspice-server.so.1(+0x45e00)[0x7fbb75ad3e00]
qemu-kvm(+0xc31f7)[0x7fbb78cb21f7]
qemu-kvm(+0x1223b2)[0x7fbb78d113b2]
qemu-kvm(main+0x113f)[0x7fbb78c5f02f]
/lib64/libc.so.6(__libc_start_main+0xed)[0x7fbb752744cd]
qemu-kvm(+0x73ce9)[0x7fbb78c62ce9]
Aborted
I have used these two commands to invoke the running guest:
Code:
qemu-kvm -enable-kvm -m 256M -rtc base=localtime -vga qxl -net tap,ifname=tap0,script=no,downscript=no -net nic,model=virtio -usb -usbdevice tablet -soundhw es1370  -spice port=5930,disable-ticketing  /home/david/Desktop/qemu/WinXP_SP3/Windows_XP_Professional_SP_3.img
and
Code:
qemu-kvm -enable-kvm -m 256M -rtc base=localtime -vga qxl -net tap,ifname=tap0,script=no,downscript=no -net nic,model=virtio -usb -usbdevice tablet -soundhw es1370  -spice port=5930,disable-ticketing -device virtio-serial-pci,id=virtio-serial0,max_ports=16,bus=pci.0,addr=0x5 -chardev spicevmc,name=vdagent,id=vdagent -device virtserialport,nr=1,bus=virtio-serial0.0,chardev=vdagent,name=com.redhat.spice.0 /home/david/Desktop/qemu/WinXP_SP3/Windows_XP_Professional_SP_3.img
The second command includes options from http://spice-space.org/page/Whiteboard/AgentProtocol which I had hoped might activate proper communication with the vdagent in the guest.
However, I do see this at startup.
Quote:
qemu-kvm: virtio-serial-bus: Unexpected port id 3780502472 for device virtio-serial0.0
I built my qemu-kvm with support for spice using the 13.37 packages from Slackbuilds.org on my Slackware64-current box.

I am wondering whether I may have missed some compile option or have overlooked some qemu-kvm invocation voodoo or have missed some vital information in the somewhat fragmented documentation for spice.

Can anybody offer any thoughts?
 
Old 03-21-2012, 08:09 PM   #2
rworkman
Slackware Contributor
 
Registered: Oct 2004
Location: Tuscaloosa, Alabama (USA)
Distribution: Slackware
Posts: 2,559

Rep: Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351
Given that assert in the output, I suspect the problem isn't you at all - qemu-kvm is segfaulting when the spice client disconnects.

I don't have any experience with Windows guests and spice at all, but I will say that I run several linux machines with nearly identical command lines (exactly the same wrt spice), and all is fine here.
 
Old 03-22-2012, 12:28 AM   #3
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,371

Original Poster
Rep: Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750
Thanks rworkman. Your intuition appears correct. I have found a bug report for this http://lists.freedesktop.org/archive...er/000203.html with a patch that I will try. https://bugs.freedesktop.org/attachment.cgi?id=54677
 
Old 03-22-2012, 09:34 AM   #4
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,371

Original Poster
Rep: Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750
Spoke too soon. The patch I referred to in post #3 is already included in spice-0.10.1 as supplied in the Slackbuild at Slackbuilds.org.
The solution is in the qemu-kvm invocation. Changed from '-soundhw es1370' to '-soundhw ac97' after seeing post #12 at https://bugzilla.redhat.com/show_bug.cgi?id=759847 and all is fine and dandy.
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Qemu-kvm 1.0 & Spice-protocol 0.10.1 & Spice-Gtk 0.8 USB Redirection on Ubuntu Precise LXer Syndicated Linux News 0 01-19-2012 03:00 PM
LXer: Qemu-kvm 1.0 & Spice 0.10.0 & Spice-Gtk-0.7.81 USB redirection for Ubuntu Precise and Oneiric LXer Syndicated Linux News 0 11-30-2011 08:30 PM
LXer: Implementation Qemu-kvm 0.15.0, SpiceServer and Spice-Gtk-0.7 on Ubuntu 11.10 KVM Server the m LXer Syndicated Linux News 0 08-30-2011 04:40 PM
LXer: Set up Spicevmc Channel on Ubuntu 11.04 as KVM Server and spice-vdagent as a KVM guest LXer Syndicated Linux News 0 06-15-2011 07:10 PM
LXer: Attempt of qemu-kvm-0.14 patching via Gerd’s Hoffmann “spice/qxl: locking fix for qemu-kvm” on LXer Syndicated Linux News 0 03-14-2011 01:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 10:21 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration