mirror of
https://github.com/EvilFreelancer/docker-routeros.git
synced 2025-08-17 16:01:10 +02:00
kvm support removed, only native virtualization
This commit is contained in:
parent
9272d17e9b
commit
311b642c77
3 changed files with 3 additions and 5 deletions
|
@ -41,7 +41,6 @@ services:
|
||||||
- NET_ADMIN
|
- NET_ADMIN
|
||||||
devices:
|
devices:
|
||||||
- /dev/net/tun
|
- /dev/net/tun
|
||||||
- /dev/kvm
|
|
||||||
ports:
|
ports:
|
||||||
- "12222:22"
|
- "12222:22"
|
||||||
- "12223:23"
|
- "12223:23"
|
||||||
|
@ -55,7 +54,6 @@ services:
|
||||||
- NET_ADMIN
|
- NET_ADMIN
|
||||||
devices:
|
devices:
|
||||||
- /dev/net/tun
|
- /dev/net/tun
|
||||||
- /dev/kvm
|
|
||||||
ports:
|
ports:
|
||||||
- "22222:22"
|
- "22222:22"
|
||||||
- "22223:23"
|
- "22223:23"
|
||||||
|
|
|
@ -9,7 +9,6 @@ services:
|
||||||
- NET_ADMIN
|
- NET_ADMIN
|
||||||
devices:
|
devices:
|
||||||
- /dev/net/tun
|
- /dev/net/tun
|
||||||
- /dev/kvm
|
|
||||||
ports:
|
ports:
|
||||||
- "12222:22"
|
- "12222:22"
|
||||||
- "12223:23"
|
- "12223:23"
|
||||||
|
@ -18,12 +17,13 @@ services:
|
||||||
|
|
||||||
routeros-6-45:
|
routeros-6-45:
|
||||||
image: evilfreelancer/docker-routeros:6.46.5
|
image: evilfreelancer/docker-routeros:6.46.5
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
cap_add:
|
cap_add:
|
||||||
- NET_ADMIN
|
- NET_ADMIN
|
||||||
devices:
|
devices:
|
||||||
- /dev/net/tun
|
- /dev/net/tun
|
||||||
- /dev/kvm
|
|
||||||
ports:
|
ports:
|
||||||
- "22222:22"
|
- "22222:22"
|
||||||
- "22223:23"
|
- "22223:23"
|
||||||
|
|
|
@ -50,7 +50,7 @@ udhcpd -I $DUMMY_DHCPD_IP -f $DHCPD_CONF_FILE &
|
||||||
# -nic: Use a TAP interface with our custom up/down scripts.
|
# -nic: Use a TAP interface with our custom up/down scripts.
|
||||||
# -drive: The VM image we're booting.
|
# -drive: The VM image we're booting.
|
||||||
exec qemu-system-x86_64 \
|
exec qemu-system-x86_64 \
|
||||||
-enable-kvm -nographic -serial mon:stdio \
|
-nographic -serial mon:stdio \
|
||||||
-vnc 0.0.0.0:0 \
|
-vnc 0.0.0.0:0 \
|
||||||
-m 256 \
|
-m 256 \
|
||||||
-nic tap,id=qemu0,script=$QEMU_IFUP,downscript=$QEMU_IFDOWN \
|
-nic tap,id=qemu0,script=$QEMU_IFUP,downscript=$QEMU_IFDOWN \
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue