XLDを使ってCentOS7.xでUbuntu14.04を使う 1)


$ sudo yum update
$ sudo yum install epel-release
$ sudo yum update


最初にCopr(Cool Other Package Repo)をインストールする
$ sudo yum install yum-plugin-copr

$ sudo yum copr enable ngompa/snapcore-el7
$ sudo systemctl enable --now snapd.socket
Created symlink from /etc/systemd/system/sockets.target.wants/snapd.socket to /usr/lib/systemd/system/snapd.socket.


$ sudo snap search lxd
Name Version Publisher Notes Summary
lxd 5.10-b392610 canonical** - LXD - container and VM manager
lxd-bgp 0+git.a30c4fe stgraber - BGP server that exposes LXD routes
lxd-demo-server 0+git.6d54658 stgraber - Online software demo sessions using LXD
lxdmosaic 0+git.c6f53f3f turtle0x1 - A web interface to manage multiple instances of LXD
lxd-gitlab-runner 0.1 alexclewontin - GitLab CI/CD runner with built in LXD executor
microcloud 0+git.d78a41a canonical** - Automated small-scale cloud deployment
fabrica 1.1.0 ogra - Build snaps by simply pointing a web form to a git tree
nova ocata james-page - OpenStack Compute Service (nova)
nova-hypervisor ocata james-page - OpenStack Compute Service - KVM Hypervisor (nova)
distrobuilder 2.1 stgraber classic Image builder for LXC and LXD
satellite 0.1.2 alanzanattadev - Advanced scalable Open source intelligence platform

$ snap install lxd
2023-01-29T06:18:58+09:00 INFO Waiting for automatic snapd restart...
lxd 5.10-b392610 from Canonical** installed


$ sudo ln -s /var/lib/snapd/snap /snap
$ snap list
Name Version Rev Tracking Publisher Notes
core20 20221212 1778 latest/stable canonical** base
lxd 5.10-b392610 24323 latest/stable canonical** -
snapd 2.58 17950 latest/stable canonical** snapd

$ snap services
Service Startup Current Notes
lxd.activate enabled inactive -
lxd.daemon enabled inactive socket-activated
lxd.user-daemon enabled inactive socket-activated

最初、lxdコマンドを入力しても command not found となっていましたが、ログインし直すと反応してくれるようになりました。CentOSでsnapを使う時のご作法のようでした。

$ lxd --version