From: Pasi =?iso-8859-1?Q?K=E4rkk=E4inen?= Subject: Re: Updating Xen 4.1.x xmexamples files (vfb line required for HVM guests) Date: Tue, 2 Aug 2011 00:12:18 +0300 Message-ID: <20110801211218.GW32373@reaktio.net> References: <201107231426.56811.jim_burn@bellsouth.net> <1311694781.24408.57.camel@cthulhu.hellion.org.uk> <20110726170027.GU32373@reaktio.net> <201107261820.45087.jim_burn@bellsouth.net> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Content-Disposition: inline In-Reply-To: <201107261820.45087.jim_burn@bellsouth.net> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: jim burns Cc: "xen-devel@lists.xensource.com" , Ian Campbell , "xen-users@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org On Tue, Jul 26, 2011 at 06:20:43PM -0400, jim burns wrote: > On Tue July 26 2011 1:00:27 PM Pasi K=E4rkk=E4inen wrote: > > On Tue, Jul 26, 2011 at 04:39:41PM +0100, Ian Campbell wrote: > > > On Mon, 2011-07-25 at 17:05 -0400, Pasi K=E4rkk=E4inen wrote: > > > > On Mon, Jul 25, 2011 at 04:39:16PM -0400, jim burns wrote: > > > > > On Mon July 25 2011 3:57:23 PM Pasi wrote: > > > > >=20 > > > > > Btw, maybe you were following the thread '[Xen-devel] Failure t= o > > > > > create HVM DomU at Xen 4.1 ( kernel 3.0.0-5-generic) Ubuntu 11.= 10 > > > > > (alpha 2)'. In my fork of that thread, I summarized many other > > > > > threads over the last month of people having problems starting = an > > > > > hvm domu under xen 4.1.x. Konrad finally provided the solution = - > > > > > 4.1.x requires the pv style vfb=3D line, not the indidvidual > > > > > variables. > > >=20 > > > Perhaps I misunderstand this stuff but AIUI the vfb=3D line configu= res a > > > Xen PV framebuffer device whereas the individual vnc*/sdl*/etc vari= ables > > > configure the backend for the emulated VGA device. IOW they are pre= tty > > > much orthogonal and (for an HVM guest) both should work (dependent = on > > > the required in-guest support being available). Also I'm not sure i= f > > > they can be used simultaneously, I expect they can. >=20 > > Jim: Can you please post full example of working HVM cfgfile and > > not-working HVM cfgfile. (including any errors you get with the latte= r). >=20 > > > > > Which brings up my pet peev about documentation. Even something= as > > > > > simple as updating the xmexample files in the /etc/xen tree wou= ld > > > > > have avoided this problem for so many people. Since you lurk ar= ound > > > > > in Xen Devel, maybe you can make people aware of the problem? > > >=20 > > > If you find areas where xm* are not accurate than patches would be = very > > > much appreciated. >=20 > Sure, thanx. The following worked from xen 3.2.x to 4.0.1. w/o the vfb=3D= line.=20 > Starting with xen 4.1.x, w/o the vfb=3D line, the vnc window immediatel= y exits=20 > without even displaying the bochs bios, and qemu-dm exits also. Not til= l=20 > adding the vfb=3D line does qemu-dm come up properly, as in previous xe= n=20 > versions. The qemu-dm-winxp.log file is not very informative, as it bas= ically=20 > doesn't change w/ or w/o the vfb=3D line. (Except a full guest boot add= s lines=20 > that start with 'Unknown PV product 2' (gplpv) and end with 'Time offse= t'.) >=20 Interesting. Have others seen this problem?=20 I don't think vfb-line is supposed to be needed with HVM guests.. > The 'xen be: console-0:' errors only occur when you use 'xm create', no= t 'xl=20 > create'. You'll notice I've gone back to using a xenbr0 bridge, setup b= y the=20 > fedora (15) ifcfg- files. Xl won't put tapn.0 on the eth0 bridge, so th= e guest=20 > comes up w/o a functioning network, even tho' the vif=3D line previousl= y=20 > explicitly set bridge=3Deth0. Now it specifies bridge=3Dxenbr0. The err= or with 'xl=20 > create' and no vfb=3D line is even less informative. With 'xm create', = xend.log=20 > properly reports that xen refused to restart the guest to prevent loops= -=20 > guest is restarting too fast. With 'xl create' xl just goes into an inf= inite=20 > loop, spawning child xls and qemu-dms that immediately exit. >=20 > No where in the xmexample.hvm and similar files is vfb=3D mentioned. Lo= ts of=20 > people over the last month have been having trouble starting their hvm=20 > domains, until Konrad mentioned in the thread mentioned above to add th= e vfb=3D=20 > line. >=20 Yep. -- Pasi > winxp config file: (python code commented out to keep xl happy) >=20 > #import os, re > #arch =3D os.uname()[4] > #if re.search('64', arch): > # arch_libdir =3D 'lib64' > #else: > # arch_libdir =3D 'lib' >=20 > name =3D "winxp" > builder=3D'hvm' > memory =3D "512" > uuid =3D "6c7de04e-df10-caa8-bb2a-8368246225c1" > #ostype =3D "hvm" (no longer needed?) > on_reboot =3D "restart" > on_crash =3D "restart" > on_poweroff =3D "destroy" > vcpus =3D "2" > viridian=3D1 > # > #kernel =3D "/usr/lib/xen/boot/hvmloader" > kernel =3D "hvmloader" > acpi=3D1 > apic=3D1 > boot=3D "cda" > # New stuff > #device_model =3D '/usr/' + arch_libdir + '/xen/bin/qemu-dm' > #device_model =3D '/usr/lib/xen/bin/qemu-dm' > device_model =3D 'qemu-dm' > # > keymap=3D'en-us' > localtime=3D1 > #rtc_timeoffset=3D-14400 > #rtc_timeoffset=3D-18000 > pae=3D1 > serial=3D'pty' > #serial =3D "/dev/ttyS0" > # enable sound card support, [sb16|es1370|all|..,..], default none > soundhw=3D'es1370' > # enable stdvga, default =3D 0 (use cirrus logic device model) > #stdvga=3D1 > videoram=3D4 # also necessary to keep xl happy, even tho the default i= s 8 > stdvga=3D0 > #usbdevice=3D"mouse" > usbdevice=3D"tablet" > xen_extended_power_mgmt =3D 0 > # > #disk=3D[ 'tap2:aio:/var/lib/xen/images/winxp,hda,w',=20 > 'phy:/dev/cdrom,hdc:cdrom,r' ] > disk=3D[ 'phy:/dev/disk/by-path/ip-192.168.1.101:3260-iscsi- > iqn.2001-04.com.Dell4550-iqn.2009-09.net.bellsouth.sda:041b7d3f-b008-43= 67- > b1f2-b4799d15e4cd-lun-1,hda,w', 'phy:/dev/cdrom,hdc:cdrom,r' ] > # > #vif =3D [ 'mac=3D00:16:3e:23:1d:36, script=3Dvif-bridge, bridge =3D et= h0' ] > vif =3D [ 'mac=3D00:16:3e:23:1d:36, type=3Dioemu, script=3Dvif-bridge, = bridge =3D=20 > xenbr0' ] > # > sdl=3D0 > vfb =3D [ 'vnc=3D1, vnclisten=3D0.0.0.0, vncunused=3D0, vncdisplay=3D3,= vncpasswd=3D '] > vnc=3D1 > vnclisten=3D"0.0.0.0" > #vnclisten=3D"192.168.1.0" ( is there any way to do this? use to work i= n xen=20 > 3.2) > # set VNC display number, default =3D domid > vncdisplay=3D3 > # try to find an unused port for the VNC server, default =3D 1 > vncunused=3D0 > vncviewer=3D1 > vncconsole=3D1 > monitor=3D1 > vncpasswd=3D"" >=20 > qemu-dm-winxp.log: >=20 > domid: 1 > config qemu network with xen bridge for tap1.0 xenbr0 > Using file /dev/disk/by-path/ip-192.168.1.101:3260-iscsi- > iqn.2001-04.com.Dell4550-iqn.2009-09.net.bellsouth.sda:041b7d3f-b008-43= 67- > b1f2-b4799d15e4cd-lun-1 in read-write mode > Using file /dev/cdrom in read-only mode > Watching /local/domain/0/device-model/1/logdirty/cmd > Watching /local/domain/0/device-model/1/command > Watching /local/domain/1/cpu > char device redirected to /dev/pts/5 > qemu_map_cache_init nr_buckets =3D 10000 size 4194304 > shared page at pfn feffd > buffered io page at pfn feffb > Guest uuid =3D 6c7de04e-df10-caa8-bb2a-8368246225c1 > Time offset set 72000 > char device redirected to /dev/pts/6 > xen be: console-0: xen be: console-0: initialise() failed > initialise() failed > populating video RAM at ff000000 > mapping video RAM from ff000000 > Register xen platform. > Done register platform. > platform_fixed_ioport: changed ro/rw state of ROM memory area. now is r= w=20 > state. > xs_read(/local/domain/0/device-model/1/xen_extended_power_mgmt): read e= rror > xs_read(): vncpasswd get error. /vm/6c7de04e-df10-caa8- > bb2a-8368246225c1/vncpasswd. > medium change watch on `hdc' (index: 1): /dev/cdrom > I/O request not ready: 0, ptr: 0, port: 0, data: 0, count: 0, size: 0 > Log-dirty: no command yet. > I/O request not ready: 0, ptr: 0, port: 0, data: 0, count: 0, size: 0 > xen be: console-0: xen be: console-0: initialise() failed > initialise() failed > vcpu-set: watch node error. > xen be: console-0: xen be: console-0: initialise() failed > initialise() failed > xs_read(/local/domain/1/log-throttling): read error > qemu: ignoring not-understood drive `/local/domain/1/log-throttling' > medium change watch on `/local/domain/1/log-throttling' - unknown devic= e,=20 > ignored > xen be: console-0: xen be: console-0: initialise() failed > initialise() failed > cirrus vga map change while on lfb mode > mapping vram to f0000000 - f0400000 > platform_fixed_ioport: changed ro/rw state of ROM memory area. now is r= w=20 > state. > platform_fixed_ioport: changed ro/rw state of ROM memory area. now is r= o=20 > state. > Unknown PV product 2 loaded in guest > PV driver build 1 > region type 1 at [c100,c200). > region type 0 at [f3001000,f3001100). > squash iomem [f3001000, f3001100). > Time offset set -14400, added offset -86400 > Time offset set -14398, added offset 2 > Time offset set 2, added offset 14400 > Time offset set 1, added offset -1