Reference:
https://www.youtube.com/watch?v=CWmkSj_B-wo
playlist: https://www.youtube.com/playlist?list=PL34sAs7_26wPfLNZ5NKoH0RKbTAWMlh2I
To check your OS kernel:
lsb_release -dirc
to check whether lxd installed.
dpkg -l | grep lxd
to check whether/where lxc command executables
which lxc
which lxd
To install lxc on ubuntu:
sudo apt install lxd
To check the status of the service:
sudo systemctl enable/start/status lxd
to add user to lxd group:
----------
to see group exists:
getent group lxd
to add user to group:
sudo gpasswd -a username lxd
id username
newgrp lxd
To initialize lxc:
----------------
lxd init -->all default options except select dir as storage backend
lxc remote list
lxc image list
lxc image list images: --->to list in the particular repo
lxc image list images:debian
lxc list
Frequent commands:
---------------------
uname -r -->kernel version
lxc launch ubuntu:16.04
lxc launch ubuntu:16.04 <name>
lxc stop <name>
lxc delete <name> --force --> if running
lxc copy <name1> <name2>
lxc move myubuntu myvm
lxc exec myvm bash
>free -m
>nproc
>uname -r
>ping anothervm.lxd
No comments:
Post a Comment