aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2018-06-11 13:18:30 -0300
committerSilvio Rhatto <rhatto@riseup.net>2018-06-11 13:18:30 -0300
commit1de3bbfce9c50961e7739d54c6b9a0b95fe700f2 (patch)
treeb076912ce6ed0ad0d5d572789224840be11a2962
parent9d5c8b8cb92b6a6cd0b4f185b49cbad267e680ef (diff)
downloadkvmx-1de3bbfce9c50961e7739d54c6b9a0b95fe700f2.tar.gz
kvmx-1de3bbfce9c50961e7739d54c6b9a0b95fe700f2.tar.bz2
Adds cdrom option
-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 &