From: Alexandru Avadanii Date: Sat, 15 Jul 2017 16:18:55 +0000 (+0200) Subject: mcp: lib.sh: virt-install --noautoconsole X-Git-Tag: opnfv-5.0.RC1~169 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F69%2F37569%2F1;p=fuel.git 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 --- 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 }