From 93e2ff55bf50b2ea98422d9df50d17cb9050c85e Mon Sep 17 00:00:00 2001 From: Alexandru Avadanii Date: Sat, 15 Jul 2017 18:18:55 +0200 Subject: 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 --- mcp/scripts/lib.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'mcp') 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 } -- cgit 1.2.3-korg