lxd

warning: Creating default object from empty value in /data/web/1/000/027/003/273448/htdocs/panticz.de/modules/taxonomy/taxonomy.pages.inc on line 33.

LXD

Install
https://raw.githubusercontent.com/panticz/installit/master/install.lxd.sh

# Add user to group
sudo usermod -a -G lxd ${USER}

Create VM
lxc launch ubuntu:trusty trusty
lxc launch ubuntu:16.04 xenial
lxc launch images:centos/7 centos7
lxc exec xenial bash
lxc delete xenial -f

CLI
lxc list
lxc storage list
lxc image list
lxc image list images: ubuntu

Rootfs
/var/lib/lxd/containers//rootfs

Ansible module

Install LXD

wget https://raw.githubusercontent.com/panticz/installit/master/install.lxd.sh -O - | bash -

#!/bin/bash

# add LXD PPA repository
sudo apt-get install -y software-properties-common
sudo add-apt-repository -y ppa:ubuntu-lxc/lxd-stable
sudo apt-get update

# install LXD
sudo apt-get install -y lxd

# initialize LXD
sudo lxd init --auto

Links
https://linuxcontainers.org/lxd/getting-started-cli/

Syndicate content