User Tools

Site Tools


xen:creation_of_a_domu

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
xen:creation_of_a_domu [2011/02/05 13:33]
Luc Nieland layout reorganisation and debian6
xen:creation_of_a_domu [2011/02/07 19:05] (current)
Luc Nieland
Line 5: Line 5:
  
 ====with KVM==== ====with KVM====
-convenent ​way to prepair an image is by using KVM on your workstion. Install from the Net or the netinst.iso Keep in mind:+convenient ​way to prepair an image is by using KVM on your workstion. Install from the Net or the netinst.iso Keep in mind:
   * install minimal, (use expertmode).   * install minimal, (use expertmode).
   * it installs with grub2 only, so you will you will need xen-4 on your Dom0 to use pygrub.   * it installs with grub2 only, so you will you will need xen-4 on your Dom0 to use pygrub.
Line 31: Line 31:
 An example minimal config with pygrub: An example minimal config with pygrub:
 <​code>​ <​code>​
-name = "​deb6"​ +name       ​= "​deb6"​ 
-memory = 1024 +memory ​    ​ 1024 
-vcpus = 1+vcpus       1
 bootloader = "/​usr/​lib/​xen-4.0/​bin/​pygrub"​ bootloader = "/​usr/​lib/​xen-4.0/​bin/​pygrub"​
-vfb  +disk       =  [ "​phy:/​dev/​mapper/​vg00-deb6disk0,​xvda,​w"​ ] 
-on_poweroff = "​destroy"​ +vif         [ "​mac=00:​16:​3c:​53:​ba:​f9,​bridge=xenbr0"​ ] 
-on_reboot = "​restart"​ +extra      = "​clocksource=jiffies"​
-on_crash = "​restart"​ +
-+
-disk = [ "​phy:/​dev/​mapper/​vg00-deb6disk0,​xvda,​w" ​ +
-vif = [ "​mac=00:​16:​3c:​53:​ba:​f9,​bridge=xenbr0"​]+
 </​code>​ </​code>​
  
Line 56: Line 52:
  
  
-====upgrade a Debian 5 (Lenny) domU ====+====upgrade ​from a Debian 5 (Lenny) domU ====
  
 As preparation,​ adapt /​etc/​apt/​sources and execute: As preparation,​ adapt /​etc/​apt/​sources and execute:
Line 65: Line 61:
   touch /​etc/​udev/​kernel-upgrade   touch /​etc/​udev/​kernel-upgrade
   apt-get dist-upgrade -fu   apt-get dist-upgrade -fu
 +
 +
 +
 +Only when the Dom0 is xen-3 (i.e. pygrub is not grub-2 capable)
 +
   apt-get install grub-legacy   apt-get install grub-legacy
 +
  
 Adapt /​boot/​grub/​menu.lst and append console=hvc0 to the kernel line, like this: Adapt /​boot/​grub/​menu.lst and append console=hvc0 to the kernel line, like this:
  
   kernel /​vmlinuz-2.6.... ​  ​root=/​..... ​  ​ro ​ console=hvc0 xencons=tty   kernel /​vmlinuz-2.6.... ​  ​root=/​..... ​  ​ro ​ console=hvc0 xencons=tty
 +
 +
 +
 +When the Dom0 is xen-4 or later (i.e. pygrub is grub-2 capable)
 +
 +  upgrade-from-grub-legacy
 +  rm -f /​boot/​grub/​menu.lst*
 +
  
  
Line 77: Line 87:
  
  
-Done. Now you can safe reboot the domU system. You will have a working console, and pygrub will be able to read the menu.list file. See also: [[http://​wiki.debian.org/​Xen]]+Done. Now you can safe reboot the domU system. You will have a working console. 
  
  
Line 96: Line 107:
 The link below is describes the installation steps of the Solaris/​Linux combination:​ The link below is describes the installation steps of the Solaris/​Linux combination:​
 See: http://​wiki.tardis.ed.ac.uk/​index.php/​OpenSolaris_Xen_domU See: http://​wiki.tardis.ed.ac.uk/​index.php/​OpenSolaris_Xen_domU
 +
 +
 +
 +=====RedHat 6 PV domU =====
 +RHEL6 runs as Xen PV (paravirtual) domU using the pvops framework in the default kernel. ​
 +
 +A convenient way to make the raw image for domU usage is with KVM. Install from the CDrom, the usual way.
 +To use this image as a domU, edit the /​etc/​grub.conf in the image (by using KVM) and add to the kernel line:
 +
 +  console=hvc0
 +
 +After this, this machine will not have a console with KVM anymore when rebooted in KVM. So shut it down, and copy it over to the xen dom0 machine.
 +
 +
 +A minimal domU.conf file example is:
 +
 +  name       ​= ​  "​rh6beta"​
 +  memory ​    ​= ​   1024
 +  vcpus      =    2
 +  bootloader =   "/​usr/​lib/​xen-4.0/​bin/​pygrub"​
 +  disk       = [ "​phy:/​dev/​mapper/​vg00-rh6disk0,​xvda,​w" ​ ]
 +  vif        = [ "​mac=00:​16:​34:​f2:​3b:​7f,​bridge=xenbr3"​]
 +  extra      =   "​clocksource=jiffies"​
 +
 +
 +When the mac-adres of the domU has changed, update the configfiles:​
 +  * /​etc/​sysconfig/​network-scripts/​ifcfg-eth* ​   (HWADDR=... )
 +  * /​etc/​udev/​rules.d/​70-persistent-net.rules
  
  
xen/creation_of_a_domu.1296909201.txt.gz · Last modified: 2011/02/05 13:33 by Luc Nieland