From 07f21dfbad616c292183766d12016c2cb83c5819 Mon Sep 17 00:00:00 2001 From: Kroese Date: Thu, 25 May 2023 22:16:27 +0200 Subject: [PATCH 1/2] docs: cgroup wildcard --- readme.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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 From 70062a71fa4aebb4ce500ae0d31097db5fb3364d Mon Sep 17 00:00:00 2001 From: Kroese Date: Thu, 25 May 2023 22:18:44 +0200 Subject: [PATCH 2/2] feat: Display QEMU version --- run/run.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 )