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 _______________________________________________ Xen-devel mailing list Xen-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xen-devel
On Tue, 12 Oct 2004 14:55:41 +0000 "Mark A. Williamson" <mark.williamson@cl.cam.ac.uk> wrote:> * 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.> * 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).> * 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 _______________________________________________ Xen-devel mailing list Xen-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xen-devel
Mark A. Williamson
2004-Oct-14 00:12 UTC
Re: [Xen-devel] Documetation - The Phantom Menace
> 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.> 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.> Here is a rh7 install log... > http://serverajar.com/rh7_install.txtI''ll take a look,,,,> 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 _______________________________________________ Xen-devel mailing list Xen-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xen-devel
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. :) On Wed, 2004-10-13 at 19:12, Mark A. Williamson wrote:> > 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. > > > 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. > > > Here is a rh7 install log... > > http://serverajar.com/rh7_install.txt > > I''ll take a look,,,, > > > 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 > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.sourceforge.net > 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 _______________________________________________ Xen-devel mailing list Xen-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xen-devel
On Wed, Oct 13, 2004 at 10:26:14PM -0500, Brian Wolfe wrote:> 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.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. -- ** christian mock in vienna, austria -- http://www.tahina.priv.at/~cm/> www.flamingtext.comI''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 _______________________________________________ Xen-devel mailing list Xen-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xen-devel
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. :) On Thu, 2004-10-14 at 04:03, christian mock wrote:> On Wed, Oct 13, 2004 at 10:26:14PM -0500, Brian Wolfe wrote: > > > 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. > > 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.------------------------------------------------------- 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 Xen-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xen-devel
On Tue, Oct 12, 2004 at 02:55:41PM +0000, Mark A. Williamson wrote:> 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... >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 _______________________________________________ Xen-devel mailing list Xen-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xen-devel
Mark A. Williamson
2004-Oct-15 12:58 UTC
Re: [Xen-devel] Documetation - The Phantom Menace
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 On Friday 15 October 2004 10:40, Pasi Kärkkäinen wrote:> On Tue, Oct 12, 2004 at 02:55:41PM +0000, Mark A. Williamson wrote: > > 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... > > 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 _______________________________________________ Xen-devel mailing list Xen-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xen-devel
Mark A. Williamson
2004-Oct-15 16:33 UTC
Re: [Xen-devel] Documetation - The Phantom Menace
> 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 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 _______________________________________________ Xen-devel mailing list Xen-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xen-devel
On Fri, 15 Oct 2004 16:33:43 +0000 "Mark A. Williamson" <mark.williamson@cl.cam.ac.uk> wrote:> > 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?yes, it ran up against the quota and truncated, I just fixed it.> > 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.> > 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.> > 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 _______________________________________________ Xen-devel mailing list Xen-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xen-devel
Mark A. Williamson
2004-Oct-15 17:08 UTC
Re: [Xen-devel] Documetation - The Phantom Menace
> yes, it ran up against the quota and truncated, I just fixed it.Cheers, bzip likes it now.> > 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 _______________________________________________ Xen-devel mailing list Xen-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xen-devel