mcp: lib.sh: virt-install --noautoconsole 69/37569/1
authorAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Sat, 15 Jul 2017 16:18:55 +0000 (18:18 +0200)
committerAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Sat, 15 Jul 2017 16:22:34 +0000 (18:22 +0200)
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>
mcp/scripts/lib.sh

index fb3fc99..679b997 100644 (file)
@@ -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
 }