-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmunet.yaml
45 lines (41 loc) · 1.13 KB
/
munet.yaml
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
topology:
networks-autonumber: true
dns-network: "mgmt0"
networks:
- name: mgmt0
ip: 10.0.1.254/24
nat: true
nodes:
- name: r1
kind: qemu-linux
connections:
- to: mgmt0
- name: r2
kind: qemu-linux
connections:
- to: mgmt0
kinds:
- name: qemu-linux
qemu:
kernel: "%CONFIGDIR%/../../output-linux/arch/x86/boot/bzImage"
initrd: "%CONFIGDIR%/../../output-buildroot/images/rootfs.cpio.gz"
cmdline-extra: "acpi=off nokaslr"
memory: "2048M"
kvm: true
ncpu: 4
cli:
commands:
- name: ""
exec: "bash -c '{}'"
format: "[HOST ...] shell-cmd"
help: "runs shell-cmd in the namespace"
- name: con
exec: "socat /dev/stdin,rawer,escape=0x1d,,echo=0,icanon=0 unix-connect:%RUNDIR%/s/vcon0"
format: "con HOST [HOST ...]"
help: "open console on given hosts, * for all"
new-window: true
- name: mon
exec: "socat /dev/stdin,rawer,escape=0x1d,,echo=0,icanon=0 unix-connect:%RUNDIR%/s/monitor"
format: "mon HOST [HOST ...]"
help: "open monitor on given hosts, * for all"
new-window: true