diff options
author | Francisco Redondo Marchena <francisco.marchena@codethink.co.uk> | 2014-11-06 12:14:52 +0000 |
---|---|---|
committer | Francisco Redondo Marchena <francisco.marchena@codethink.co.uk> | 2015-01-22 12:46:21 +0000 |
commit | 3ba05a4d1a2aab0f0b46c9301e307587e380dbbc (patch) | |
tree | 490d86cc54a38f7b15e8aeb8a51c0f9ec7c3d58b /openstack-nova.configure | |
parent | 2e2cc89589ba739bcc983d2edbfcdea2dccc18a6 (diff) | |
download | definitions-3ba05a4d1a2aab0f0b46c9301e307587e380dbbc.tar.gz |
Enable libvirt services for openstack
Diffstat (limited to 'openstack-nova.configure')
-rw-r--r-- | openstack-nova.configure | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/openstack-nova.configure b/openstack-nova.configure index 445bc198..c04dd82c 100644 --- a/openstack-nova.configure +++ b/openstack-nova.configure @@ -41,5 +41,23 @@ sed -f "$ROOT"/etc/openstack-nova-setup.sed -i \ ########################################################################## -ln -s "/etc/systemd/system/openstack-nova-setup.service" \ +ln -sf "/etc/systemd/system/openstack-nova-setup.service" \ "$ROOT/etc/systemd/system/multi-user.target.wants/openstack-nova-setup.service" + +########################################################################## +# Enable libvirtd and libvirt-guests services +########################################################################## + +wants_dir="$ROOT"/usr/lib/systemd/system/multi-user.target.wants +mkdir -p "$wants_dir" +mkdir -p "$ROOT"/var/lock/subsys +ln -sf ../libvirtd.service "$wants_dir/libvirtd.service" +ln -sf ../libvirt-guests.service "$wants_dir/libvirt-guests.service" + +########################################################################## +# Change iprange for the interal libvirt to avoid clashes +# with eth0 ip range +########################################################################## + +sed -i "s/192\.168\.122\./192\.168\.1\./g" \ + "$ROOT"/etc/libvirt/qemu/networks/default.xml |