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
hypervisor:base [2014/03/24 17:59]
admin [Basic Configuration]
hypervisor:base [2015/03/04 23:10] (current)
admin [Summary]
Line 1: Line 1:
-====== Hypervisor Layer ====== +====== ​Xen Hypervisor Layer ====== 
-As the hypervisor layer, we'll first try to setup a Debian Wheezy ​(7.4.0) base OS using [[http://​www.xenproject.org/​|Xen]] and [[http://​virt-manager.org/​|virt-manager]].\\ +As the hypervisor layer, we'll first try to setup a Debian Wheezy ​based OS using [[http://​www.xenproject.org/​|Xen]] and XAPI.
-Later, for production server deployment, we might try to go for some other configuration,​ in particular using [[http://​www.ovirt.org|oVirt]] will be one of our goals.+
  
-===== Debian Installation ===== +We are forced to stick with Wheezy since XAPI isn't available under Jessie anymore. 
-[[https://​nsrc.org/​workshops/​2014/​sanog23-virtualization/​raw-attachment/​wiki/​Agenda/​ex-debian-kvm-libvirt.htm]] +==== Summary ​==== 
- +  ​* ​[[.:base:xcp-xapi|XCP-XAPI]] 
-The latest Debian installer was used, booted from a USB stick.\\ +  ​* ​[[:hypervisor:​base:​network|Network configuration]] 
-In case you have no idea how to make a bootable Debian installer USB stick, please refer to the [[http://​www.debian.org/​releases/​stable/​i386/​ch04s03.html.en|Debian documentation on the subject]], our attempt was made using the latest ​[[http://​http.us.debian.org/​debian/​dists/​wheezy/​main/​installer-i386/​current/​images/​netboot/​mini.iso|netboot mini.iso]] image. +  * [[:hypervisor:​base:​xen|Xen]] 
- +  ​* ​[[.:base:lxde|LXDE]] 
-We won't go into the details of installing Debian, following are simply a few notes that might be of interest during this step. +  * [[:hypervisor:base:video-driver|Video Card Driver]]
- +
-=== Desktop Environment === +
-Although choosing the right desktop environment shouldn'​t be a main preoccupation,​ we decided to go for KDE on our first trial install. +
- +
-=== Additional Packages === +
-Also, you might want to add some proprietary drivers on the the space that is left free on your USB key. In our case, the Realtek WiFi interface required the [[https://​packages.debian.org/​fr/​wheezy/​firmware-realtek|rtlwifi/​rtl8192cfw.bin]] package to be present.\\ +
-You'll need to create a new partition in the free space left, using GParted is one of the easiest way to do this. +
- +
-Once the packages are present on this extra space, it seems the Debian installer automatically detects them and uses them. +
- +
-=== Partitionning === +
-In the case of the hypervisor layer, what we'd like is to have as much disk space as possible available for the virtual machines. Therefore we'll apply the following partition schema when the Debian installer asks for the partition method: +
- +
-Partitioning method: Manual\\ +
-Partition disks: Select your main HD (to delete all existing partitions)\\ +
-Create new partitions: Select pri/log FREE SPACE, then create new partition\\ +
-Create a 1GB for /boot filesystem -> Primary -> Beginning -> Ext4 journaling file system, Mount point: /boot -> Label: Boot -> Bootable flag: on -> Done\\ +
- +
-Repeat partition setup for another one\\ +
-Use full space available -> Primary -> Use as: Physical volume for LVM -> Done +
- +
-**Configure the Logical Volume Manager**\\ +
-Write changes to disk and configure LVM?: Yes\\ +
-Create volume group: xenvg +
-Select devices: (select only the LVM partition (/​dev/​sdX2) +
- +
-**Create logical volume**\\ +
-Volume group: xenvg\\ +
-Logical volume name: root\\ +
-Logical volume size: 4GB +
- +
-**Create logical volume**\\ +
-Volume group: xenvg\\ +
-Logical volume name: swap\\ +
-Logical volume size: 4GB +
- +
-**Create logical volume**\\ +
-Volume group: xenvg\\ +
-Logical volume name: var\\ +
-Logical volume size: 20GB +
- +
-Finish +
- +
-=== Set mount points === +
-On top of the list, select the first entry +
-<​code>​ +
-LVM  VG  xenvg, LV root - 4.0 GB Linux device-mapper (linear) +
-     #​1 ​         4.0GB +
-</​code>​ +
-Use as: Ext4 -> Mount point: / -> Done +
- +
-Second: ​**LV swap** entry: +
-Use asSwap -> Done +
- +
-Third: **LV var**: +
-Use asExt4 -> Mount point: /var -> Done +
- +
-**Finish partitioning and write changes to disk** +
- +
-=== Software selection === +
-[*SSH server\\ +
-[*Laptop\\ +
-[*] Standard system utilities\\ +
- +
-=== GRUB === +
-Install the GRUB boot loader to the master boot record? Yes +
- +
-**Boot into the new system** +
- +
-==== Basic Configuration ==== +
-Login as root +
- +
-=== remove cdrom from sources === +
- +
-<​code>​ +
-> nano /​etc/​apt/​sources.list +
-</​code>​ +
- +
-Comment out any line which begins "deb cdrom:​..."​ by inserting a hash (#) in front of it.\\ +
-Save the file (ctrl-X). +
- +
-=== Install sudo and create the '​nsrc'​ user into the sudo group === +
-<​code>​ +
-> apt-get update +
-> apt-get install sudo +
-> usermod -G sudo -a user_name (chosen during install process)  +
-</​code>​ +
- +
-==== Network Configuration ==== +
- +
-Your computer probably has received an IP address from a DHCP server, let's configure a static address for it, so the VMs can share the same network interface:​ +
- +
-<​code>​ +
-> nano /​etc/​hosts +
-</​code>​ +
- +
-add 198.168.1.251 ​      ​your_host.your_hostname.com ​      ​your_hostname +
- +
-=== Install additional networking packages === +
-<​code>​ +
-> apt-get install bridge-utils vlan +
-</​code>​+