This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
xen:installation_of_dom0 [2011/03/23 16:02] Luc Nieland |
xen:installation_of_dom0 [2011/03/27 20:38] (current) Luc Nieland [Debian 6.0 (Squeeze)] |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ======Building a Dom0====== | ======Building a Dom0====== | ||
| - | Various distrubutions deliver the platform for a good domain-zero (Dom0). | + | Various distributions deliver the base to create a Xen domain-zero (Dom0). Below a few step-by-step CLI guides on getting from bare metal to a Dom0 for PV or HVM. |
| Line 6: | Line 7: | ||
| ====OpenSuse 11.4==== | ====OpenSuse 11.4==== | ||
| - | Install a minimal OpenSuse system, choose "other" graphical system, and choose minimal X-server). | + | Install a minimal OpenSuse system, choose "other" graphical system, and choose text based server). |
| - | Use Yast: Virtualization -> Install Hypervisor and Tools -> Xen to install the Xen hypervisor and dom0 patched kernel. | + | |
| + | Now the system will come up with a graphical-screen (ROTFL). With ctrl-alt-F1 change to text-mode and log in with the created non-root user during install. Use: | ||
| + | sudo su - root | ||
| + | passwd root | ||
| + | to go to a more comfortable area. | ||
| + | Use yast: | ||
| + | * system -> System Services (expert): to the default runlevel to 3 | ||
| + | * security -> firewall: to disable the firewall | ||
| + | * system -> System Services: to enable sshd in runlevel 3 (and optionally 4 and 5) | ||
| + | * network -> to change the hostname and make the IP static | ||
| + | |||
| + | |||
| + | Update the repository cache and install generic usefull stuff: | ||
| + | zypper up | ||
| + | zypper install mc iputils man bind-util vim-enhanced tcpdump rsync wget iftop | ||
| + | |||
| + | |||
| + | De-install conflicting patterns-openSUSE-minimal_base because it conflicts with python-base (which is a requirement for xen-tools). As a replacment for the package, some other packages need to be installed: | ||
| + | zypper remove patterns-openSUSE-minimal_base | ||
| + | zypper install python-base | ||
| + | |||
| + | Install the Xen hypervisor and a Xen-enabled Linux dom0 kernel: | ||
| + | zypper install libvirt xen-libs xen kernel-xen xen-tools | ||
| + | |||
| + | Extra stuff: | ||
| + | zypper install libvirt-python vm-install xen-tools-ioemu | ||
| + | |||
| + | |||
| + | The required linux-bridging stuff has come as dependency. | ||
| + | |||
| + | |||
| + | Change the default boot-option to the Xen hypervisor in /boot/grub/menu.lst | ||
| + | default 0 | ||
| + | |||
| - | Optionally change the default runlevel to 3, and change the default boot-option to Xen, and use fixed IP-numbers etc. | + | As an alternative for cmdline zypper; use Yast: Virtualization -> Install Hypervisor and Tools -> Xen to install the Xen hypervisor and dom0 patched kernel. Resolve the python dependency also. |
| Line 30: | Line 65: | ||
| + | ===References=== | ||
| + | Further reading: | ||
| + | * [[http://www.scribd.com/doc/43734889/Xen3-Zero-to-Xen-From-the-CLI-in-OpenSuSE-10-3]] | ||
| + | * | ||
| Line 77: | Line 116: | ||
| #!/bin/sh | #!/bin/sh | ||
| BASEPATH=/etc/xen/scripts | BASEPATH=/etc/xen/scripts | ||
| - | ${BASEPATH}/network-bridge "$@" vifnum=0 netdev=eth0 bridge=xenbr0 | + | ${BASEPATH}/network-bridge "$@" vifnum=0 bridge=xenbr0 netdev=eth0 |
| - | ${BASEPATH}/network-bridge "$@" vifnum=1 netdev=eth1 bridge=xenbr1 | + | ${BASEPATH}/network-bridge "$@" vifnum=1 bridge=xenbr1 netdev=eth1 |
| - | ${BASEPATH}/network-bridge "$@" vifnum=2 netdev=eth2 bridge=xenbr2 | + | ${BASEPATH}/network-bridge "$@" vifnum=2 bridge=xenbr2 netdev=eth2 |
| - | ${BASEPATH}/network-bridge "$@" vifnum=3 netdev=eth3 bridge=xenbr3 | + | ${BASEPATH}/network-bridge "$@" vifnum=3 bridge=xenbr3 netdev=eth3 |