aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2017-12-30 19:43:56 -0200
committerSilvio Rhatto <rhatto@riseup.net>2017-12-30 19:43:56 -0200
commitdbdc15291e7004fe722c221782f8a82b198a5619 (patch)
tree8c39d6811f418372e8d398e6c6bf9db9c1961670
parent9908a6cb41d227246b2af4a9c45ab2c9011d8fa6 (diff)
downloadkvmx-dbdc15291e7004fe722c221782f8a82b198a5619.tar.gz
kvmx-dbdc15291e7004fe722c221782f8a82b198a5619.tar.bz2
Minor fixes
-rwxr-xr-xkvmx4
1 files changed, 2 insertions, 2 deletions
diff --git a/kvmx b/kvmx
index b9ea4e9..1a06c4a 100755
--- a/kvmx
+++ b/kvmx
@@ -394,7 +394,7 @@ function kvmx_up {
# See https://en.wikipedia.org/wiki/Nohup#Overcoming_hanging
nohup kvm -m $memory -name $VM \
-drive file=$image,if=$drive_interface $graphics $shared \
- $spice \
+ $spice_opts \
-chardev "socket,id=monitor,path=$MONITORFILE,server,nowait" -mon chardev=monitor,mode=readline \
-chardev "socket,id=serial0,path=$CONSOLEFILE,server" -device isa-serial,chardev=serial0 \
-smp $smp -soundhw ac97 -cpu host -balloon virtio \
@@ -413,7 +413,7 @@ function kvmx_up {
# Thanks kvm-manager code for that portion
local screen_log_args=-L
if dpkg --compare-versions "$screen_version" ge 4.05; then
- screen_log_args="-L ./servicelog"
+ screen_log_args="-L $DATADIR/servicelog"
fi
/usr/bin/screen -D -m $screen_log_args \