From: martin f. krafft Date: Wed, 26 Feb 2014 13:23:52 +0000 (+0100) Subject: Fix invocation and auto-console connection X-Git-Url: https://git.madduck.net/code/vinst.git/commitdiff_plain/3e94d8ee6d8b6acd6711e891d543864293e00f97?hp=2f23291d531ff587ecdced6bd0431a060fc0b5a9 Fix invocation and auto-console connection --- 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"