X-Git-Url: https://git.madduck.net/code/vinst.git/blobdiff_plain/d97649fb0bfe21f6cc37571d47ae447083f7bb94..3e94d8ee6d8b6acd6711e891d543864293e00f97:/vinst diff --git a/vinst b/vinst index 73d50c4..51a87e9 100755 --- a/vinst +++ b/vinst @@ -127,12 +127,14 @@ 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 pool=default,size=$SIZE \ + --disk vol=$STORAGE_POOL/virt-$HOSTNAME \ -w bridge=$BRIDGE \ --graphics=vnc \ --serial=pty \ @@ -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"