From 3e94d8ee6d8b6acd6711e891d543864293e00f97 Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Wed, 26 Feb 2014 14:23:52 +0100 Subject: [PATCH] Fix invocation and auto-console connection --- vinst | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/vinst b/vinst index e931fc3..51a87e9 100755 --- a/vinst +++ b/vinst @@ -127,9 +127,11 @@ else _eof fi -exit 0 -exec virt-install --connect=$QEMU_URI \ +set -v +virsh --connect=$QEMU_URI vol-create-as $STORAGE_POOL virt-$HOSTNAME ${DISK}G + +virt-install --connect=$QEMU_URI \ -n $HOSTNAME \ -r $RAM \ --disk vol=$STORAGE_POOL/virt-$HOSTNAME \ @@ -141,6 +143,9 @@ exec virt-install --connect=$QEMU_URI \ -l $BASEDIR/installer-amd64 \ --initrd-inject=$BASEDIR/preseed/$SUITE/preseed.cfg \ --initrd-inject=$tmpdir/commands.tar \ + --prompt --noautoconsole --autostart \ --extra-args="$extra_args" \ - --autostart \ "$@" + +virsh --connect=$QEMU_URI console $HOSTNAME +virsh --connect=$QEMU_URI "start $HOSTNAME; console $HOSTNAME" -- 2.39.5