diff --git a/readme.md b/readme.md index 25bf627..319f3c7 100644 --- a/readme.md +++ b/readme.md @@ -160,11 +160,9 @@ docker run -it --rm -e "BOOT=http://www.example.com/image.iso" --device=/dev/kvm devices: - /dev/vhost-net device_cgroup_rules: - - 'c 511:* rwm' + - 'c *:* rwm' ``` - Please note that the exact `cgroup` rule number may vary depending on your system, but the log output will indicate the correct number in the event of an error. - [build_url]: https://github.com/qemu-tools/qemu-docker/ [ghcr_url]: https://github.com/orgs/qemu-tools/packages/container/package/qemu-docker diff --git a/run/run.sh b/run/run.sh index 0a4125d..8fc5ed9 100755 --- a/run/run.sh +++ b/run/run.sh @@ -22,6 +22,7 @@ trap 'error "Status $? while: ${BASH_COMMAND} (line $LINENO/$BASH_LINENO)"' ERR STORAGE="/storage" KERNEL=$(uname -r | cut -b 1) ARCH=$(dpkg --print-architecture) +VERS=$(qemu-system-x86_64 --version | head -n 1 | cut -d '(' -f 1) [ ! -d "$STORAGE" ] && error "Storage folder (${STORAGE}) not found!" && exit 13 @@ -72,7 +73,7 @@ trap - ERR set -m ( - [[ "${DEBUG}" == [Yy1]* ]] && set -x + [[ "${DEBUG}" == [Yy1]* ]] && info "$VERS" && set -x qemu-system-x86_64 ${ARGS:+ $ARGS} & echo $! > "${_QEMU_PID}" { set +x; } 2>/dev/null )