From e184e10bce2f4df930706a854f0f32d21d661d10 Mon Sep 17 00:00:00 2001
From: Mitchell E Berger <mitchb@mit.edu>
Date: Thu, 17 May 2018 01:55:43 -0400
Subject: [PATCH] Turn on the relocation server

---
 debian/changelog       |    3 ++-
 templatize-xend-config |    1 +
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index d01345b..3a715ce 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -8,8 +8,9 @@ invirt-xen-config (0.0.54) unstable; urgency=low
     primary IP, set up routing to get it to the VM, and arp for it.
     Also, cut out the nonsense with backgrounding arpspoof, sleeping, and
     killing it; we have the technology for 'timeout'.
+  * templatize-xend-config: explicitly turn on the relocation server
 
- -- Mitchell Berger <mitchb@mit.edu>  Wed, 16 May 2018 03:20:00 -0400
+ -- Mitchell Berger <mitchb@mit.edu>  Thu, 17 May 2018 01:55:00 -0400
 
 invirt-xen-config (0.0.53) unstable; urgency=low
 
diff --git a/templatize-xend-config b/templatize-xend-config
index 1dc1a3a..a660b13 100755
--- a/templatize-xend-config
+++ b/templatize-xend-config
@@ -17,6 +17,7 @@ if internal_ip is None:
 %>
 EOF
 
+s/^\#?\(xend-relocation server [a-z]*\)/(xend-relocation-server yes)/m or die;
 s/^\#?\(xend-relocation-address ''\)/(xend-relocation-address '\${internal_ip}')/m or die;
 s/^\#?\(xend-relocation-hosts-allow '[^']*'\)/(xend-relocation-hosts-allow '')/m or die;
 # s/^(\# )?\(network-script network-bridge\)/(network-script 'network-bridge')/m or die;
-- 
1.7.9.5