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:xen [2014/03/24 23:57]
admin [Configure PCI pass-through Parameters]
hypervisor:base:xen [2014/04/03 02:07] (current)
admin Links adapted because of a move operation
Line 1: Line 1:
 ====== Xen ====== ====== Xen ======
 +<WRAP center round important 60%>
 +In case you want to install the full XCP-XAPI toolstack, don't go any further and read the [[xcp-xapi|XCP-XAPI]] section.
 +</​WRAP>​
 +
 [[https://​wiki.debian.org/​Xen]] [[https://​wiki.debian.org/​Xen]]
  
Line 27: Line 31:
 ===== Configure Networking ===== ===== Configure Networking =====
  
-In order to give network access to guest domains it is necessary to configure ​the domain 0 network ​appropriately. The most common ​configuration ​is to use a software bridge.+Please refer to the [[:​hypervisor:​base:​network|Network ​configuration]] section.
  
-It is recommended that you manage your own network bridge using the [[https://​wiki.debian.org/​BridgeNetworkConnections|Debian network bridge]]. The Xen wiki page [[http://​wiki.xen.org/​wiki/​Host%20Configuration/​Networking|Host Configuration/​Networking]] also has some useful information. The Xen supplied network scripts are not always reliable and will be removed from a later version. They are disabled by default in Debian'​s packages.+===== Reliable Setup =====
  
-If you have a router that assigns ip addresses through dhcp, the following ​is a working example of the **/​etc/​network/​interfaces** file using bridge-utils software. +To avoid randomunexplained performance issues and failures in a XEN virtualization environment ​the following ​configuration items should always be checked; ​ Correspondingly,​ before troubleshooting ANY XEN Host or VM issue verify ​the XEN Host configuration as follows:
-<​code>​ +
-> nano /​etc/​network/​interfaces+
  
-#The loopback network interface +  * "Lock down" the amount of memory assigned to dom0.  
-auto lo +  * Set the amount of memory Dom0 is given at boot time 
-iface lo inet loopback+  * Disable ballooning 
 +  * Do not restrict dom0 to a single VCPU 
 +  * Only use Logical Volume Manager (LVM) on Dom0 or DomU, but not both
  
-iface eth0 inet manual +More (for SUSE)[[http://www.novell.com/support/kb/doc.php?​id=3559698]] ​ 
- +==== Configure ​Dom0 Memory ====
-auto xenbr0 +
-iface xenbr0 inet dhcp +
-   ​bridge_ports eth0 +
- +
-#other possibly useful options in a virtualized environment +
-  #bridge_stp off       # disable Spanning Tree Protocol +
-  #​bridge_waitport 0    # no delay before a port becomes available +
-  #bridge_fd 0          # no forwarding delay +
-</​code>​ +
- +
-activate your changes like this: +
-<​code>​ +
-> ifdown eth0 +
-> killall dhclient +
-> ifup xenbr0 +
-> brctl show +
- +
-bridge name bridge id       STP enabled interfaces +
-br-lan ​     8000.xxxxxxxxxxxx ​  ​no ​     eth0 +
-</code> +
- +
-You should see your new IP address on ifconfig br-lan, and you should still be able to ping out (e.gping 8.8.8.8 ​and resolve: ping google.com). +
- +
- +
-===== Configure ​Domain 0 Memory ​=====+
  
 On a system which is dedicated to running Xen guests it is better to instead give dom0 some static amount of RAM and to disable ballooning, here 1024MB. On a system which is dedicated to running Xen guests it is better to instead give dom0 some static amount of RAM and to disable ballooning, here 1024MB.
Line 98: Line 77:
 At this point you should **reboot** so that these changes take effect. At this point you should **reboot** so that these changes take effect.
  
 +=== Ensure that Xen is running ===
 +<​code>​
 +> cat /​proc/​xen/​capabilities
 +</​code>​
 +Should display “control_d”
 ===== Configure guest behaviour on host reboot ===== ===== Configure guest behaviour on host reboot =====