qemu core dumped by kvm-spice

Bug #1062201 reported by Tom Wijmenga
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
QEMU
Invalid
Undecided
Unassigned
qemu-kvm-spice (Ubuntu)
Invalid
Medium
Unassigned

Bug Description

Hi there,

I am trying to use kvm-spice to start the qemu virtual machines. They start fine with the /usr/ bin/kvm command, but when I use the kvm-spice command the VM will not start and the core is dumped.

Command I used:
kvm-spice -cpu host -enable-kvm -name win-7 -m 3000 -drive file=/var/vmmachines/win-7.img -net nic,model=rtl8139 -net user -localtime -usb -vga qxl -global qxl-vga.vram_size=67108864 -spice port=5901,disable-ticketing -boot d

Response:
do_spice_init: starting 0.10.1
spice_server_add_interface: SPICE_INTERFACE_MIGRATION
spice_server_add_interface: SPICE_INTERFACE_KEYBOARD
spice_server_add_interface: SPICE_INTERFACE_MOUSE
spice_server_add_interface: SPICE_INTERFACE_QXL
red_worker_main: begin
display_channel_create: create display channel
cursor_channel_create: create cursor channel
kvm-spice: /build/buildd/qemu-linaro-1.0.50-2012.03/exec.c:2641: register_subpage: Assertion `existing.mr->subpage || existing.mr == &io_mem_unassigned' failed.
Aborted (core dumped)

I am running Ubuntu 12.04 sserver for this. Any information about this issue would be appreciated, i'm stuck on this one.

Kind regards,
Tom

Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

Hi,

I can't reproduce this on either precise or quantal with the stock packages.

Does it crash before starting to boot windows?

Can you try installing the qemu-linaro-dbgsym package (per https://wiki.ubuntu.com/DebuggingProgramCrash) and re-run to get a stack trace?

Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

Sorry, that debug package would be called qemu-kvm-spice-dbgsym.

Changed in qemu-kvm-spice (Ubuntu):
importance: Undecided → Medium
Revision history for this message
Tom Wijmenga (tomwijmenga) wrote : RE: [Bug 1062201] Re: qemu core dumped by kvm-spice

Hey Serge, thanks for your response.

Running the debug module like you asked me to, the attached text file was generated.

About the crashing before booting Windows: I have no idea. It starts the VM for about one or two seconds, then dumps the core and kills the VM. I'd like to point out it kills the VM with any OS, not just Windows 7. I've tried this with Ubuntu 12.04 (client and server), Windows XP and I think I also tried it with Windows 2k8 R2. It just crashes the VM if I start it this way.

The way I am using it now is by using the /usr/bin/kvm command. The way I installed the server was by using this PPA: https://launchpad.net/~bderzhavets/+archive/lib-usbredir81

Hope you can help,
Tom

-----Oorspronkelijk bericht-----
Van: <email address hidden> [mailto:<email address hidden>] Namens Serge Hallyn
Verzonden: vrijdag 5 oktober 2012 16:16
Aan: <email address hidden>
Onderwerp: [Bug 1062201] Re: qemu core dumped by kvm-spice

Sorry, that debug package would be called qemu-kvm-spice-dbgsym.

** Also affects: qemu-kvm-spice (Ubuntu)
   Importance: Undecided
       Status: New

** Changed in: qemu-kvm-spice (Ubuntu)
   Importance: Undecided => Medium

--
You received this bug notification because you are subscribed to the bug
report.
https://bugs.launchpad.net/bugs/1062201

Title:
  qemu core dumped by kvm-spice

Status in QEMU:
  New
Status in “qemu-kvm-spice” package in Ubuntu:
  New

Bug description:
  Hi there,

  I am trying to use kvm-spice to start the qemu virtual machines. They
  start fine with the /usr/ bin/kvm command, but when I use the kvm-
  spice command the VM will not start and the core is dumped.

  Command I used:
  kvm-spice -cpu host -enable-kvm -name win-7 -m 3000 -drive file=/var/vmmachines/win-7.img -net nic,model=rtl8139 -net user -localtime -usb -vga qxl -global qxl-vga.vram_size=67108864 -spice port=5901,disable-ticketing -boot d

  Response:
  do_spice_init: starting 0.10.1
  spice_server_add_interface: SPICE_INTERFACE_MIGRATION
  spice_server_add_interface: SPICE_INTERFACE_KEYBOARD
  spice_server_add_interface: SPICE_INTERFACE_MOUSE
  spice_server_add_interface: SPICE_INTERFACE_QXL
  red_worker_main: begin
  display_channel_create: create display channel
  cursor_channel_create: create cursor channel
  kvm-spice: /build/buildd/qemu-linaro-1.0.50-2012.03/exec.c:2641: register_subpage: Assertion `existing.mr->subpage || existing.mr == &io_mem_unassigned' failed.
  Aborted (core dumped)

  I am running Ubuntu 12.04 sserver for this. Any information about this issue would be appreciated, i'm stuck on this one.

  Kind regards,
  Tom

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1062201/+subscriptions

Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

@Tom,

you are running an experimental PPA containing unstable usb redirection code.
Your best bets are to (a) try with the quantal or upstream package, (b)
if you don't really need the experimental usb redirection, use the precise
packages, or (c) contact the owner of the PPA. Qemu 1.1 (which is in that
PPA) was rather buggy compared to 1.2 (which is upstream and in quantal),
so it would seem worthwhile for the PPA owner to upload a newer version.

Changed in qemu-kvm-spice (Ubuntu):
status: New → Invalid
Revision history for this message
Tom Wijmenga (tomwijmenga) wrote :

@ Serge,

Ah oke, I was not aware of the big version issues. But as Quantal is not officially released yet and only RC's are out, won't that cause issues?
All I am trying to do is get a working demo of the capabilities of the Spice protocol but many of the how-to's and PPA's are heavely out of date / support. Would you have any advice, as manyally building the protocol isn't working for me

Cheers for the quick responses.

Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

Quoting Tom Wijmenga (<email address hidden>):
> @ Serge,
>
> Ah oke, I was not aware of the big version issues. But as Quantal is not officially released yet and only RC's are out, won't that cause issues?

I'm not sure what you mean by issues - bugs reported against Q will
definately be addressed. The qemu versions in Q are basically set
in stone. If you need features added, then indeed that won't happen
in Q at this point.

> All I am trying to do is get a working demo of the capabilities of the Spice protocol but many of the how-to's and PPA's are heavely out of date / support. Would you have any advice, as manyally building the protocol isn't working for me

What do you mean by manually building the protocol?

In Q, I've been doing:

sudo apt-get install qemu-kvm-spice
qemu-img create spice.img 10G
kvm-spice -cpu host -enable-kvm -m 1024 -M pc-1.2 -drive file=spice.img,if=virtio,cache=none -vga qxl -spice port=5900,disable-ticketing

(except also using tap bridged to eth0)

It's worked great for ubuntu quantal and fedora 18 guests.

Revision history for this message
Tom Wijmenga (tomwijmenga) wrote :

Oeh boy, do I like feeling like an idiot :) Thanks a lot for that easy way to do it... the guides on forums and the spice-space.org page make it look way more difficult than it needs to be. Big love to you man!

Regards, Tom

-----Oorspronkelijk bericht-----
Van: <email address hidden> [mailto:<email address hidden>] Namens Serge Hallyn
Verzonden: maandag 8 oktober 2012 16:22
Aan: <email address hidden>
Onderwerp: Re: [Bug 1062201] Re: qemu core dumped by kvm-spice

Quoting Tom Wijmenga (<email address hidden>):
> @ Serge,
>
> Ah oke, I was not aware of the big version issues. But as Quantal is not officially released yet and only RC's are out, won't that cause issues?

I'm not sure what you mean by issues - bugs reported against Q will
definately be addressed. The qemu versions in Q are basically set
in stone. If you need features added, then indeed that won't happen
in Q at this point.

> All I am trying to do is get a working demo of the capabilities of the
Spice protocol but many of the how-to's and PPA's are heavely out of
date / support. Would you have any advice, as manyally building the
protocol isn't working for me

What do you mean by manually building the protocol?

In Q, I've been doing:

sudo apt-get install qemu-kvm-spice
qemu-img create spice.img 10G
kvm-spice -cpu host -enable-kvm -m 1024 -M pc-1.2 -drive file=spice.img,if=virtio,cache=none -vga qxl -spice port=5900,disable-ticketing

(except also using tap bridged to eth0)

It's worked great for ubuntu quantal and fedora 18 guests.

--
You received this bug notification because you are subscribed to the bug
report.
https://bugs.launchpad.net/bugs/1062201

Title:
  qemu core dumped by kvm-spice

Status in QEMU:
  New
Status in “qemu-kvm-spice” package in Ubuntu:
  Invalid

Bug description:
  Hi there,

  I am trying to use kvm-spice to start the qemu virtual machines. They
  start fine with the /usr/ bin/kvm command, but when I use the kvm-
  spice command the VM will not start and the core is dumped.

  Command I used:
  kvm-spice -cpu host -enable-kvm -name win-7 -m 3000 -drive file=/var/vmmachines/win-7.img -net nic,model=rtl8139 -net user -localtime -usb -vga qxl -global qxl-vga.vram_size=67108864 -spice port=5901,disable-ticketing -boot d

  Response:
  do_spice_init: starting 0.10.1
  spice_server_add_interface: SPICE_INTERFACE_MIGRATION
  spice_server_add_interface: SPICE_INTERFACE_KEYBOARD
  spice_server_add_interface: SPICE_INTERFACE_MOUSE
  spice_server_add_interface: SPICE_INTERFACE_QXL
  red_worker_main: begin
  display_channel_create: create display channel
  cursor_channel_create: create cursor channel
  kvm-spice: /build/buildd/qemu-linaro-1.0.50-2012.03/exec.c:2641: register_subpage: Assertion `existing.mr->subpage || existing.mr == &io_mem_unassigned' failed.
  Aborted (core dumped)

  I am running Ubuntu 12.04 sserver for this. Any information about this issue would be appreciated, i'm stuck on this one.

  Kind regards,
  Tom

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1062201/+subscriptions

Thomas Huth (th-huth)
Changed in qemu:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.