Then make sure the metadata service is set up in iptables:
iptables -t nat -A PREROUTING -d 169.254.169.254/32 -p tcp -m tcp --dport 80 -j DNAT --to-destination 172.16.1.X:8773
Add that line to /etc/rc.local before “exit 0”.
Restart networking:
/etc/init.d/networking restart
Finish up the configuration file /etc/nova/nova.conf:
--network_manager=nova.network.manager.FlatManager
--fixed-range=172.16.1.0/24
--num-networks=1
--flat-injected=true
--logdir=/var/log/nova
--state_path=/var/lib/nova
--lock_path=/var/lock/nova
--verbose
--s3_host=172.16.1.20
--rabbit_host=172.16.1.20
--ec2_api=172.16.1.20
--ec2_url=http://172.16.1.20:8773/services/Cloud
--sql_connection=mysql://nova:[email protected]/nova
Restart everything else:
restart libvirt-bin; restart nova-network; restart nova-compute;
restart nova-api; restart nova-objectstore; restart nova-scheduler
Make an admin user and project (whatever you want to call it):
/usr/bin/nova-manage user admin {user_name}
/usr/bin/nova-manage project create {project_name} {user_name}
Finish the guide from this point on:
Creating Certificates
And you should be good to go.
Comments