NOTE: This documentation is for the Rackspace Private Cloud Software v. 2.0 ISO. Documentation for the newest version of Rackspace Private Cloud Software can be found in the Getting Started section.
This section discusses the procedure for installing Rackspace Private Cloud Software on KVM on a Linux host.
CAUTION: Rackspace strongly recommends that you install Rackspace Private Cloud Software on physical hardware nodes (bare metal) for best results. Installation on virtual platforms should only be performed for evaluation purposes.
An all-in-one installation is available, in which the controller and compute components are installed on the same device. However, for best results, we recommend a minimum of two nodes.
You should be running as root in a Linux distro on a host machine that meets the following requirements:
These instructions are written for Ubuntu 12.04.
Before you begin, there are several steps you must take to prepare KVM on the host machine.
You must download, install, and compile KVM from the latest source, enable nested hypervisors, and enable and configure VDE.
$sudo apt-get update$sudo apt-get install make uml-utilities vde2 libvde-dev libvdeplug2-dev \ libsdl1.2-dev libglib2.0-dev zlib1g-dev libpci-dev -y
$wget -O /tmp/kvm.tar.gz \ http://sourceforge.net/projects/kvm/files/latest/download?source=files$tar xvzf /tmp/kvm.tar.gz -C /tmp/$cd /tmp/qemu*
$./configure --target-list=x86_64-softmmu --enable-vde$make && sudo make install
$ qemu-system-x86_64 --versionprocessor, use intel or amdas is appropriate for your device.$sudo modprobe kvm$sudo modprobe kvm_$processorecho "kvm" >> /etc/modules$echo "kvm_$processor" >> /etc/modulessudo chmod o+rw /dev/kvm
$ modprobe kvm_processor nested=1Alternatively, you can enable nesting by adding the following setting to /etc/default/qemu-kvm:
KVM_NESTED="nested=1"
$ cat /sys/module/kvm_processor/parameters/nested$if [ -f /etc/qemu-ifup ] ; then sudo mv /etc/qemu-ifup /etc/qemu-ifup.bak ; fi$if [ -f /etc/qemu-ifdown ] ; then sudo mv /etc/qemu-ifdown /etc/qemu-ifdown.bak ; fi$sudo touch /etc/qemu-ifup ; sudo chmod 755 /etc/qemu-ifup$sudo touch /etc/qemu-ifdown ; sudo chmod 755 /etc/qemu-ifdown$sudo echo '#!/bin/sh' > /etc/qemu-ifup$sudo echo '#!/bin/sh' > /etc/qemu-ifdown
Once KVM has been configured, you must grant KVM access to a tap device. The following procedure describes the KVM host configuration with a tap device called tap0 that has the following network configuration:
Use your own networking information when preparing your host.
tap0.
$tunctl -t tap0$ifconfig tap0 up$ifconfig tap0 10.80.1.1 netmask 255.255.255.0
$ vde_switch --sock /tmp/vde_tap0.sock -d --tap tap0eth0) to the KVM virtual network.$iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE$iptables -I INPUT 1 -i tap0 -j ACCEPT$iptables -A FORWARD -i tap0 -s 10.80.1.0/255.255.255.0 -j ACCEPT
rackspacecloud_controllerto use for the controller node.$ qemu-img create -f qcow2 rackspacecloud_controller.qcow2 30Gtap0adapter.
Note that for Intel architecture, you might need to add the flag -enable-kvm -cpu qemu64,+vmx to the qemu-system-x86_64 command.
$export CONTROLLER_UUID=`uuidgen`$export CONTROLLER_MAC=`printf '52:54:BE:EF:%02X:%02X\n' $((RANDOM%256)) $((RANDOM%256))`$/usr/local/bin/qemu-system-x86_64 \-uuid $CONTROLLER_UUID \-drive file=rackspacecloud_controller.qcow2,if=virtio \-cdrom <rackspace_private_cloud_iso>.iso \-boot d -m 8192 \-net nic,macaddr=$CONTROLLER_MAC,model=virtio,vlan=1 \-net tap,vlan=1 -net vde,sock=/tmp/vde_tap0.sock,vlan=1 \-vnc :1 &
Controller.admin user. You will use this admin username and password to access the API and the dashboard.demo or enter your own and provide a password at the prompt. This user will not have admin privileges, but will be able to perform basic OpenStack functions, such as creating instances from images. Creating the user will also automatically create a project (also known as a tentant) for this user.Jane DoejdoemysecurepasswordAt this point, it will take approximately 5-10 minutes for the Ubuntu operating system installation to complete.
http://proxy_ip_address:proxy_ip_port. If you do not have a proxy, press enter to skip this step and leave the proxy information blank.At this point, the installation process will run for approximately 30 minutes without the need for user intervention. The device will reboot during the installation process. You will see a screen with the Rackspace Private Cloud logo, followed by a screen that displays a progress bar; you can use Ctrl+Alt+F2 to toggle between the progress bar screen and a Linux TTY screen (Ctrl+Alt+Fn+F2 on a Mac). You can follow the log during installation by switching to the correct TTY screen and viewing the log in /var/log/post-install.log.
After the installation is complete, you can view the install log by logging into the operating system with the username and password that you configured in Step 12. The log is stored in /var/log/post-install.log.
Note: You may see an unhandled rdmsr error when installing or rebooting the controller node. This is a KVM warning that may be safely ignored.
Once the installation is done, you can change the boot flag in the qemu command to be -boot c instead of -boot d to boot from the local disk instead of the ISO.
CAUTION: There is no password recovery system. Please do not forget your admin password.
rackspacecloud_computeto use for the controller node.$ qemu-img create -f qcow2 rackspacecloud_compute.qcow2 30Gtap0adapter.
Note that for Intel architecture, you might need to add the flag -enable-kvm -cpu qemu64,+vmx to the qemu-system-x86_64 command.
$export COMPUTE_UUID=`uuidgen`$export COMPUTE_MAC=`printf '52:54:BE:EF:%02X:%02X\n' $((RANDOM%256)) $((RANDOM%256))`$/usr/local/bin/qemu-system-x86_64 \-uuid $COMPUTE_UUID \-drive file=rackspacecloud_compute.qcow2,if=virtio \-cdrom <rackspace_private_cloud_ISO>.iso \-boot d -m 8192 \-net nic,macaddr=$COMPUTE_MAC,model=virtio,vlan=1 \-net tap,vlan=1 -net vde,sock=/tmp/vde_tap0.sock,vlan=1 \-vnc :2 &
Compute to install a compute node.Jane DoejdoemysecurepasswordAt this point, it will take approximately 5-10 minutes for the Ubuntu operating system installation to complete.
http://proxy_ip_address:proxy_ip_port. If you do not have a proxy, press enter to skip this step and leave the proxy information blank.At this point, the installation process will run for approximately 20 minutes without the need for user intervention. As with the controller node installation, the device will reboot during the installation process. You will see a screen with the Rackspace Private Cloud logo, followed by a screen that displays a progress bar; you can use Ctrl+Alt+F2 to toggle between the progress bar screen and a Linux TTY screen (Ctrl+Alt+Fn+F2 on a Mac). You can follow the log during installation by switching to the correct TTY screen and viewing the log in /var/log/post-install.log.
After the installation is complete, you can view the install log by logging into the operating system with the username and password that you configured during the Controller installation. The log is stored in /var/log/post-install.log.
Once the installation is done, you can change the boot flag in the qemu command to be -boot c instead of -boot d to boot from the local disk instead of the ISO.
© 2011-2013 Rackspace US, Inc.
Except where otherwise noted, content on this site is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License

2 Comments
NIC address
ip_forward
Add new comment