From: jim burns Subject: Re: [Xen-devel] Updating Xen 4.1.x xmexamples files (vfb line required for HVM guests) Date: Tue, 26 Jul 2011 18:20:43 -0400 Message-ID: <201107261820.45087.jim_burn@bellsouth.net> References: <201107231426.56811.jim_burn@bellsouth.net> <1311694781.24408.57.camel@cthulhu.hellion.org.uk> <20110726170027.GU32373@reaktio.net> (sfid-20110726_130936_530160_514F8628) Mime-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <20110726170027.GU32373@reaktio.net> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-users-bounces@lists.xensource.com Errors-To: xen-users-bounces@lists.xensource.com To: Pasi =?iso-8859-1?q?K=E4rkk=E4inen?= Cc: "xen-devel@lists.xensource.com" , Ian Campbell , "xen-users@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org 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 to > > > > 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 configures a > > Xen PV framebuffer device whereas the individual vnc*/sdl*/etc variables > > configure the backend for the emulated VGA device. IOW they are pretty > > much orthogonal and (for an HVM guest) both should work (dependent on > > the required in-guest support being available). Also I'm not sure if > > they can be used simultaneously, I expect they can. > Jim: Can you please post full example of working HVM cfgfile and > not-working HVM cfgfile. (including any errors you get with the latter). > > > > Which brings up my pet peev about documentation. Even something as > > > > simple as updating the xmexample files in the /etc/xen tree would > > > > have avoided this problem for so many people. Since you lurk around > > > > 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. Sure, thanx. The following worked from xen 3.2.x to 4.0.1. w/o the vfb=3D l= ine.=20 Starting with xen 4.1.x, w/o the vfb=3D line, the vnc window immediately ex= its=20 without even displaying the bochs bios, and qemu-dm exits also. Not till=20 adding the vfb=3D line does qemu-dm come up properly, as in previous xen=20 versions. The qemu-dm-winxp.log file is not very informative, as it basical= ly=20 doesn't change w/ or w/o the vfb=3D line. (Except a full guest boot adds li= nes=20 that start with 'Unknown PV product 2' (gplpv) and end with 'Time offset'.) The 'xen be: console-0:' errors only occur when you use 'xm create', not 'x= l=20 create'. You'll notice I've gone back to using a xenbr0 bridge, setup by th= e=20 fedora (15) ifcfg- files. Xl won't put tapn.0 on the eth0 bridge, so the gu= est=20 comes up w/o a functioning network, even tho' the vif=3D line previously=20 explicitly set bridge=3Deth0. Now it specifies bridge=3Dxenbr0. The error w= ith 'xl=20 create' and no vfb=3D line is even less informative. With 'xm create', xend= =2Elog=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 infinit= e=20 loop, spawning child xls and qemu-dms that immediately exit. No where in the xmexample.hvm and similar files is vfb=3D mentioned. Lots o= f=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 the vf= b=3D=20 line. winxp config file: (python code commented out to keep xl happy) #import os, re #arch =3D os.uname()[4] #if re.search('64', arch): # arch_libdir =3D 'lib64' #else: # arch_libdir =3D 'lib' 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 is 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-4367- 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 eth0' ] vif =3D [ 'mac=3D00:16:3e:23:1d:36, type=3Dioemu, script=3Dvif-bridge, brid= ge =3D=20 xenbr0' ] # sdl=3D0 vfb =3D [ 'vnc=3D1, vnclisten=3D0.0.0.0, vncunused=3D0, vncdisplay=3D3, vnc= passwd=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 in xe= n=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"" qemu-dm-winxp.log: 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-4367- 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 rw=20 state. xs_read(/local/domain/0/device-model/1/xen_extended_power_mgmt): read error 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 device,=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 rw=20 state. platform_fixed_ioport: changed ro/rw state of ROM memory area. now is ro=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