archive_xen
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| archive_xen [2006/12/03 17:06] – _uberjoe | archive_xen [2026/09/27 00:52] (current) – removed - external edit (Unknown date) 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | |||
| - | ====== Overview ====== | ||
| - | |||
| - | |||
| - | * We have two P4 PCs, [[vislor]] and [[adric]], running Xen 3.0.1. | ||
| - | * They run Fedora core 5 dom0s with Fedora' | ||
| - | * As neither machine has space for more than one hard disk, the systems use DRBD to provide data redundancy. | ||
| - | * [[vislor]] (P4 1.7GHz/ | ||
| - | * [[adric]] (P4 1.6GHz/ | ||
| - | |||
| - | |||
| - | ====== OS Setup ====== | ||
| - | |||
| - | |||
| - | The unpopular decision to run Fedora core on [[vislor]] and [[adric]] was made based on its excellent Xen packaging and the poor state of the Debian Xen-patched kernels. --Pert 12:40, 20 October 2006 (BST) | ||
| - | |||
| - | In order to document the installation and to provide an easy way for the boxes to be re-installed by others I used kickstart scripts; available here (only accessable from tardis): | ||
| - | |||
| - | * http:// | ||
| - | * http:// | ||
| - | |||
| - | |||
| - | ====== Disk Setup ====== | ||
| - | |||
| - | |||
| - | **Vislor:** | ||
| - | * hda1: 4GB ext3 / | ||
| - | * hda2: 30GB DRBD-PV (drbd0) | ||
| - | * hda3: ~3GB LVM-PV (swaps VG) | ||
| - | * hda4: 512MB swap | ||
| - | * drbd0: 30GB LVM-PV (prod-roots VG) | ||
| - | |||
| - | **Adric:** | ||
| - | * hda1: 4GB ext3 / | ||
| - | * hda2: 30GB DRBD-PV (drbd0) | ||
| - | * hda3: 512MB swap | ||
| - | * hda5: 20GB LVM-PV (test-roots VG) | ||
| - | * hda6: ~3GB LVM-PV (swaps VG) | ||
| - | |||
| - | |||
| - | ====== How to build DRBD for Fedora ====== | ||
| - | |||
| - | |||
| - | < | ||
| - | wget http:// | ||
| - | tar -xzvf drbd-0.7.21.tar.gz | ||
| - | cd drbd-0.7.21/ | ||
| - | patch <<' | ||
| - | --- drbd.spec.in.orig | ||
| - | +++ drbd.spec.in | ||
| - | @@ -64,9 +64,9 @@ | ||
| - | %prep | ||
| - | | ||
| - | test -d %{kdir}/. | ||
| - | -test $(echo -e "# | ||
| - | - gcc -nostdinc -E -P -I%{kdir}/ | ||
| - | - sed -ne ' | ||
| - | +#test $(echo -e "# | ||
| - | +# gcc -nostdinc -E -P -I%{kdir}/ | ||
| - | +# sed -ne ' | ||
| - | |||
| - | | ||
| - | echo kernelversion=%{kernelversion} | ||
| - | END | ||
| - | make rpm | ||
| - | </ | ||
| - | |||
| - | |||
| - | ====== How to Add New Instances ====== | ||
| - | |||
| - | |||
| - | Login to leela, and add the new box to / | ||
| - | |||
| - | Login to vislor, which is the main xen machine. Use the mkdomU.bash script to create the new instance like so: | ||
| - | |||
| - | < | ||
| - | mkdomU.bash -vh[newmachinename] | ||
| - | </ | ||
| - | |||
| - | Say yes to shadow passwords, type in root password (twice), say no to creating a user account. | ||
| - | |||
| - | If you want to do something complicated, | ||
| - | |||
| - | Unmount /mnt/mkdomU once it's done. | ||
| - | |||
| - | Run | ||
| - | |||
| - | < | ||
| - | xm create -c [newmachinename] | ||
| - | </ | ||
| - | |||
| - | to get the instance up and running. You should be able to log in. | ||
archive_xen.1165165561.txt.gz · Last modified: (external edit)
