aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xkvmx6
1 files changed, 6 insertions, 0 deletions
diff --git a/kvmx b/kvmx
index f093984..7db37b6 100755
--- a/kvmx
+++ b/kvmx
@@ -401,6 +401,10 @@ function kvmx_up {
cdrom_opts="-cdrom $cdrom"
fi
+ if [ ! -z "$boot" ]; then
+ boot_opts="-boot $boot_opts"
+ fi
+
if [ -z "$net" ] || [ "$net" == "user" ]; then
net_opts="user,hostfwd=tcp:127.0.0.1:$SSH-:22,hostfwd=udp:127.0.0.1:$XDMCP_PORT-:177$hostfwd -net nic,model=$nic_model"
elif [ "$net" == "tap" ]; then
@@ -437,6 +441,7 @@ function kvmx_up {
-smp $smp -cpu host -balloon virtio \
$sound_opts \
$cdrom_opts \
+ $boot_opts \
-net $net_opts \
$qemu_opts &> $LOGFILE < /dev/null &
@@ -1655,6 +1660,7 @@ function kvmx_install {
# Install using kvmx_up
install=1
cdrom=$media
+ boot="once=dc"
kvmx_up
}