background preloader

Xen

Facebook Twitter

Xen debug

Installation sous Debian. Le but de ce billet est d'installer un serveur de de virtualisation Xen (Wiki) sur un système GNU/Linux Debian. Ce dernier pourra héberger de manière virtuelle (c'est à dire sur la même machine physique) un nombre important de serveurs, mutualisant ainsi votre hardware. J'ai choisi d'héberger mon serveur de virtualisation Xen (on appelle cette machine le dom0 pour "domaine 0" dans le jargon Xen) sur la machine suivante: HP Proliant DL145 AMD Optron 64 2 Go RAM 2 disques durs de 80 Go en RAID 1 (LVM) Système d'exploitation: GNU/Linux Debian Lenny 5 J'ai effectué une installation standard à partir du CD d'installation de la Debian 5.0 en appelant ma machine virt1 et en installant comme seul et unique service le daemon OpenSSH (pour un accès à distance).

Ensuite, il faut procéder à l'installation de Xen et de ses utilitaires: aptitude install xen-hypervisor-i386 xen-linux-system-2.6.26-2-xen-686 xen-utils xen-tools xen-shell xenwatch xenstore-utils reboot mkdir /xen Démarrage du serveur virtuel. The Perfect Xen 3.0.1 Setup For Debian | HowtoForge - Linux Howt. This is a "copy & paste" HowTo! The easiest way to follow this tutorial is to use a command line client/SSH client (like PuTTY for Windows) and simply copy and paste the commands (except where you have to provide own information like IP addresses, hostnames, passwords,...). This helps to avoid typos. Version 1.0 Author: Falko Timme <ft [at] falkotimme [dot] com> Last edited 03/20/2006 This tutorial provides step-by-step instructions on how to install Xen (version 3.0.1) on a Debian Sarge (3.1) system.

Xen lets you create guest operating systems (*nix operating systems like Linux and FreeBSD), so called "virtual machines" or domUs, under a host operating system (dom0). I will use Debian Sarge for both the host OS (dom0) and the guest OS (domU). This howto is meant as a practical guide; it does not cover the theoretical backgrounds.

This document comes without warranty of any kind! 1 Install The Debian Host System (dom0) You can overall follow these instructions, but with a few changes: The Perfect Xen 3.0.1 Setup For Debian - Page 2 | HowtoForge - L. 3.1 Installing The Binary Package Run the following commands: apt-get remove exim4 exim4-base lpr nfs-common portmap pidentd pcmcia-cs pppoe pppoeconf ppp pppconfig apt-get install screen ssh debootstrap python python2.3-twisted iproute bridge-utils libcurl3-dev 3.1.1 Install Xen Then download xen-3.0.1-install-x86_32.tgz from with BitTorrent and put it into the /usr/src directory. cd /usr/src/ tar xvzf xen-3.0.1-install-x86_32.tgz cd xen-3.0.1-install . Now Xen is installed. Update-rc.d xend defaults 20 21 update-rc.d xendomains defaults 21 20 3.1.2 Configure The Bootloader And Reboot Next we add the Xen kernel to Grub, our bootloader.

Vi /boot/grub/menu.lst Make sure that /dev/hda6 is your / partition. Now reboot the system: shutdown -r now At the boot prompt, Grub should now list Xen 3.0 / XenLinux 2.6.12 as the first kernel and boot it automatically. The Perfect Xen 3.0.1 Setup For Debian - Page 4 | HowtoForge - L. 4 Create A Virtual Machine (domU) Next we create an image of a virtual machine. It will be a basic Debian system. This image will be the template for all our virtual machines. Whenever we want to create a new virtual machine, we just copy this image, create a new Xen configuration file and boot the copy, and then we can go on and configure the copy to our needs (e.g install a mail server, web server, DNS server, etc. on it).

All our images will be on the /vserver partition which should be the largest one we have. mkdir /vserver/vm_base mkdir /vserver/images Now we create a 1 GB image file and a 500 MB swap image. Dd if=/dev/zero of=/vserver/images/vm_base.img bs=1024k count=1000 dd if=/dev/zero of=/vserver/images/vm_base-swap.img bs=1024k count=500 Then we format /vserver/images/vm_base.img with ext3 and vm_base-swap.img with swap: mkfs.ext3 /vserver/images/vm_base.img When you see the following, answer with y: /vserver/images/mail.img is not a block special device. Vi /etc/apt/sources.list. Installer et configurer Xen sur Debian 4.0 Etch et 5.0 Lenny — L. Xen est une solution de virtualisation libre et gratuite disponible dans les dépôts de Debian 4.0 Etch. Cet article vous guide au travers de l'installation, la configuration et l'utilisation de Xen sur Debian 4.0 Etch et 5.0 Lenny.

Pour information Dans ce guide, je parlerai en permanence de machines virtuelles. Cependant, Xen a sa propre terminologie. Dans une configuration Xen, les machines virtuelles instanciées (c'est à dire démarrées) sont appelées "Domaines". Une fois votre machine configurée pour faire fonctionner Xen, tous les systèmes d'exploitation tournent dans des "domaines". Comme je suis un peut pantouflard, je n'ai pas envie de m'imposer cette torsion mentale, et je ne parlerai que de machines virtuelles pour simplifier le schmilblick. Prérequis Ce guide fait usage des possibilités de LVM. LVM, une autre manière de partitionner. De plus, nous allons avoir besoin de apg pour générer les mots de passe des utilisateurs des machines virtuelles: command apt-get install apg if [ !

Xen et le réseau. 1 Introduction Cet article présente la gestion réseau avec Xen. Un pré-requis est d'avoir parcouru l'article Xen et les articles listés dans le chapitre Xen#Xen_facile. Un autre pré-requis est d'avoir quelques notions de base en réseau, en guise de rappels, des définitions et les liens qui vous sont donnés dans le chapitre Xen_et_le_réseau#D.C3.A9finitions_et_liens_de_base. En terme de réseau, Xen offre de nombreuses possibilités : Pas de réseau, au lancement de Xen ! Le mode pont (bridge), qui est le défaut. Le mode routage. Il est aussi possible de modifier, complètement ou presque, le réseau mis en place nativement avec Xen. Dans ce document, nous allons nous contenter de découvrir le réseau mis en place par défaut avec Xen, ceci avec une distribution Fedora. 2 Définitions et liens de base 2.1 Le réseau c'est quoi ?

2.2 Pont Pont / bridge (Ethernet) Un pont est un équipement matériel qui permet d'interconnecter 2 réseaux physiques. Dans notre cas, nous parlons uniquement de pont logiciel. Xen. 1 Introduction Cet article est une présentation "rapide" de Xen. Il va nous permettre : D'expliquer ce qu'est Xen ? De définir le vocabulaire Xen. D'indiquer quelques points fondamentaux sur les possibilités de Xen. Ensuite : Nous vous indiquerons un cheminement logique et progressif vers les autres articles Xen de ce site. Bien entendu, tout cela dans un contexte Fedora. 2 Qu'est-ce que Xen ? Xen permet d'exécuter plusieurs systèmes d'exploitation sur une même machine Il s'intercale entre le matériel et des systèmes d'exploitation "invités".

Il gère le partage des ressources matérielles tout en assurant le cloisonnement entre les systèmes invités. La gestion des systèmes d'exploitation "invités" s'effectue à travers un système d'exploitation privilégié dit "hôte". Xen a tout d'abord été un paravirtualisateur et il l'est toujours Il permet de faire tourner des systèmes invités qui ont conscience d'être virtualisé. Ces systèmes invités ont été adaptés pour collaborer efficacement avec l'hôte. Dom0. Xen and the Art of Consolidation. Xen and the Art of Consolidation Copyright © 2006, 2007 Thomas M. Eastep Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, with no Front-Cover, and with no Back-Cover Texts.

A copy of the license is included in the section entitled “GNU Free Documentation License”. Caution This article applies to Shorewall 3.0 and later. Xen is a paravirtualization tool that allows you to run multiple virtual machines on one physical machine. Xen refers to the virtual machines as Domains. Xen virtualizes a network interface named eth0[1]in each domain. I use the term Extended Dom0 to distinguish the bridge and virtual interfaces from Dom0 itself. The bridge has a number of ports: Prior to adopting Xen, I had a home office crowded with 5 systems, three monitors a scanner and a printer. The result was a very crowded and noisy room. #! Virtualization With Xen On Debian Lenny (AMD64) | HowtoForge - L. Version 1.0 Author: Falko Timme <ft [at] falkotimme [dot] com> Last edited 02/03/2009 This tutorial provides step-by-step instructions on how to install Xen on a Debian Lenny (5.0) system (AMD64).

Xen lets you create guest operating systems (*nix operating systems like Linux and FreeBSD), so called "virtual machines" or domUs, under a host operating system (dom0). Using Xen you can separate your applications into different virtual machines that are totally independent from each other (e.g. a virtual machine for a mail server, a virtual machine for a high-traffic web site, another virtual machine that serves your customers' web sites, a virtual machine for DNS, etc.), but still use the same hardware.

This saves money, and what is even more important, it's more secure. If the virtual machine of your DNS server gets hacked, it has no effect on your other virtual machines. Plus, you can move virtual machines from one Xen server to the next one. 1 Preliminary Note 2 Installing Xen reboot Run. Managing Xen With Xen-Tools, Xen-Shell, And Argo | HowtoForge - Version 1.0 Author: Falko Timme <ft [at] falkotimme [dot] com> Last edited 10/21/2006 This guide describes how to install and use xen-tools, xen-shell, and Argo on a Debian system. All three packages provide useful tools for the administration of virtual Xen machines.

Xen-tools is a collection of Perl scripts that allow you to easily create, update, and delete Xen guest domains. The xen-shell provides a command-line interface to owners of Xen domains so that they can manage their Xen domains without the help of the server administrator. And with Argo, you can control Xen domains through a web interface or through a menu on the command line. All three packages were developed for Debian systems, but might work on other distributions as well. I want to say first that this is not the only way of setting up such a system. 1 Preliminary Note I assume you have already installed Xen 3 on your Debian system (it doesn't work with Xen 2!) Vi /etc/hosts 2 Xen-Tools Then we install xen-tools like this: Xen. 1 Introduction Cet article est une présentation "rapide" de Xen. Il va nous permettre : D'expliquer ce qu'est Xen ? De définir le vocabulaire Xen.

D'indiquer quelques points fondamentaux sur les possibilités de Xen. Ensuite : Nous vous indiquerons un cheminement logique et progressif vers les autres articles Xen de ce site. Bien entendu, tout cela dans un contexte Fedora. 2 Qu'est-ce que Xen ? Xen permet d'exécuter plusieurs systèmes d'exploitation sur une même machine Il s'intercale entre le matériel et des systèmes d'exploitation "invités".

Il gère le partage des ressources matérielles tout en assurant le cloisonnement entre les systèmes invités. La gestion des systèmes d'exploitation "invités" s'effectue à travers un système d'exploitation privilégié dit "hôte". Xen a tout d'abord été un paravirtualisateur et il l'est toujours Il permet de faire tourner des systèmes invités qui ont conscience d'être virtualisé. Ces systèmes invités ont été adaptés pour collaborer efficacement avec l'hôte. Dom0. Communauté francophone : Xen IRC. Xen 3.0 - manual. Dossier Xen. Xen. Xen is an open-source (GPL) type-1 or baremetal hypervisor, which makes it possible to run many instances of an operating system or indeed different operating systems in parallel on a single machine (or host) Some of Xen's key features are: Small footprint and interface (is around 1MB in size).

Because Xen uses a microkernel design, with a small memory footprint and limited interface to the guest, it is more robust and secure than other hypervisors. Operating system agnostic: Most installations run with Linux as the main control stack (aka "domain 0"). But a number of other operating systems can be used instead, including NetBSD and ? OpenSolaris. See the Xen Overview on the Xen wiki for more information. Guest types Xen supports running two different types of guests: Paravirtualization (PV) and Full or Hardware assisted Virtualization (HVM). Domain 0 Xen has a special domain called domain 0 which contains drivers for the hardware, as well as the toolstack to control VMs.

Buster Stretch ? ? HVM : Xen Hardware Virtual Machine (HVM) From Virtuatopia Purchase and download the full PDF and ePub versions of this eBook for only $8.99 Xen hardware virtual machine (HVM) virtualization provides support for the virtualization of unmodified guest operating systems without the loss of performance inherent in the use of full virtualization (the different types of virtualization are described in the An Overview of Virtualization Techniques chapter of this book). In the case of host systems containing CPUs with virtualization support, the HVM approach provides superior levels of performance when compared to full virtualization. [edit] Checking Hardware Support for Xen Hardware Virtual Machines (HVM) In order to support hardware virtualization, the CPU must include Intel-VT or AMD-V support.

This can be verified using the following commands: For Intel CPUs: grep vmx /proc/cpuinfo For AMD CPUSs: grep svm /proc/cpuinfo [edit] Preparing to Install a Xen HVM domainU Guest dd if=/dev/zero of=xenguest.img bs=1024k seek=6144 count=0 vncconsole=1. HVM : Installing. From Virtuatopia Purchase and download the full PDF and ePub versions of this eBook for only $8.99 Xen hardware virtual machine (HVM) virtualization provides support for the virtualization of unmodified guest operating systems without the loss of performance inherent in the use of full virtualization (the different types of virtualization are described in the An Overview of Virtualization Techniques chapter of this book). In the case of host systems containing CPUs with virtualization support, the HVM approach provides superior levels of performance when compared to full virtualization. [edit] Checking Hardware Support for Xen Hardware Virtual Machines (HVM) In order to support hardware virtualization, the CPU must include Intel-VT or AMD-V support.

This can be verified using the following commands: For Intel CPUs: grep vmx /proc/cpuinfo For AMD CPUSs: grep svm /proc/cpuinfo [edit] Preparing to Install a Xen HVM domainU Guest dd if=/dev/zero of=xenguest.img bs=1024k seek=6144 count=0 vncconsole=1.

Optimisation

Debootstrap & Xen-tools. Surcouches inutiles. Xen HVM DomU.