Xen server do it yourself. Part one

    In the comments to the topic System Administration. Start. read that the community would be interested in articles on virtualization. For a long time, I have on my hard drive a description of the process of installing Xen hypervisor and the guest OS on a server running Ubuntu / Debian.


    Most people use VmWare or VirtualBox for virtualization rarely Qemu.
    Including under Win x32 \ x64 platform they are very popular. Creation The Sun even understands Intel VT hardware support.
    But I would like to talk about a real alternative on Linux platforms - Xen.
    Moreover, it is present in the Ubuntu \ Debian repositories.


    We put Xen on the server


    For full compatibility and the ability to use all functions, we need hardware support from the server.
    Intel VT (Virtualization Technology, aka Vanderpool) : Selected Pentium 4 and Pentium D, Xeon 5000 and later, Xeon LV, Core Duo, Core 2 Duo, and Core 2 Quad processors
    AMD - V / SVM (Virtualization / Secure Virtual Machine, aka Pacifica) : Selected Athlon, Opteron, and Turion Socket F and AM2 processors

    Intel VT - supported in all Core2Duo, so this is not a problem. It is advisable to go into the BIOS and check if it is turned on.
    Hardware compatibility will allow us to run unmodified OS (read Win XP, etc.)


    uname -a

    We get the kernel version - in my case 2.6.24-19-generic, this will come in handy later.

    We put Xen on our Ubuntu server 8.04.1 x64.
    All the commands below require root privileges, so to save time, we completely switch to the root console:

    sudo su -


    Put Xen:

    aptitude install ubuntu-xen-server

    confirm the installation of all requested packages.
    We are waiting for the end of the installation.

    sudo reboot

    After starting the server, in a good case, you should see that the system is on the new Xen kernel.

    uname -a

    We see that now the kernel is called - 2.6.24-19-xen - just what we need.

    The Xen hypervisor launches the Ubuntu OS itself at its core. This command shows that the Xend daemon is up and running, starting the main system and showing its status. The system is ready for installation of guest OSs (hereinafter referred to as DomU) Continued

    # xm list
    Name ID Mem VCPUs State Time(s)
    Domain-0 0 2048 8 r----- 167826.8









    Also popular now: