This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# create certificate | |
openssl req \ | |
-newkey rsa:4096 -nodes -sha256 -keyout host.key \ | |
-x509 -days 365 -out host.crt | |
# add certificate global | |
mkdir -p /usr/share/ca-certificates/local | |
cp host.crt /usr/share/ca-certificates/local/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Stop all running containers. | |
lxc stop -all | |
lxc storage list | |
truncate -s +20G /var/lib/lxd/disks/default.img | |
zpool set autoexpand=on default | |
zpool status -vg default | |
zpool online -e default device_id_from_step_above | |
zpool set autoexpand=off default |