archive_xen
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| archive_xen [2009/12/17 20:49] – I'm a massive fucking pedant. _seth | archive_xen [2026/09/27 00:52] (current) – removed - external edit (Unknown date) 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | //Work in progress. -- Thom 17/12/09// | ||
| - | |||
| - | |||
| - | ====== Overview ====== | ||
| - | |||
| - | |||
| - | * We currently have two Xen hosts: [[wotan]] and [[oracle]]. | ||
| - | |||
| - | |||
| - | ====== Creating new Xen instances ====== | ||
| - | |||
| - | |||
| - | |||
| - | ==== Naming your host ==== | ||
| - | |||
| - | * Think of a name. We like Dr Who themed names! If you recycle a name you'll probably upset Thom -- why not ask Malcolm for advice? | ||
| - | * At this point you should also create a wiki page explaining your VM's purpose and config. Use one of the other Xen machines' | ||
| - | * Find a free IP and add forward and reverse mappings to the [[dns_service|DNS]]. | ||
| - | |||
| - | |||
| - | ==== Find a Xen host ==== | ||
| - | |||
| - | * Our main constraints on Xen hosts are RAM and disk space. | ||
| - | * Use '' | ||
| - | * Check amount of RAM allocated to dom0 in '' | ||
| - | |||
| - | |||
| - | ==== Create disk volumes ==== | ||
| - | |||
| - | |||
| - | * Create root volume: '' | ||
| - | * 2GB is just about enough for a Debian install. | ||
| - | * You can find out the volume group name with '' | ||
| - | * Create swap volume: '' | ||
| - | * Use your favourite rule of thumb for guessing a completely arbitrary quantity of swap space to allocate. If your machine starts thrashing you'll probably upset someone, so it's better off being small. | ||
| - | |||
| - | |||
| - | ==== Create Xen configuration file ==== | ||
| - | |||
| - | |||
| - | Combine the following config, as customized to your specifications, | ||
| - | http:// | ||
| - | |||
| - | Put the new config file in ''/ | ||
| - | |||
| - | // Note. The IP bit is possibly redundant. Replace with blank string?// | ||
| - | |||
| - | < | ||
| - | memory = <amount of memory in MB> | ||
| - | name = "< | ||
| - | vif = [' | ||
| - | disk = [ ' | ||
| - | ' | ||
| - | |||
| - | # | ||
| - | # Debian Installer specific variables | ||
| - | <<< | ||
| - | </ | ||
| - | |||
| - | |||
| - | ==== Install Debian ==== | ||
| - | |||
| - | |||
| - | * There' | ||
| - | * '' | ||
| - | * Start the installer | ||
| - | * '' | ||
| - | |||
| - | * Exciting installer notes! | ||
| - | * DHCP got an address the first time round. It probably shouldn' | ||
| - | * Gateway is '' | ||
| - | * Configure the proxy as '' | ||
| - | * Partition manually. The installer gets confused otherwise | ||
| - | * Be careful not to select " | ||
| - | * Also this doesn' | ||
| - | * Bootloader... WTF. FIXME. | ||
| - | |||
| - | * Unbreak the firewall. | ||
| - | * '' | ||
| - | |||
| - | |||
| - | ==== Booting your instance ==== | ||
| - | |||
| - | |||
| - | * Remove the Debian installer cruft from the config file. | ||
| - | * Add kernel=, initrd=, and root= entries | ||
| - | * There' | ||
| - | * '' | ||
| - | * Will boot instance and attach to console. Check you can log in. | ||
| - | * Use ctrl+] to get back to the Xen host console. | ||
| - | |||
| - | |||
| - | ==== Finishing up ==== | ||
| - | |||
| - | |||
| - | * Congratulations, | ||
| - | |||
| - | |||
| - | ====== Booting and Shutting Down ====== | ||
| - | |||
| - | |||
| - | Xen's init scripts are set up to perform an `xm save` (copy the RAM to disk) for each domU that's running when vislor and/or adric are shut down and to restore saved domUs on boot. This should take care of the cases where tardis is shut down intentionally, | ||
| - | |||
| - | To start all domUs on vislor do: | ||
| - | for foo in / | ||
| - | <WAIT FOR A LOGIN PROMPT> | ||
| - | ctrl+] | ||
| - | <WAIT FOR A LOGIN PROMPT> | ||
| - | ctrl+] | ||
| - | .... | ||
| - | |||
| - | |||
| - | |||
archive_xen.1261082986.txt.gz · Last modified: (external edit)
