mirror of
https://github.com/hectorm/docker-qemu-reactos
synced 2025-01-08 01:55:30 +00:00
Enabled KVM by default
This commit is contained in:
parent
c6b529b31d
commit
a030d46efc
@ -65,7 +65,7 @@ ENV VM_DISK_SIZE=16G
|
||||
ENV VM_KEYBOARD=en-us
|
||||
ENV VM_NET_OPTIONS=hostfwd=tcp::13389-:3389,hostfwd=tcp::15900-:5900
|
||||
ENV VM_BOOT_ORDER=cd
|
||||
ENV VM_KVM=false
|
||||
ENV VM_KVM=true
|
||||
|
||||
# Create some directories for QEMU
|
||||
RUN mkdir -p /var/lib/qemu/iso/ /var/lib/qemu/images/
|
||||
|
@ -6,8 +6,8 @@ A Docker image for the [ReactOS](https://www.reactos.org) operating system.
|
||||
```sh
|
||||
docker run --detach \
|
||||
--name qemu-reactos \
|
||||
--device /dev/kvm \
|
||||
--publish 127.0.0.1:6080:6080/tcp \
|
||||
--env VM_KVM=true --device /dev/kvm \
|
||||
docker.io/hectormolinero/qemu-reactos:latest
|
||||
```
|
||||
|
||||
@ -31,8 +31,8 @@ VM keyboard layout (`en-us` by default).
|
||||
VM boot order (`cd` by default).
|
||||
|
||||
#### `VM_KVM`
|
||||
Start QEMU in KVM mode (`false` by default).
|
||||
> The `--device /dev/kvm` option is required to use KVM in the container.
|
||||
Start QEMU in KVM mode (`true` by default).
|
||||
> The `--device /dev/kvm` option is required for this variable to take effect.
|
||||
|
||||
## License
|
||||
See the [license](LICENSE.md) file.
|
||||
|
6
run.sh
6
run.sh
@ -37,9 +37,9 @@ printf '%s\n' "Creating \"${CONTAINER_NAME:?}\" container..."
|
||||
--hostname "${CONTAINER_NAME:?}" \
|
||||
--restart on-failure:3 \
|
||||
--log-opt max-size=32m \
|
||||
--publish '127.0.0.1:5900:5900/tcp' \
|
||||
--publish '127.0.0.1:6080:6080/tcp' \
|
||||
--env VM_KVM=true --device /dev/kvm \
|
||||
--device /dev/kvm \
|
||||
--publish 127.0.0.1:5900:5900/tcp \
|
||||
--publish 127.0.0.1:6080:6080/tcp \
|
||||
"${IMAGE_NAME:?}" "$@" >/dev/null
|
||||
|
||||
printf '%s\n\n' 'Done!'
|
||||
|
Loading…
Reference in New Issue
Block a user