Difference between revisions of "XenServer/Install/XcpXapiOnPrecise"
(talk) |
|||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
+ | <!-- ## page was renamed from [[XenServer]]/Install/XenXcpXapiOnPrecise --> | ||
+ | <<[[TableOfContents]]()>> | ||
= Xen (XCP-XAPI) on Precise (Ubuntu 12.04) = | = Xen (XCP-XAPI) on Precise (Ubuntu 12.04) = | ||
This page should contain a sequence of operations to install an XCP-XAPI hypervisor on top of Precise, to get started with [[OpenStack]]. | This page should contain a sequence of operations to install an XCP-XAPI hypervisor on top of Precise, to get started with [[OpenStack]]. | ||
Line 7: | Line 9: | ||
Select only an OpenSSH Server when asked | Select only an OpenSSH Server when asked | ||
− | == | + | Other requirements: |
+ | * An empty partition - in my case `/dev/sda7` (should not contain LVM pv s) | ||
+ | * `eth0` connected to a network with a DHCP server | ||
+ | |||
+ | == XCP-XAPI with bridge networking == | ||
All the following commands must be executed as '''root''' | All the following commands must be executed as '''root''' | ||
+ | |||
Update your system | Update your system | ||
Line 40: | Line 47: | ||
</nowiki></pre> | </nowiki></pre> | ||
− | Modify your grub configuration, so on | + | Modify your grub configuration, so on next reboot you will be booting up xen |
<pre><nowiki> | <pre><nowiki> | ||
Line 47: | Line 54: | ||
</nowiki></pre> | </nowiki></pre> | ||
− | + | Keymap location fix | |
<pre><nowiki> | <pre><nowiki> | ||
Line 67: | Line 74: | ||
<pre><nowiki> | <pre><nowiki> | ||
sed -i "s/\\\$XEND status && return 1/return 0/" /etc/init.d/xend | sed -i "s/\\\$XEND status && return 1/return 0/" /etc/init.d/xend | ||
+ | </nowiki></pre> | ||
+ | |||
+ | Disable services | ||
+ | |||
+ | <pre><nowiki> | ||
+ | update-rc.d xendomains disable | ||
+ | </nowiki></pre> | ||
+ | |||
+ | Disable openvswitch | ||
+ | |||
+ | <pre><nowiki> | ||
+ | update-rc.d openvswitch-switch disable | ||
</nowiki></pre> | </nowiki></pre> | ||
Revision as of 14:17, 2 August 2012
<<TableOfContents()>>
Xen (XCP-XAPI) on Precise (Ubuntu 12.04)
This page should contain a sequence of operations to install an XCP-XAPI hypervisor on top of Precise, to get started with OpenStack.
Setup base system
Install a minimal system (Press F4 during the CD install)
Select only an OpenSSH Server when asked
Other requirements:
- An empty partition - in my case `/dev/sda7` (should not contain LVM pv s)
- `eth0` connected to a network with a DHCP server
XCP-XAPI with bridge networking
All the following commands must be executed as root
Update your system
apt-get update apt-get -y dist-upgrade
Select your desired network configuration, so that it won't ask for it
echo "xcp-networkd xcp-xapi/networking_type select bridge" | debconf-set-selections
Install XCP-XAPI and dependencies
apt-get install -y ntp ethtool rsync ssmtp strace gdb build-essential xcp-xapi
Select xapi as your default toolstack
echo 'TOOLSTACK=xapi' > /etc/default/xen
Change your network configuration to bridge
echo 'bridge' > /etc/xcp/network.conf
Modify your grub configuration, so on next reboot you will be booting up xen
mv /etc/grub.d/20_linux_xen /etc/grub.d/09_linux_xen update-grub2
Keymap location fix
ln -s qemu-linaro /usr/share/qemu
Configure your network
echo 'auto lo' > /etc/network/interfaces echo 'iface lo inet loopback' >> /etc/network/interfaces echo 'auto xenbr0' >> /etc/network/interfaces echo 'iface xenbr0 inet dhcp' >> /etc/network/interfaces echo ' bridge_ports eth0' >> /etc/network/interfaces
Hack xend init script
sed -i "s/\\\$XEND status && return 1/return 0/" /etc/init.d/xend
Disable services
update-rc.d xendomains disable
Disable openvswitch
update-rc.d openvswitch-switch disable
Reboot your server
reboot
Save your desired SR device to a shell variable
SRDEVICE=/dev/sda7
Create an SR from your SRDEVICE
. /etc/xcp/inventory SR=$(xe sr-create \ host-uuid=$INSTALLATION_UUID \ type=ext \ name-label='Local storage' \ device-config:device=$SRDEVICE)
Set the newly created SR to be the pool default
POOL=$(xe pool-list --minimal) sudo xe pool-param-set uuid=$POOL default-SR=$SR