Created
February 28, 2015 03:57
-
-
Save razzius/a4309d719d87a386497d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo "preparing package for RT-Xen" | |
#installing dependencies | |
sudo apt-get update | |
sudo apt-get install -y aptitude | |
sudo aptitude install -y emacs libaio-dev ssh git bcc bin86 gawk bridge-utils iproute libcurl3 libcurl4-openssl-dev bzip2 module-init-tools transfig tgif texinfo texlive-latex-base texlive-latex-recommended texlive-fonts-extra texlive-fonts-recommended pciutils-dev mercurial make gcc libc6-dev zlib1g-dev python python-dev python-twisted libncurses5-dev patch libsdl-dev iasl libbz2-dev e2fslibs-dev git-core uuid-dev ocaml ocaml-findlib libx11-dev bison flex xz-utils libyajl-dev gettext gcc-multilib libglib2.0-dev libpixman-1-dev libvirt-bin python-pexpect sshpass subversion nfs-kernel-server iperf | |
# The git repo | |
git clone https://github.com/PennPanda/xenproject.git | |
cd xenproject | |
git checkout rtxen-v1.5-RFC-v2 | |
./configure | |
sudo make dist | |
sudo make install | |
sudo ldconfig | |
sudo wget http://seas.upenn.edu/~yangli2/scripts/09_custom -O /etc/grub.d/09_custom | |
sudo chmod +x /etc/grub.d/09_custom | |
uuid_info=$(blkid | grep sda1) | |
uuid_pieces=($(echo $uuid_info | tr "\"" " ")) | |
echo ${uuid_pieces[ 2 ]} > disk_uuid | |
#WARNING, this is hacking, the following two commands needs to be called after reboot into Xen | |
sudo echo "modprobe xen-evtchn" >> /root/.bashrc | |
sudo echo "/etc/init.d/xencommons start" >> /root/.bashrc | |
################END of hacking############### | |
echo "Done." | |
echo "To finish the installation, replace ${DISK_UUID} in '/etc/grub.d/09_custom' with your uuid (see local file 'disk_uuid'), then do update-grub and reboot." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment