X-Git-Url: https://git.madduck.net/code/vinst.git/blobdiff_plain/2f23291d531ff587ecdced6bd0431a060fc0b5a9..917844557b969b6d41fcfa2e87e7a8a2a37a915c:/vinst?ds=inline 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"