diff options
-rwxr-xr-x | kvmx | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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 } |