FreeBSD-current Xen image

2009-05-23 Thread Adrian Chadd
I've put up a recent FreeBSD-current Xen DomU image at
http://people.freebsd.org/~adrian/xen/ .

* the image is a gzip'ed 512meg filesystem installworld/distribution
install, around 208 mb.
* it includes the grub bootloader info (/boot/grub/menu.lst); a basic
/etc/fstab w/ root on "xvd0" and swap on "xvd1", and the xen console
(xc0) in /etc/ttys.
* The config file in that directory (freebsd-current.sxp) works for
me. It assumes one network interface and two block devices on LVM -
one for root, one for swap.

You should be able to just dd the image into an LVM slice or modify
the configuration to use a file (tap:aio IIRC), then "xm create
/path/to/file" . "xm console" will give you a working console.

Bonus points to you if you then figure out the magic required to boot
it to single user mode to run "growfs", then "tunefs -n enable" to
enable softupdates, with the requisite fscks and reboots to make sure
things stay consistent. I'll document that later.

I'm working on DomU releng_7 and releng_6 images at the moment but I'm
stuck with a buildworld issue and a kernel panic, respectively.

Have fun;


Adrian
___
freebsd-xen@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-xen
To unsubscribe, send any mail to "freebsd-xen-unsubscr...@freebsd.org"


Default Xen PVM console?

2009-05-23 Thread Adrian Chadd
G'day,

I'd like to twiddle the Xen console stuff a little bit to make it
easier to bootstrap a PVM.

There's a couple of options I can think of:

* Patch /etc/ttys to have a default "xc0" Xen console, but disabled
(which makes it trivial for users / scripts to disable the syscons
console and enable the xc console);
* Modify the xenconsole driver to attach to ttyv0 (via a kernel
environment variable) so /etc/ttys doesn't need modifying (but this
may confuse tools that assumes /dev/ttyvX == syscons.)

Opinions? I'd like to sneak in one of these before the release process
begins for 8.0.

Thanks,


Adrian
___
freebsd-xen@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-xen
To unsubscribe, send any mail to "freebsd-xen-unsubscr...@freebsd.org"


Re: Default Xen PVM console?

2009-05-23 Thread Scott Long

Adrian Chadd wrote:

G'day,

I'd like to twiddle the Xen console stuff a little bit to make it
easier to bootstrap a PVM.

There's a couple of options I can think of:

* Patch /etc/ttys to have a default "xc0" Xen console, but disabled
(which makes it trivial for users / scripts to disable the syscons
console and enable the xc console);
* Modify the xenconsole driver to attach to ttyv0 (via a kernel
environment variable) so /etc/ttys doesn't need modifying (but this
may confuse tools that assumes /dev/ttyvX == syscons.)

Opinions? I'd like to sneak in one of these before the release process
begins for 8.0.

Thanks,


Treat xen as a new platform and have a src/etc/etc.xen directory that 
holds the xen-specific ttys files, along with similar things that it'll

likely need.

Scott
___
freebsd-xen@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-xen
To unsubscribe, send any mail to "freebsd-xen-unsubscr...@freebsd.org"