aboutsummaryrefslogtreecommitdiffstats
path: root/mcp
diff options
context:
space:
mode:
authorAlexandru Avadanii <Alexandru.Avadanii@enea.com>2017-07-15 18:18:55 +0200
committerAlexandru Avadanii <Alexandru.Avadanii@enea.com>2017-07-15 18:22:34 +0200
commit93e2ff55bf50b2ea98422d9df50d17cb9050c85e (patch)
treee6069be654e6e30a5990280586d5137cacf949aa /mcp
parent08e52d4ee0e5ecb6caf033a9ecfbb762c98d400e (diff)
mcp: lib.sh: virt-install --noautoconsole
When X server is available, virt-install tries opening virt-viewer automatically (for each newly created VM), which blocks the deployment until the user closes the virt-viewer window. Without X, virt-install just throws a warning and moves on. Fix both of the above by passing the "--noautoconsole" argument to virt-install. Change-Id: I7df839aa902f7629dec11d24905fc05d1070f9db Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
Diffstat (limited to 'mcp')
-rw-r--r--mcp/scripts/lib.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/mcp/scripts/lib.sh b/mcp/scripts/lib.sh
index fb3fc990b..679b997b7 100644
--- a/mcp/scripts/lib.sh
+++ b/mcp/scripts/lib.sh
@@ -66,7 +66,8 @@ create_vms() {
--disk path=$(pwd)/images/mcp_${node}.qcow2,format=qcow2,bus=virtio,cache=none,io=native \
--os-type linux --os-variant none \
--boot hd --vnc --console pty --autostart --noreboot \
- --disk path=$(pwd)/images/mcp_${node}.iso,device=cdrom
+ --disk path=$(pwd)/images/mcp_${node}.iso,device=cdrom \
+ --noautoconsole
done
}