diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2018-06-11 13:18:30 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2018-06-11 13:18:30 -0300 |
commit | 1de3bbfce9c50961e7739d54c6b9a0b95fe700f2 (patch) | |
tree | b076912ce6ed0ad0d5d572789224840be11a2962 | |
parent | 9d5c8b8cb92b6a6cd0b4f185b49cbad267e680ef (diff) | |
download | kvmx-1de3bbfce9c50961e7739d54c6b9a0b95fe700f2.tar.gz kvmx-1de3bbfce9c50961e7739d54c6b9a0b95fe700f2.tar.bz2 |
Adds cdrom option
-rwxr-xr-x | kvmx | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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 & |