aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xkvmx5
1 files changed, 5 insertions, 0 deletions
diff --git a/kvmx b/kvmx
index 37d35b5..03687b1 100755
--- a/kvmx
+++ b/kvmx
@@ -397,6 +397,10 @@ function kvmx_up {
shared_folders_cache="none"
fi
+ if [ ! -z "$cdrom" ]; then
+ cdrom_opts="-cdrom $cdrom"
+ 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
@@ -432,6 +436,7 @@ function kvmx_up {
-chardev "socket,id=serial0,path=$CONSOLEFILE,server,nowait" -device isa-serial,chardev=serial0 \
-smp $smp -cpu host -balloon virtio \
$sound_opts \
+ $cdrom_opts \
-net $net_opts \
$qemu_opts &> $LOGFILE < /dev/null &