6. issues
# init 0
$ vagrant up
...
The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!
mount -t vboxsf -o uid=`id -u vagrant`,gid=`id -g vagrant` v-root /vagrant
@woorea
Saturday, March 23, 2013
7. solution
$ vagrant ssh
# sudo -i
# apt-get install make
# /etc/init.d/vboxadd setup
# init 0
$ vagrant up
$ vagrant ssh
@woorea
Saturday, March 23, 2013
8. OpenStack Grizzly
# vi /etc/sysctl.conf
net.ipv4.ip_forward=1
# sysctl -p
@woorea
Saturday, March 23, 2013
9. Network Time Protocol
# apt-get install ntp
# vi /etc/ntp.conf
server 127.127.0.1
fudge 127.127.0.1 stratum 10
# service ntp restart
@woorea
Saturday, March 23, 2013
11. Network Time Protocol
#iptables -A input -p udp --dport 123 -j ACCEPT
#iptables -A output -p udp --sport 123 -j ACCEPT
@woorea
Saturday, March 23, 2013
12. Network Time Protocol
#/etc/cron.daily/ntpdate
#!/bin/sh
# Current System Time < NTP
ntpdate <my_ntp_server>
# Hardware Clock < Current System Time.
hwclock -w
@woorea
Saturday, March 23, 2013
13. MySQL
# apt-get install mysql-server python-mysqldb
MySQL password : secret0
# vi /etc/mysql/my.cnf
bind-address = 0.0.0.0
# service mysql restart
@woorea
Saturday, March 23, 2013
16. Keystone
# apt-get install keystone
# mysql -u root -psecret0
mysql> create database keystone;
mysql> grant all privileges on keystone.* to keystone@"localhost" identified by "secret0";
mysql> exit
# vi /etc/keystone/keystone.conf
connection = mysql://keystone:secret0@localhost/keystone
@woorea
Saturday, March 23, 2013
31. Glance
# apt-get install glance
# mysql -u root -psecret0
mysql> create database glance;
mysql> grant all privileges on glance.* to glance@"localhost" identified by "secret0";
mysql> exit
@woorea
Saturday, March 23, 2013
40. glance index
# glance index
ID Name Disk Format Container Format Size
------------------------------------ ----------- ------------ ----------------- ---------
1e6faa46-788f-412d-aa22-78660e78cc00 cirros64 qcow2 bare 13147648
@woorea
Saturday, March 23, 2013
44. # mysql -u root -psecret0
mysql> create database cinder;
mysql> grant all privileges on cinder.* to cinder@"localhost" identified by "secret0";
mysql> exit
@woorea
Saturday, March 23, 2013
54. Nova
# apt-get install nova-api
nova-conductor
nova-compute-qemu
nova-scheduler
nova-network
@woorea
Saturday, March 23, 2013
55. Nova
# mysql -u root -psecret0
mysql> create database nova;
mysql> grant all privileges on nova.* to nova@"localhost" identified by "secret0";
mysql> exit
@woorea
Saturday, March 23, 2013
56. Nova
# keystone user-create --name nova --pass secret0 --email luis@woorea.es
# keystone user-role-add --tenant service --user nova --role admin
@woorea
Saturday, March 23, 2013
57. Nova
# keystone service-create --name nova
--type compute --description "Compute Service"
# keystone endpoint-create --region madrid
--service_id 5fa2e4c0d2bf4f7ca13ced7bbf1679f3
--publicurl "http://192.168.0.254:8774/v2/%(tenant_id)s"
--adminurl "http://locahost:8774/v2/%(tenant_id)s"
--internalurl "http://localhost:8774/v2/%(tenant_id)s"
@woorea
Saturday, March 23, 2013
61. Nova
# service nova-api restart
# service nova-conductor restart
# service nova-scheduler restart
# service nova-network restart
# service nova-compute restart
@woorea
Saturday, March 23, 2013
65. nova image-list
# nova image-list
+--------------------------------------+----------+--------+--------+
| ID | Name | Status | Server |
+--------------------------------------+----------+--------+--------+
| 1e6faa46-788f-412d-aa22-78660e78cc00 | cirros64 | ACTIVE | |
+--------------------------------------+----------+--------+--------+
@woorea
Saturday, March 23, 2013