forked from project-machine/machine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
vm-network-ports.yaml
51 lines (51 loc) · 1.1 KB
/
vm-network-ports.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
46
47
48
49
50
51
type: kvm
description: example vm showing multiple host/guest port forward syntax
ephemeral: false
name: slick-seal
config:
name: slick-seal
cpus: 2
memory: 2048
serial: "true"
nics:
- device: virtio-net
id: nic0
mac: 52:54:00:81:91:9a
network: user
romfile: "/usr/share/qemu/pxe-virtio.rom" # optionally specify rom instead of built-in one
ports:
- protocol: tcp
host:
address: ""
port: 22222
guest:
address: ""
port: 22
- protocol: tcp
host:
address: ""
port: 8080
guest:
address: ""
port: 80
bootindex: "0"
- device: virtio-net
id: nic1
mac: 52:54:00:73:28:1a
network: user
romfile: "off" # disable built-in rom per qcli.DisabledNetDeviceROMFile
bootindex: "off" # prevents qemu from including this device in OVMF Boot list
disks:
- file: root.img
format: raw
size: 0
attach: virtio
type: ssd
bootindex: "1"
boot: ""
cdrom: ""
uefi-vars: /tmp/uefi_nvram-efi-shell.fd
tpm: true
tpm-version: "2.0"
secure-boot: false
gui: true