Skip to content

Instantly share code, notes, and snippets.

@sombrafam
Last active March 6, 2022 16:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sombrafam/e22551af9c4a024b46a4099494400add to your computer and use it in GitHub Desktop.
Save sombrafam/e22551af9c4a024b46a4099494400add to your computer and use it in GitHub Desktop.
cat << EOF | sudo lxc launch images:ubuntu/focal ubuntu --vm -p controller
name: controller
config:
limits.memory: 4GB
limits.cpu: 2
description: Default LXD profile
devices:
admin0:
name: admin0
network: admin
type: nic
hwaddr: 0a:d2:63:10:10:02
oam0:
name: oam0
network: oam
type: nic
hwaddr: 0a:d2:63:20:20:02
ext0:
name: ext0
network: ext
type: nic
hwaddr: 0a:d2:63:30:30:02
root:
path: /
pool: default
type: disk
data:
pool: default
type: disk
source: /dev/loop3
EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment