User Tools

Site Tools


archive_xen

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
archive_xen [2008/10/07 13:30] – Big changes for wotan. mediawiki_defaultarchive_xen [2026/09/27 00:52] (current) – removed - external edit (Unknown date) 127.0.0.1
Line 1: Line 1:
- 
-====== Overview ====== 
- 
- 
-  *  We currently have a single Xen host: [[wotan]].  It replaced the previous Xen hosts as it has more of everything (disks, CPUs, RAM, PSUs). 
-  *  We run i386 Xen 3.0.3 with PAE (as packaged in Debian etch). 
-  *  We use LVM to create volumes for each domU's root and swap partitions. 
-  *  We have a homebrew [[http://jp-hosting.net/mkdomU.bash.html|script]] to create the LV and use debootstrap to install the OS. 
- 
- 
-====== How to Add New Instances ====== 
- 
- 
-The VM creation script gets the new system's IP address from DNS so the first job is to see the [[dns_service]] page for details on how to set up a new entry for your system. 
- 
-Login to wotan, which is the main xen machine. Use the mkdomU.bash script to create the new instance like so: 
- 
-<code> 
-mkdomU.bash -vh <newmachinename> 
-</code> 
- 
-Say yes to shadow passwords, type in root password (twice), say no to creating a user account. 
- 
-If you want to do something complicated, have a look at /etc/mkdomU.conf, or at the script at /usr/local/bin/mkdomU.bash . 
- 
-Don't forget to unmount the domU filesystem! 
- 
-<code> 
-umount /mnt/mkdomU 
-</code> 
- 
-Run 
- 
-<code> 
-xm create -c <newmachinename>.conf 
-</code> 
- 
-to get the instance up and running. You should be able to log in.  Use ctrl+] to get back to vislor's console. 
- 
- 
-====== 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, but a bit more work will have to be done following an unexpected power loss.  (When do they happen anyway? ;-) 
- 
-To start all domUs on vislor do: 
-  for foo in /etc/xen/*.conf; do xm create -c $foo; done 
-  <WAIT FOR A LOGIN PROMPT> 
-  ctrl+] 
-  <WAIT FOR A LOGIN PROMPT> 
-  ctrl+] 
-  .... 
- 
- 
- 
  
archive_xen.1223386211.txt.gz · Last modified: (external edit)