Documetation - The Phantom Menace
Guys,
Documentation is one of the main hurdles we'd like to get out of the way before releasing 2.0. Stephan and I are at this very minute grokking the docs to start bringing things up to date.
We'd still like all the help we can get:
* If you've written any howtos, we'd like to incorporate them into the main user manual.
* If there's anything you'd really like to see in the docs then please tell us (if you can contribute the start of some text, that'd be even better!).
* If you find any mistakes, please report them.
* If you found there were any special steps involved in getting Xen working on your distro, beyond what the docs describe, please let us know. We'd like to cover any distro-specific quirks...
We'd like the docs to be in a release-worthy state within about a week, so please don't hold back ;-) Any help with this stuff will speed up the 2.0 release.
Obviously, please only contribute material you don't mind going into the user manual, that you have the right to donate, etc... I doubt that it's much of an issue for most of you.
TIA,
Mark
-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
Quoted 3 lines · On Tue, 12 Oct 2004 14:55:41 +0000 "Mark A. Williamson"…
* If you found there were any special steps involved in getting Xen working on your distro, beyond what the docs describe, please let us know. We'd like to cover any distro-specific quirks...
With Gentoo pre-udev (which is still most installations), you need to enable devfs, procfs, and devfs automount@boot in the xen0 config.
Quoted 2 lines
* If there's anything you'd really like to see in the docs then please tell us (if you can contribute the start of some text, that'd be even better!).
I think general suggestions about how to merge old kernel configs would be helpful (I've had to do this many times, it's not tough but I've always imagined most people need to do this).
Quoted 2 lines
* If you've written any howtos, we'd like to incorporate them into the main user manual.
Here is a rh7 install log...
http://serverajar.com/rh7_install.txt
It's not a big howto, but maybe you could include the 8 or 9 steps necessary to get ttylinux running, it might be helpful for 'newbies' like myself who just want to get something working quick to get a feel for things?
I reposted the file here, I can leave it indefinitely.
http://serverajar.com/tty-xenlinux.html
I actually use this image; because ttylinux is based on glibc2.3 (and not an old libc or uclibc), it's easy to build up from the 4MB base IMO (like for an IDS or bridging firewall) with recent or precompiled software.
I think this tutorial is good for getting up and running, I found this via Google, but I don't know if it is public or not...
http://openlab-mu-internal.web.cern.ch/openlab-mu-internal/Documents/Reports/Technical/Summer%20Students/xenhowto.pdf
-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
Quoted 2 lines
With Gentoo pre-udev (which is still most installations), you need to enable devfs, procfs, and devfs automount@boot in the xen0 config.
Thanks, I'm adding this.
Quoted 3 lines
I think general suggestions about how to merge old kernel configs would be helpful (I've had to do this many times, it's not tough but I've always imagined most people need to do this).
We'll put this in too.
Quoted 2 lines
Here is a rh7 install log...
http://serverajar.com/rh7_install.txt
I'll take a look,,,,
Quoted 4 lines
It's not a big howto, but maybe you could include the 8 or 9 steps necessary to get ttylinux running, it might be helpful for 'newbies' like myself who just want to get something working quick to get a feel for things?
That's great - I had thought about doing something like this myself. It'd be really useful to have a concrete example, so we'll probably incorporate this into the documentation too.
Thanks for the help!
Mark
-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
In 1.2 the RTC programs would lock a Debian Woody (and testing/unstable) system up. In 2.0-pre it only generates a "can't access" type of error. Once that can be ignored. :)
The lib/tls disabling is also desired (though not necessary due to xen's emulation).
You can use the standard debian installer and dist-upgrade to testing for my debs. It should work out of the box for Domain-0.
To create your initial system image for subsequent domains, you need to use debootstrap package. You then have to hand configure /etc/hosts, /etc/hostname, /etc/resolv.conf, /etc/fstab, /etc/network/interfaces at the minimal.
Among my tasks (unless someone else wants to tackle this one) is a
helper script that uses the debian installer package as a boot disk for installing directly to a XenLinux domain.
As a side note, I've decided to make XenLinuxBuilder an independant package for compiling any of Xen's domain kernels. So eventually this will be available separate from the debian packaging of Xen I'm maintaining. I'll split it out as soom as I cut the new debs (which will be as soon as it looks like the time issue is nailed down, if not before).
Additional side note, if anyone wants a howto on setting up nagios to monitor and reboot domains I'll hash one out and publish it along with a check command and action definitions for nagios.
If anyone else has tips and tricks for a non-mainstream distro, feel free to create a section for their distro on xen.terrabox.com. I think coverign *BSD, and the top 3 or 4 linux distros in the official manual would be sufficient. Any more would make it tough to keep the official docs synced up with new distro releases IMHO that happen to break things. 8-P
As a side note, xen.terrabox.com runs on a XenLinux instance of Debian testing. It connects to a mysql db on another physical machine in it's own XenLinux instance. :) I'm in the process of converting the last couple of machines to Xen.
Whew, long message. :)
Quoted 29 lines · Mark A. Williamson
Quoted 2 lines
With Gentoo pre-udev (which is still most installations), you need to enable devfs, procfs, and devfs automount@boot in the xen0 config.
Thanks, I'm adding this.
Quoted 3 lines
I think general suggestions about how to merge old kernel configs would be helpful (I've had to do this many times, it's not tough but I've always imagined most people need to do this).
We'll put this in too.
Quoted 2 lines
Here is a rh7 install log...
http://serverajar.com/rh7_install.txtI'll take a look,,,,
Quoted 4 lines
It's not a big howto, but maybe you could include the 8 or 9 steps necessary to get ttylinux running, it might be helpful for 'newbies' like myself who just want to get something working quick to get a feel for things?
That's great - I had thought about doing something like this myself. It'd be really useful to have a concrete example, so we'll probably incorporate this into the documentation too.
Thanks for the help!
Mark
Quoted 9 lines
-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xen-devel
-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
Quoted 4 lines · Brian Wolfe
To create your initial system image for subsequent domains, you need to use debootstrap package. You then have to hand configure
/etc/hosts,/etc/hostname,/etc/resolv.conf,/etc/fstab,/etc/network/interfacesat the minimal.
BTW, I've written a simple script to do this, it lets you fill out a configuration template, creates the LVM root volume for the new domain, debootstraps into it, fixes up those config files and finally writes a xen config file. Plus I've done a init script that looks for *.xm in /etc/xen and starts/stops all those as domains.
What's the general feeling about such stuff? Should this go into the distribution or in the Wiki?
ciao,
cm.
Signature · 1 line
** christian mock in vienna, austria -- http://www.tahina.priv.at/~cm/
Quoted 1 line
www.flamingtext.com
I'd never even heard of that site. I wonder what it'd take to convince the owner's goverment that they're terrorists? -- Lionel
-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
For Debian (since it IS the 2nd most used from what I can tell) I'd add it to the main docs. Especially since you have a few automation scripts ready to go (that is if you are going to be sharing yoru scripts w/ GPL license)
If you have no problem, I'd like to get my hands on your scripts and roll it into the XenLinuxBuilder package. I'll share ownership of the xenlinuxbuilder package with you if you want to combine Debian efforts for the setup and management of xenlinux domains. :)
Quoted 13 lines · christian mock
Quoted 4 lines · Brian Wolfe
To create your initial system image for subsequent domains, you need to use debootstrap package. You then have to hand configure
/etc/hosts,/etc/hostname,/etc/resolv.conf,/etc/fstab,/etc/network/interfacesat the minimal.BTW, I've written a simple script to do this, it lets you fill out a configuration template, creates the LVM root volume for the new domain, debootstraps into it, fixes up those config files and finally writes a xen config file. Plus I've done a init script that looks for *.xm in
/etc/xenand starts/stops all those as domains.
Quoted 6 lines
What's the general feeling about such stuff? Should this go into the distribution or in the Wiki?
ciao,
cm.
-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
Quoted 2 lines
I reposted the file here, I can leave it indefinitely.
http://serverajar.com/tty-xenlinux.html
The image posted doesn't seem to be complete - for me it md5sums to bbf51c73c7f712f4bd5b557c8f284ddb and it's only 1 meg.
Is it possible the file on the webserver is truncated?
What exactly is different in this image to the standard one?
I'm currently adding references to ttylinux into the manual, in order to provide concrete examples.
Cheers,
Mark
-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
Quoted 7 lines · On Fri, 15 Oct 2004 16:33:43 +0000 "Mark A. Williamson"…
Quoted 2 lines
I reposted the file here, I can leave it indefinitely.
http://serverajar.com/tty-xenlinux.htmlThe image posted doesn't seem to be complete - for me it md5sums to
bbf51c73c7f712f4bd5b557c8f284ddband it's only 1 meg.Is it possible the file on the webserver is truncated?
yes, it ran up against the quota and truncated, I just fixed it.
Quoted 2 lines
What exactly is different in this image to the standard one?
Nothing much at all, I took the steps at the bottom of the webpage. I posted the image just to make it really simple. I made the disk a bit bigger, edited the fstab and network settings to match the xen config.
Quoted 3 lines
I'm currently adding references to ttylinux into the manual, in order to provide concrete examples.
Cool, I hope someone finds ttylinux useful. I was thinking of trying to make a dom0 out of it sometime.
Quoted 4 lines
Cheers,
Mark
-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
Quoted 1 line
yes, it ran up against the quota and truncated, I just fixed it.
Cheers, bzip likes it now.
Quoted 5 lines
Quoted 2 lines
I'm currently adding references to ttylinux into the manual, in order to provide concrete examples.
Cool, I hope someone finds ttylinux useful. I was thinking of trying to make a dom0 out of it sometime.
A standard example for all users is really useful. I haven't put the URL to your server in the docs - I figure we ought to mirror it onto our own servers if we're going to encourage people to download it en-masse!
Using the standard tools, xend, etc, it would put on quite a bit of weight ;-)
Cheers,
Mark
-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
Quoted 6 lines · Mark A. Williamson
Guys,
Documentation is one of the main hurdles we'd like to get out of the way before releasing 2.0. Stephan and I are at this very minute grokking the docs to start bringing things up to date.
Quoted 10 lines
We'd still like all the help we can get:
* If you've written any howtos, we'd like to incorporate them into the main user manual.
* If there's anything you'd really like to see in the docs then please tell us (if you can contribute the start of some text, that'd be even better!).
* If you find any mistakes, please report them.
* If you found there were any special steps involved in getting Xen working on your distro, beyond what the docs describe, please let us know. We'd like to cover any distro-specific quirks...
Here's some info how to install Debian 3.1 (sarge) for xen:
1) Set up Xen 2 and test it's working OK and you can run domains with it.
You can find help for this from the Xen Documentation.
2) Create disk images for root-fs and swap
dd if=/dev/zero of=/path/diskimage bs=1024k count=size_in_megabytes dd if=/dev/zero of=/path/swapimage bs=1024k count=size_in_megabytes
If you're going to use this filesystem/diskimage only as a "template" for other vm diskimages, something like 300 MB should be enough.. (of course it depends what kind of packages you are planning to install to the template)
3) Create filesystem and swap to the images
mkfs.ext3 /path/diskimage
mkswap /path/swapimage
4) Mount the diskimage for installation
mount -o loop /path/diskimage /mnt/disk
5) Install Debian using debootstrap
Make sure you have debootstrap installed on the host. If you are running Debian sarge (3.1 / testing) or unstable you can install it by running apt-get install debootstrap.
Install debian base to the diskimage:
debootstrap --arch i386 sarge /mnt/disk http://ftp.<countrycode>.debian.org/debian
Or you can of course use any other Debian http/ftp mirror you want.
6) When debootstrap finishes (successfully) modify settings
chroot /mnt/disk /bin/bash
Edit the following files using vi or nano and make needed settings:
/etc/hostname
/etc/hosts
/etc/resolv.conf
/etc/network/interfaces
/etc/networks
Set up access to the services
/etc/hosts.deny
/etc/hosts.allow
/etc/inetd.conf
Add Debian mirror to:
/etc/apt/sources.list
And create fstab like this:
/dev/sda1 / ext3 errors=remount-ro 0 1
/dev/sda2 none swap sw 0 0
proc /proc proc defaults 0 0
logout
7) Umount the diskimage
umount /mnt/disk
8) Create Xen 2 configuration file for the new domain. You can use the
example-configurations coming with xen as a template.
Make sure you have the following set up:
disk = [ 'file:/path/diskimage,sda1,w', 'file:/path/swapimage,sda2,w' ]
root = "/dev/sda1 ro"
I used the default Xen Linux-2.4.27-XenU kernel for the domain.
9) Start the new domain
xm create -f domain_config_file
Check that the new domain is running:
xm list
10) Attach to the console of the new domain.
You should see something like this when starting the new domain:
"Started domain testdomain2, console on port 9626"
There you can see the ID of the console: 26. You can also list the consoles with "xm consoles". (ID is the last two digits of the portnumber.)
Attach to the console:
xm console 26
or by telnetting to the port 9626 of localhost.
11) Log in and run base-config
As a default there's no password for the root.
Check that everything looks OK, and the system started without errors. Check that the swap is active, and the network settings are correct.
Run /usr/sbin/base-config to set up the Debian settings.
Set up the password for root using passwd.
12) Done. You can exit the console by pressing ctrl + ]
If you need to create new domains, you can just copy the contents of the "template"-image to the new disk images simply by mounting the template and the new image, and using cp -a or tar and then modify the image-specific settings (hostname, network settings, etc).
Hope this helps somebody. There might be errors in the text.. please feel free to correct :)
Someone on the xen-devel list was also doing automatic debian-installation script based on configuration templates.. Check that also.
-- Pasi Kärkkäinen
^
. .
Linux
/ - \
Choice.of.the
.Next.Generation.-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
Thanks very much! That's really useful information to have! I didn't know about debbootstrap - it's great that you can do that! Can you install debbootstrap on non-debian machines? That'd be even more useful!
I'll incorporate your howto into an appendix in the user manual - should be really useful!
Thanks again! We'll be finished in no time ;-)
Mark
Quoted 146 lines · Pasi Kärkkäinen
Quoted 6 lines · Mark A. Williamson
Guys,
Documentation is one of the main hurdles we'd like to get out of the way before releasing 2.0. Stephan and I are at this very minute grokking the docs to start bringing things up to date.
Quoted 9 lines
We'd still like all the help we can get:
* If you've written any howtos, we'd like to incorporate them into the main user manual.
* If there's anything you'd really like to see in the docs then please tell us (if you can contribute the start of some text, that'd be even better!). * If you find any mistakes, please report them.
* If you found there were any special steps involved in getting Xen working on your distro, beyond what the docs describe, please let us know. We'd like to cover any distro-specific quirks...Here's some info how to install Debian 3.1 (sarge) for xen:
1) Set up Xen 2 and test it's working OK and you can run domains with it.
You can find help for this from the Xen Documentation.
2) Create disk images for root-fs and swap
dd if=/dev/zero of=/path/diskimage bs=1024k count=size_in_megabytes dd if=/dev/zero of=/path/swapimage bs=1024k count=size_in_megabytes
If you're going to use this filesystem/diskimage only as a "template" for other vm diskimages, something like 300 MB should be enough.. (of course
it depends what kind of packages you are planning to install to the template)3) Create filesystem and swap to the images
mkfs.ext3 /path/diskimage
mkswap /path/swapimage4) Mount the diskimage for installation
mount -o loop /path/diskimage
/mnt/disk5) Install Debian using debootstrap
Make sure you have debootstrap installed on the host. If you are running Debian sarge (3.1 / testing) or unstable you can install it by running apt-get install debootstrap.
Install debian base to the diskimage:
debootstrap --arch i386 sarge
/mnt/disk
http://ftp.<countrycode>.debian.org/debianOr you can of course use any other Debian http/ftp mirror you want.
6) When debootstrap finishes (successfully) modify settings
chroot
/mnt/disk/bin/bashEdit the following files using vi or nano and make needed settings:
/etc/hostname
/etc/hosts
/etc/resolv.conf
/etc/network/interfaces
/etc/networksSet up access to the services
/etc/hosts.deny
/etc/hosts.allow
/etc/inetd.confAdd Debian mirror to:
/etc/apt/sources.listAnd create fstab like this:
/dev/sda1/ ext3 errors=remount-ro 0 1
/dev/sda2none swap sw 0 0
proc /proc proc defaults 0 0logout
7) Umount the diskimage
umount
/mnt/disk8) Create Xen 2 configuration file for the new domain. You can use the
example-configurations coming with xen as a template.Make sure you have the following set up:
disk = [ 'file:/path/diskimage,sda1,w', 'file:/path/swapimage,sda2,w' ]
root = "
/dev/sda1ro"I used the default Xen Linux-2.4.27-XenU kernel for the domain.
9) Start the new domain
xm create -f
domain_config_fileCheck that the new domain is running:
xm list10) Attach to the console of the new domain.
You should see something like this when starting the new domain:"Started domain testdomain2, console on port 9626"
There you can see the ID of the console: 26. You can also list the consoles with "xm consoles". (ID is the last two digits of the portnumber.)
Attach to the console:
xm console 26
or by telnetting to the port 9626 of localhost.
11) Log in and run base-config
As a default there's no password for the root.
Check that everything looks OK, and the system started without errors. Check that the swap is active, and the network settings are correct.
Run
/usr/sbin/base-configto set up the Debian settings.Set up the password for root using passwd.
12) Done. You can exit the console by pressing ctrl + ]
If you need to create new domains, you can just copy the contents of the "template"-image to the new disk images simply by mounting the template and the new image, and using cp -a or tar and then modify the image-specific settings (hostname, network settings, etc).
Hope this helps somebody. There might be errors in the text.. please feel free to correct :)
Someone on the xen-devel list was also doing automatic debian-installation script based on configuration templates.. Check that also.
Quoted 8 lines
-- Pasi Kärkkäinen
^ . . Linux / - \ Choice.of.the .Next.Generation.
-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl