summaryrefslogtreecommitdiff
path: root/openstack-nova.configure
diff options
context:
space:
mode:
authorFrancisco Redondo Marchena <francisco.marchena@codethink.co.uk>2014-11-06 12:14:52 +0000
committerFrancisco Redondo Marchena <francisco.marchena@codethink.co.uk>2015-02-11 18:30:27 +0000
commit088bca2f11ba29ffa6b4eb0b74a0e5e026951fae (patch)
treefa9504edcbbc1c7a1ccbe01bb20eda0550e91d81 /openstack-nova.configure
parent896adf306d7386a749fb984b9eb48498f049ce0d (diff)
downloaddefinitions-088bca2f11ba29ffa6b4eb0b74a0e5e026951fae.tar.gz
Enable libvirt services for openstack
Diffstat (limited to 'openstack-nova.configure')
-rw-r--r--openstack-nova.configure20
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