Install LXD pure-container hypervisor on Ubuntu 18.04 LTS


#1

Originally published at: https://www.cyberciti.biz/faq/install-lxd-pure-container-hypervisor-on-ubuntu-18-04-lts/

How can I install LXD pure-container hypervisor on Ubuntu 18.04 LTS to runs unmodified Debian/Ubuntu/CentOS Linux operating systems VM at incredible speed? How do I setup and use LXD on Ubuntu Linux server?


#2

It would be nice if you also could add some information about how to move the default store to another location. Per default images are store in /var/lib/lxd/… but instead of mounting a file system there it would be nice if you’d show how to move it to, lets say /mnt/lxd/store … just as an example.

I’ve done it, but it was not a simple task… which is one of the reasons why I’m still using lxc …


#3

[quote]It would be nice if you also could add some information about how to move the default store …
I’ve done it, but it was not a simple task… which is one of the reasons why I’m still using lxc …
[/quote]

When you run sudo lxd init you can always change storage type. It is possible to move after installation as well but it needs more work.


#4

With init you can only set the type, and if you use for example ZFS you can choose the zpool or create one. But if you are using file system, then you need to move the default pool after configuration which is anything but simple. Which is why it would have been nice if you had covered it :wink: