Deploying an OpenStack Compute node

nova + neutron / compute

OpenStack packages for Ubuntu,

apt install software-properties-common
add-apt-repository cloud-archive:pike
apt update
apt full-upgrade

note. fix the pike version according to your ubuntu release

apt install nova-compute neutron-linuxbridge-agent
#apt install python-openstackclient

mv /etc/nova/nova.conf /etc/nova/nova.conf.dist
mv /etc/neutron/neutron.conf /etc/neutron/neutron.conf.dist
mv /etc/neutron/plugins/ml2/linuxbridge_agent.ini /etc/neutron/plugins/ml2/linuxbridge_agent.ini.dist
cd ~/
git clone
#git clone ssh://
cd ~/bin/nova/

my_ip = x.x.x.x (THE MANAGEMENT IP)

cd ~/bin/bridge/
vi linux_bridge

physical_interface_mappings = provider:xenbr0 (THE BRIDGE YOU WANNA USE)

cd ~/bin/

grep ^log_dir /etc/nova/nova.conf
mv -f /etc/nova/nova.conf /etc/nova/nova.conf.tmp
sed '/^log_dir/d' /etc/nova/nova.conf.tmp > /etc/nova/nova.conf
rm -f /etc/nova/nova.conf.tmp

grep ^connection /etc/neutron/neutron.conf
mv -f /etc/neutron/neutron.conf /etc/neutron/neutron.conf.tmp
sed '/^connection/d' /etc/neutron/neutron.conf.tmp > /etc/neutron/neutron.conf
rm -f /etc/neutron/neutron.conf.tmp


vi /etc/nova/nova.conf
vi /etc/neutron/neutron.conf
vi /etc/neutron/plugins/ml2/linuxbridge_agent.ini

cat /etc/nova/nova-compute.conf

#tail -n0 -F /var/log/* /var/log/*/*
service nova-compute restart
service neutron-linuxbridge-agent restart