curl -O https://raw.githubusercontent.com/microsoft/linux-vm-tools/master/ubuntu/18.04/install.sh
chmod +x install.sh
sudo ./install.sh
reboot
sudo ./install.sh
shutdown -h nowOpen PowerShell with Admin privileges
| #!/usr/bin/env bash | |
| set -euxo pipefail | |
| # use at your own risk | |
| zfs list -r -t snapshot -o name,used,referenced,creation bpool/BOOT | python -c "import sys;print('\n'.join([y[0].split('autozsys_')[1] for y in [x.split() for x in sys.stdin.readlines()] if y[0] != 'NAME']))" | xargs -i"{}" -n1 sudo zsysctl state remove {} --system | |
| sudo zsysctl service gc --all -vv |
| FROM docker.io/debian:bullseye | |
| RUN apt-get update && apt-get -y install ca-certificates buildah | |
| WORKDIR /container | |
| RUN buildah bud --isolation=chroot --storage-driver=vfs -t localhost/test . |
| zfs create -s -V 100G rpool/lxd_ext4 | |
| mkfs.ext4 /dev/zvol/rpool/lxd_ext4 | |
| mount /dev/zvol/rpool/lxd_ext4 /mnt | |
| lxc storage create ext4 dir source=/mnt/lxd | |
| lxc stop c1 | |
| lxc move c1 c1temp -s ext4 | |
| lxc move c1temp c1 | |
| lxc start c1 |
| import string | |
| import random | |
| h = string.hexdigits[:16] | |
| def c(l): | |
| return ''.join(random.choice(h) for _ in range(l)) | |
| print(f"fd{c(2)}:{c(4)}:{c(4)}::/48") | |
| print(f"fd{c(2)}:{c(4)}:{c(4)}:{c(4)}::/64") |
curl -O https://raw.githubusercontent.com/microsoft/linux-vm-tools/master/ubuntu/18.04/install.sh
chmod +x install.sh
sudo ./install.sh
reboot
sudo ./install.sh
shutdown -h nowOpen PowerShell with Admin privileges