release: snap: Automate installation of lxd.
This commit is contained in:
parent
166dc332c0
commit
4b5e5b2f89
2 changed files with 32 additions and 2 deletions
30
packaging/lxd_preseed
Normal file
30
packaging/lxd_preseed
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
config: {}
|
||||
networks:
|
||||
- config:
|
||||
ipv4.address: auto
|
||||
ipv6.address: auto
|
||||
description: ""
|
||||
name: lxdbr0
|
||||
type: ""
|
||||
project: default
|
||||
storage_pools:
|
||||
- config:
|
||||
size: 3GB
|
||||
description: ""
|
||||
name: default
|
||||
driver: zfs
|
||||
profiles:
|
||||
- config: {}
|
||||
description: ""
|
||||
devices:
|
||||
eth0:
|
||||
name: eth0
|
||||
network: lxdbr0
|
||||
type: nic
|
||||
root:
|
||||
path: /
|
||||
pool: default
|
||||
type: disk
|
||||
name: default
|
||||
projects: []
|
||||
cluster: null
|
||||
|
|
@ -9,8 +9,8 @@ set -e
|
|||
set -x
|
||||
|
||||
|
||||
# snap install lxd
|
||||
# lxd init # Use defaults. Set size of loop device to at least 3GB.
|
||||
sudo snap install lxd
|
||||
cat packaging/lxd_preseed | lxd init --preseed
|
||||
|
||||
snapcraft clean --use-lxd
|
||||
snapcraft --use-lxd --debug
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue