forked from emengweb/emu-windows
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-run.sh
26 lines (24 loc) · 1.01 KB
/
docker-run.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
docker run \
--volume $PWD/win7.qcow2:/disk.qcow2 `# the persistent volume` \
--volume $PWD/iso:/iso `# the iso folder` \
--interactive --tty \
-p 6901:5900 \
-p 9833:3389 \
-e CPU='2' \
-e MEMERY='3G' \
`# -e ISOFILE='virtio.iso'` \
`# -e USEKVM='true'` \
\
`# --device /dev/kvm # use hardware acceleration` \
--device /dev/vfio/vfio ` # vfio is used for PCIe passthrough` \
`# --device /dev/vfio/1 # the vfio IOMMU group` \
--ulimit memlock=-1:-1 `# so DMA can happen for the vfio passthrough` \
--device /dev/bus/usb `# since we use usb-host device passthrough (note you can specify specific devices too)` \
--volume /dev/bus/usb:/dev/bus/usb `# to allow for hot-plugging of USB devices` \
--volume /lib/modules:/lib/modules `# needed for loading vfio` \
--privileged `# needed for allowing hot-plugging of USB devices, but should be able to replace with cgroup stuff? also needed for modprobe commands` \
emu-windows
# ash
# --detach \
# --restart unless-stopped \
# -e USEKVM='true' \