Skip to content

Instantly share code, notes, and snippets.

@yeonki-choi
yeonki-choi / openstack_ironic_install.sh
Last active August 29, 2015 14:05
Openstack Ironic (Bare metal service) Installation script on controller node.
##### Downloand and install ironic ##########################################
[root@controller01 ~]# yum install python-devel openssl-devel python-pip mysql-devel libxml2-devel libxslt-devel postgresql-devel git git-review libffi-devel gcc libgcc
[root@controller01 ~]# git clone https://github.com/openstack/ironic.git
[root@controller01 ~]# cd ironic
[root@controller01 ironic]# ls -al
total 68
-rw-r--r-- 1 root root 17 Aug 8 10:53 babel.cfg
-rw-r--r-- 1 root root 521 Aug 8 10:53 CONTRIBUTING.rst
@yeonki-choi
yeonki-choi / openstack_adroidx86-gui.sh
Last active August 5, 2020 08:15
Running andoridx86 4.4 GUI on Openstack
###########################################################################
# Running andoridx86 4.4 GUI on Openstack.
###########################################################################
# Download iso image
$ wget http://sourceforge.net/projects/android-x86/files/Release%204.4/android-x86-4.4-r1.iso/download
$ mv download android-x86-4.4-r1.iso
# I crated a VM named "andro2" in Virutal Machine Manager on Ubuntu 12.04.3
@yeonki-choi
yeonki-choi / openstack_adroidx86.sh
Last active August 29, 2015 14:05
Nova boot an android-x86 instance.
# Select network
$ nova net-list
+--------------------------------------+---------+------+
| ID | Label | CIDR |
+--------------------------------------+---------+------+
| 0a31d3e5-fdcf-457a-afd1-9664558c80e8 | int-net | - |
| 86fae9cf-134f-4876-b9b0-13280e3ae79e | ext-net | - |
+--------------------------------------+---------+------+
$ net_id=$(nova net-list | grep int-net | awk '{print $2}')
# Download Chef DK(Development Kit)
# Chef DK includes berkshlef which is a tool of managing dependencies of cookbooks.
[root@chef-dk ~] wget https://opscode-omnibus-packages.s3.amazonaws.com/el/6/x86_64/chefdk-0.2.0-2.el6.x86_64.rpm
[root@chef-dk ~] chmod +x chefdk-0.2.0-2.el6.x86_64.rpm
[root@chef-dk ~] rpm -Uvh ./chefdk-0.2.0-2.el6.x86_64.rpm
# Clone openstack-chef-repo for icehouse (Stackforge)
[root@chef-dk ~] mkdir -p chef-repo/cookbooks
[root@chef-dk ~] cd chef-repo/cookbooks
[root@chef-dk cookbooks] git clone https://github.com/yeonki-choi/openstack-chef-repo.git