From mboxrd@z Thu Jan 1 00:00:00 1970 From: Fabio Fantoni Subject: Re: QXL problem: Xen 4.4.1 rc1 and xen 4.5 unstable Date: Mon, 14 Jul 2014 09:59:48 +0200 Message-ID: <53C38DF4.5000205@m2r.biz> References: <2014071110385714173022@octlink.com>, <53BFB740.2010500@m2r.biz>, <2014071410264327208736@octlink.com> <2014071413295244395449@octlink.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1789352730982212694==" Return-path: In-Reply-To: <2014071413295244395449@octlink.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: "kevin.zhang@octlink.com" , xen-devel List-Id: xen-devel@lists.xenproject.org This is a multi-part message in MIME format. --===============1789352730982212694== Content-Type: multipart/alternative; boundary="------------090005080408060001070304" This is a multi-part message in MIME format. --------------090005080408060001070304 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Il 14/07/2014 07:29, kevin.zhang@octlink.com ha scritto: > Hi Fabio Fantoni, > Today, I've done another test on xenbits xen 4.5 unstable. > This time, I directly compiled xen on my test server, and use > default libspice-server-dev and libspice-protocol-dev header files > for spice option. > > root@debian:~# apt-cache policy libspice-server-dev > libspice-protocol-dev > libspice-server-dev: > Installed: 0.11.0-1+deb7u1 > Candidate: 0.11.0-1+deb7u1 > Version table: > *** 0.11.0-1+deb7u1 0 > 500 http://cdn.debian.net/debian/ wheezy/main amd64 > Packages > 100 /var/lib/dpkg/status > libspice-protocol-dev: > Installed: 0.10.1-1 > Candidate: 0.10.1-1 > Version table: > *** 0.10.1-1 0 > 500 http://cdn.debian.net/debian/ wheezy/main amd64 > Packages > 100 /var/lib/dpkg/status > > I also download qemu-2.0 source code from qemu.org, and compiled > it by the way mentioned in http://wiki.xen.org/wiki/QEMU_Upstream. > Then I create win7 hvm with qemu-xen and > /usr/local/bin/qemu-system-i386 respectively. > The result shows that: > 1 . qemu-upstream used in xen 4.5 unstable still exited when > changing screen resolution, > 2. my self-compiled qemu2.0 behave normally. > I think maybe there's still some differences between the two qemu > repository. Use spice from backports or recompile the latest from Sid, wheezy packages are too old for newer qemu. xen already download and compile qemu upstream automatically if you not specify binary in repository. I also use use wheezy dom0 with same xen and qemu and same domU and spice guest tools installed automatically resize the windows resolution without problem (except rare cases when I connect remote-viewer before windows start). Below also reply to other mail. > I'm actively waiting for your advice and willing to do the > following debug. > vm config file is as follow: > > name='Win7' > builder="hvm" > memory=2048 > vcpus=2 > vif=['bridge=br0'] > disk=['/srv/vm_templates/1.qcow2,qcow2,hda,rw',',raw,hdb,ro,cdrom'] > boot='dc' > device_model_version="qemu-xen" > #device_model_override="/usr/lib/xen/bin/qemu-gdb" > #device_model_override="/usr/local/bin/qemu-system-i386" > viridian=1 > vnc=1 > vnclisten="0.0.0.0" > on_crash="destroy" > vga="qxl" > spice=1 > spicehost='0.0.0.0' > spiceport=6000 > spicedisable_ticketing=1 > spicevdagent=1 > spice_clipboard_sharing=1 > spiceusbredirection=4 > soundhw="hda" > localtime=1 > videoram=128 > videoram=128 is not needed with qxl as already the default. Try to disable vnc when you use spice, even if I used with also vnc many times without problem time ago. > ------------------------------------------------------------------------ > Best Regards > > *From:* kevin.zhang@octlink.com > *Date:* 2014-07-14 10:26 > *To:* Fabio Fantoni ; xen-devel > > *Subject:* Re: [Xen-devel] QXL problem: Xen 4.4.1 rc1 and xen 4.5 unstable > Hi Fabio Fantoni, > Thank you for your help. > If I use your method to run qemu-gdb when using xl create, xl > will complain startup timeout. I know, I already posted the solution but I try to explain better. # after xl create with (qemu gdb), do it fast after xl create when arrive on qemu process launch (before timeout or xl create will fails) target remote localhost:1234 # prepare this command in other ssh to the xen dom0 and enter on xl create when arrive on qemu launch c # press immediatly bt full # when qemu stops Sorry for my bad english. > Perhaps I did not describe my problem clearly enough, I can > successfully create windows HVM, my problem happened when I change > windows screen resolution. > The qemu process suddenly exited while xl list can still list the > domU information. > I am using debian wheezy 7.5 amd 64, I am using fantu's xen 4.5 > unstable and the qemu-xen-remote in his code repository, > > root@debian:~# /usr/lib/xen/bin/qemu-system-i386 -version > QEMU emulator version 2.0.0, Copyright (c) 2003-2008 Fabrice Bellard > > And I compiled Xen from fantu's xen repository in compilation server, > then use install.sh in dist dir to install xen packages in my test server. > My compilation server has spice 0.12.4 compiled and installed. > My test server has debian wheezy backport qemu installed with > spice-server: > > dpkg -l |grep spice > ii libspice-server1:amd64 0.12.4-0nocelt2~bpo70+1 > > Then how can I obtain useful debug information after qemu exit with > vm running? > ------------------------------------------------------------------------ > Best Regards > > *From:* Fabio Fantoni > *Date:* 2014-07-11 18:06 > *To:* kevin.zhang@octlink.com ; > xen-devel > *Subject:* Re: [Xen-devel] QXL problem: Xen 4.4.1 rc1 and xen 4.5 unstable > Il 11/07/2014 04:38, kevin.zhang@octlink.com ha scritto: >> Hi all, >> Firstly please forgive me if I put this problem in the wrong mail list. >> However, it seems that xen-users mail list cannot resolve this QXL >> problems. Therefore, I have to post QXL problem in devel mail list. >> My problem is as follow: >> I'm testing QXL for windows HVM, spice works well with stdvga. >> However, when I switch to QXL, qemu exit abnormally: >> I specify vga="qxl" and videoram=128, using qemu-xen. The windows 7 >> boots and automatially switch resolution for me in virt-viewer. >> While display and sound transfering very well, if I change display >> resolution, the virt-viewer will be suddenly closed and >> I check the physical server, the qemu process disappear simultaneously. >> Then I switch to wheezy backport qemu 2.0 as device model, the qemu >> process will exit as soon as the welcome page appears and at the >> beginning of resolution change. >> I tested and found the same bug on both xenbits xen 4.4.1 rc1 and >> Fantu's Xen 4.5 unstable, this problem exists in both branches. >> Is it a known issue or is there any solution for this bug? >> Thank you very much! > > Thanks for testing spice and qxl and report issue. > I have spice + qxl working as kvm on xen unstable except this problem: > http://lists.xen.org/archives/html/xen-devel/2014-07/msg01021.html > > Please post details on your dom0 installation and domU (for example xl > cfg, > spice guest tools version ecc...) > About qemu crash try to take a full backtrace with gdb and post it here. > > Small help with gdb of qemu launched by xl: > > Add the line below in domU's xl cfg: > device_model_override="/usr/lib/xen/bin/qemu-gdb" > > vi /usr/lib/xen/bin/qemu-gdb # create the file, change the qemu path if > needed > #!/bin/sh > exec gdbserver 0.0.0.0:1234 /usr/lib/xen/bin/qemu-system-i386 "$@" > > # after xl create, do it fast (before timeout or xl create will fails) > target remote localhost:1234 > c > bt full # when qemu stops > > You should install also all needed dbg packages before, spice qemu ecc or > without package should be compiled with debug enabled (for xen and qemu > default in unstable). > > The latest qemu crash with spice I saw was in 2.0-rc solved before 2.0.0 > final, your qemu is at least 2.0.0 final? > http://git.qemu.org/?p=qemu.git;a=commit;h=dc491cfc14074064ed54a872b62cce6ca1330644 > >> Kevin >> Best Regards, >> >> --------------090005080408060001070304 Content-Type: text/html; charset=UTF-8 Content-Length: 36248 Content-Transfer-Encoding: quoted-printable
Il 14/07/2014 07:29, kevin.zhang@octlink.com ha scritto:
Hi Fabio Fantoni,
=C2=A0=C2=A0=C2=A0
=C2=A0=C2=A0=C2=A0=C2=A0 Today, I've done another test on xenbits xen 4.5 unstable.
=C2=A0=C2=A0=C2=A0=C2=A0 This time, I directly compiled xen on my test server, and use default libspice-server-dev=C2=A0 and libspice-protocol-dev header files for spice option.
=C2=A0=C2=A0=C2=A0
root@debian:~# apt-cache policy libspice-server-dev libspice-protocol-dev
libspice-server-dev:
=C2=A0 Installed: 0.11.0-1+deb7u1
=C2=A0 Candidate: 0.11.0-1+deb7u1
=C2=A0 Version table:
*** 0.11.0-1+deb7u1 0
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 500 http://cdn.debian.net/debian/ wheezy/main amd64 Packages
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 100 /var/lib/dpkg/status
libspice-protocol-dev:
=C2=A0 Installed: 0.10.1-1
=C2=A0 Candidate: 0.10.1-1
=C2=A0 Version table:
*** 0.10.1-1 0
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 500 http://cdn.debian.net/debian/ wheezy/main amd64 Packages
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 100 /var/lib/dpkg/status
=C2=A0
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0I also download qemu-2.0 source code from qemu.org, and compiled it by the way mentioned in http://wiki.xen.org/wiki/QEMU_Upstream.
=C2=A0=C2=A0=C2=A0=C2=A0 Then I create win7 hvm with qemu-xen and /usr/local/bin/qemu-system-i386 respectively.
=C2=A0=C2=A0=C2=A0=C2=A0 The result shows that:
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A01 . qemu-upstream used in xen 4.5 unstable still exited when changing screen resolution,
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 2.=C2=A0 my self-compiled qemu2.0 behave normally.
=C2=A0=C2=A0=C2=A0=C2=A0 I think maybe there's still some differences between the two qemu repository.

Use spice from backports or recompile the latest from Sid, wheezy packages are too old for newer qemu.
xen already download and compile qemu upstream automatically if you not specify binary in repository.
I also use use wheezy dom0 with same xen and qemu and same domU and spice guest tools installed automatically resize the windows resolution without problem (except rare cases when I connect remote-viewer before windows start).

Below also reply to other mail.

=C2=A0
=C2=A0=C2=A0=C2=A0=C2=A0 I'm actively waiting for your advice and willing to do the following debug.
=C2=A0=C2=A0=C2=A0=C2=A0 vm config file is as follow:
name=3D'Win7'
builder=3D"hvm"
memory=3D2048
vcpus=3D2
vif=3D['bridge=3Dbr0']
disk=3D['/srv/vm_templates/1.qcow2,qcow2,hda,rw',',raw,hdb,ro,cdrom']
boot=3D'dc'
device_model_version=3D"qemu-xen"
#device_model_override=3D"/usr/lib/xen/bin/qemu-gdb"
#device_model_override=3D"/usr/local/bin/qemu-system-i386"
viridian=3D1
vnc=3D1
vnclisten=3D"0.0.0.0"
on_crash=3D"destroy"
vga=3D"qxl"
spice=3D1
spicehost=3D'0.0.0.0'
spiceport=3D6000
spicedisable_ticketing=3D1
spicevdagent=3D1
spice_clipboard_sharing=3D1
spiceusbredirection=3D4
soundhw=3D"hda"
localtime=3D1
videoram=3D128

videoram=3D128 is not needed with qxl as already the default.
Try to disable vnc when you use spice, even if I used with also vnc many times without problem time ago.

=C2=A0
=C2=A0 =C2=A0
=C2=A0

Best Regards

Date:=C2=A02014-07-14=C2=A010:26
Subject:=C2=A0Re: [Xen-devel] QXL problem: Xen 4.4.1 rc1 and xen 4.5 unstable
Hi Fabio Fantoni,
=C2=A0=C2=A0=C2=A0 Thank you for your help.
=C2=A0=C2=A0=C2=A0=C2=A0 If I use your method to run qemu-gdb when using xl create, xl will complain startup timeout.

I know, I already posted the solution but I try to explain better.

# after xl create with (qemu gdb), do it fast after xl create when arrive on qemu process launch (before timeout or xl create will fails)
target remote localhost:1234 # prepare this command in other ssh to the xen dom0 and enter on xl create when arrive on qemu launch
c # press immediatly
bt full # when qemu stops


Sorry for my bad english.

=C2=A0=C2=A0=C2=A0 Perhaps I did not describe my problem clearly enough, I can successfully create windows HVM, my problem happened when I change windows screen resolution.
The qemu process suddenly =C2=A0exited while xl list can still list the domU information.
=C2=A0
=C2=A0=C2=A0=C2=A0 I am using debian wheezy 7.5 amd 64, I am using fantu's xen 4.5 unstable and the qemu-xen-remote in his code repository,
root@debian:~# /usr/lib/xen/bin/qemu-system-i386 -version
QEMU emulator version 2.0.0, Copyright (c) 2003-2008 Fabrice Bellard=C2=A0=C2=A0
=C2=A0And I compiled Xen from fantu's xen repository in compilation server, then use install.sh in dist dir to install xen packages in my test server.
=C2=A0My compilation server has spice 0.12.4 compiled and installed.
=C2=A0My test server has debian wheezy backport qemu installed with spice-server:
dpkg -l |grep spice
ii=C2=A0 libspice-server1:amd64=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 0.12.4-0nocelt2~bpo70+1=C2=A0=C2=A0=C2=A0
=C2=A0Then how can I obtain useful debug information after qemu exit with vm running=3F
=C2=A0

Best Regards

From:=C2=A0Fabio Fantoni
Date:=C2=A02014-07-11=C2=A018:06
Subject:=C2=A0Re: [Xen-devel] QXL problem: Xen 4.4.1 rc1 and xen 4.5 unstable
Il 11/07/2014 04:38, kevin.zhang@octlink.com ha scritto:
Hi all,
=C2=A0
Firstly please forgive me if I put this problem in the wrong mail list.
However, it seems that xen-users mail list cannot resolve this QXL problems. Therefore, I have to post QXL problem in devel mail list.
My problem is as follow:
=C2=A0
I'm testing QXL for windows HVM, spice works well with stdvga.
However, when I switch to QXL, qemu exit abnormally:
I specify vga=3D"qxl" and videoram=3D128, using qemu-xen. The windows 7 boots and automatially switch resolution for me in virt-viewer.
While display and sound transfering very well, if I change display resolution, the virt-viewer will be suddenly closed and
I check the physical server, the qemu process disappear simultaneously.
Then I switch to wheezy backport qemu 2.0 as device model, the qemu process will exit as soon as the welcome page appears and at the beginning of resolution change.
I tested and found the same bug on both xenbits xen 4.4.1 rc1 and Fantu's Xen 4.5 unstable, this problem exists in both branches.
Is it a known issue or is there any solution for this bug=3F
Thank you very much!

Thanks for testing spice and qxl and report issue.
I have spice + qxl working as kvm on xen unstable except this problem:
http://lists.xen.org/archives/html/xen-devel/2014-07/msg01021.html

Please post details on your dom0 installation and domU (for example xl cfg,
spice guest tools version ecc...)
About qemu crash try to take a full backtrace with gdb and post it here.

Small help with gdb of qemu launched by xl:

Add the line below in domU's xl cfg:
device_model_override=3D"/usr/lib/xen/bin/qemu-gdb"

vi /usr/lib/xen/bin/qemu-gdb # create the file, change the qemu path if
needed
#!/bin/sh
exec gdbserver 0.0.0.0:1234 /usr/lib/xen/bin/qemu-system-i386 "$@"

# after xl create, do it fast (before timeout or xl create will fails)
target remote localhost:1234
c
bt full # when qemu stops

You should install also all needed dbg packages before, spice qemu ecc or
without package should be compiled with debug enabled (for xen and qemu
default in unstable).

The latest qemu crash with spice I saw was in 2.0-rc solved before 2.0.0
final, your qemu is at least 2.0.0 final=3F
http://git.qemu.org/=3Fp=3Dqemu.git;a=3Dcommit;h=3Ddc491cfc14074064ed54a872b62cce6ca1330644


=C2=A0
=C2=A0
Kevin
Best Regards,

=C2=A0



--------------090005080408060001070304-- --===============1789352730982212694== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel --===============1789352730982212694==--