Network Block
The network node configures VM networking.
Syntax
network "mode"
// or
network "mode" {
// mode-specific attributes
}
Modes
User (Default)
network "user"
QEMU's SLIRP user-mode networking. No root required. SSH access is via a forwarded host port.
TAP
network "tap"
// or with explicit bridge:
network "tap" {
bridge "br0"
}
TAP device attached to a Linux bridge. The guest appears on the bridge's network with a real IP.
Default bridge: "br0"
None
network "none"
No networking.
Default
If no network node is specified, user-mode networking is used.