diff options
-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 |