From 3ba05a4d1a2aab0f0b46c9301e307587e380dbbc Mon Sep 17 00:00:00 2001 From: Francisco Redondo Marchena Date: Thu, 6 Nov 2014 12:14:52 +0000 Subject: Enable libvirt services for openstack --- openstack-nova.configure | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) (limited to 'openstack-nova.configure') 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 -- cgit v1.2.1