WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

Re: [Xen-users] how to start X in the guest domain

To: "Mark Williamson" <mark.williamson@xxxxxxxxxxxx>
Subject: Re: [Xen-users] how to start X in the guest domain
From: "Henning Sprang" <henning_sprang@xxxxxx>
Date: Wed, 31 Jan 2007 12:33:06 -0600
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Wed, 31 Jan 2007 10:33:08 -0800
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=qA55nvFYaH7RUWI2Mx8GGQb6tlmTA0Oiwe3d9CwxNhEtvsY1qNpP23gG2aVMmlRExzOw/IgkK9bhdNujErOQi37Gy1AYC8MvWWxCCrM0unhQiywj0JnnYQrdHwA+h+NcP/zMqLfdSAkW6ErrNY7wSQfarOuQvq6tl1E8ghrq5k4=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <200701311810.24706.mark.williamson@xxxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <417df5ae0612152054q152afc80tf3c7d9b95e91a79f@xxxxxxxxxxxxxx> <200701041428.05508.mark.williamson@xxxxxxxxxxxx> <5bb00b3f0701310950m7ec0954bv76cf8937b426cc05@xxxxxxxxxxxxxx> <200701311810.24706.mark.williamson@xxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
On 1/31/07, Mark Williamson <mark.williamson@xxxxxxxxxxxx> wrote:
Weird...  Could you post the /etc/inittab, domain config file and anything
else that might be relevant so I can look at them all together?

Guest and Host OS are debian etch. Xen is Sources from Xensource in
default config, no kernel options changed yet.

inittab of the guest:

--- inittab start ---
:~# cat /etc/inittab
# /etc/inittab: init(8) configuration.
# $Id: inittab,v 1.91 2002/01/25 13:35:21 miquels Exp $

# The default runlevel.
id:2:initdefault:

# Boot-time system configuration/initialization script.
# This is run first except when booting in emergency (-b) mode.
si::sysinit:/etc/init.d/rcS

# What to do in single-user mode.
~~:S:wait:/sbin/sulogin

# /etc/init.d executes the S and K scripts upon change
# of runlevel.
#
# Runlevel 0 is halt.
# Runlevel 1 is single-user.
# Runlevels 2-5 are multi-user.
# Runlevel 6 is reboot.

l0:0:wait:/etc/init.d/rc 0
l1:1:wait:/etc/init.d/rc 1
l2:2:wait:/etc/init.d/rc 2
l3:3:wait:/etc/init.d/rc 3
l4:4:wait:/etc/init.d/rc 4
l5:5:wait:/etc/init.d/rc 5
l6:6:wait:/etc/init.d/rc 6
# Normally not reached, but fallthrough in case of emergency.
z6:6:respawn:/sbin/sulogin

# What to do when CTRL-ALT-DEL is pressed.
ca:12345:ctrlaltdel:/sbin/shutdown -t1 -a -r now

# Action on special keypress (ALT-UpArrow).
#kb::kbrequest:/bin/echo "Keyboard Request--edit /etc/inittab to let this work."

# What to do when the power fails/returns.
pf::powerwait:/etc/init.d/powerfail start
pn::powerfailnow:/etc/init.d/powerfail now
po::powerokwait:/etc/init.d/powerfail stop

# /sbin/getty invocations for the runlevels.
#
# The "id" field MUST be the same as the last
# characters of the device (after "tty").
#
# Format:
#  <id>:<runlevels>:<action>:<process>
#
# Note that on most Debian systems tty7 is used by the X Window System,
# so if you want to add more getty's go ahead but skip tty7 if you run X.
#
1:2345:respawn:/sbin/getty 38400 tty1
#2:23:respawn:/sbin/getty 38400 tty2
#3:23:respawn:/sbin/getty 38400 tty3
#4:23:respawn:/sbin/getty 38400 tty4
#5:23:respawn:/sbin/getty 38400 tty5
#6:23:respawn:/sbin/getty 38400 tty6

S0:2345:respawn:/sbin/mingetty ttyS0

# Example how to put a getty on a serial line (for a terminal)
#
#T0:23:respawn:/sbin/getty -L ttyS0 9600 vt100
#T1:23:respawn:/sbin/getty -L ttyS1 9600 vt100

# Example how to put a getty on a modem line.
#
#T3:23:respawn:/sbin/mgetty -x0 -s 57600 ttyS3

--- inittab end ---

domU config:

--- domu start ---
kernel='/boot/vmlinuz-2.6-xen'
ramdisk='/boot/initrd.img-2.6.16.33-xen'
#ramdisk='/boot/initrd-2.6-xen.img'
#kernel='/boot/vmlinuz-2.6-xenU'
memory = 64
name = "test-vm"
vif = [ '' ]
disk = [ 'file:/var/xen/domains/test-vm/disk.img,xvda1,w',
'file:/var/xen/domains/test-vm/swap.img,xvda2,w' ]
#disk = [ 'file:/var/xen/domains/test-vm/disk.img,sda1,w',
'file:/var/xen/domains/test-vm/swap.img,sda2,w' ]
root = "/dev/xvda1"
#root = "/dev/sda1"
vfb=['type=sdl']
#usb=1
#usbdevice='mouse'
#
xencons='ttyS0'
console='ttyS0'
video='xenfb'

--- domu end ---



Also, did you check the vfb driver was compiled into the guest?  It's not
built by default.

Hmm, really? On Xen 3.0.4 from XenSource it is enabled as a module.
Does it have to be compiled in instead of a module?
Will try this... takes a while...

BTW: when trying to load the module, it says

FATAL: Error inserting vfb
(/lib/modules/2.6.16.33-xen/kernel/drivers/video/vfb.ko): No such
device or address

I'll be back after Kernel build with framebuffer + fb console driver
as non-module :)

Henning

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users