Wollte mal zur Abwechslung ein wenig mit LXD/LXC spielen und setzte einen neuen 16.04 Server auf. Ich mußte schnell feststellen, daß die vorhandene Version (im Standard Repository) etwas älter ist.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 |
buyenne@cephei:~$ lxc network show lxdbr0 Usage: lxc <command> [options] This is the LXD command line client. All of LXD's features can be driven through the various commands below. For help with any of those, simply call them with --help. Commands: config Change container or server configuration options copy Copy containers within or in between LXD instances delete Delete containers and snapshots exec Execute commands in containers file Manage files in containers image Manipulate container images info Show container or server information launch Create and start containers from images list List the existing containers move Move containers within or in between LXD instances profile Manage container configuration profiles publish Publish containers as images remote Manage the list of remote LXD servers restart Restart containers restore Restore containers from snapshots snapshot Create container snapshots start Start containers stop Stop containers version Print the version number of this client tool Options: --all Print less common commands --debug Print debug information --verbose Print verbose information --version Show client version Environment: LXD_CONF Path to an alternate client configuration directory LXD_DIR Path to an alternate server directory error: unknown command: network |
Upgrade LXD
Installiert was
1 2 3 4 |
buyenne@cephei:~$ lxd --version 2.0.10 buyenne@cephei:~$ lxc version 2.0.10 |
sudo apt-get install software-properties-common
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
buyenne@cephei:~$ sudo add-apt-repository ppa:ubuntu-lxc/lxd-stable This PPA contains the latest stable release of LXD as well as the latest stable version of any of its dependencies. More info: https://launchpad.net/~ubuntu-lxc/+archive/ubuntu/lxd-stable Press [ENTER] to continue or ctrl-c to cancel adding it gpg: keyring `/tmp/tmpdqqjwfuu/secring.gpg' created gpg: keyring `/tmp/tmpdqqjwfuu/pubring.gpg' created gpg: requesting key 7635B973 from hkp server keyserver.ubuntu.com gpg: /tmp/tmpdqqjwfuu/trustdb.gpg: trustdb created gpg: key 7635B973: public key "Launchpad PPA for Ubuntu LXC team" imported gpg: Total number processed: 1 gpg: imported: 1 (RSA: 1) OK buyenne@cephei:~$ |
1 2 3 4 5 6 7 8 9 10 11 12 13 |
buyenne@cephei:~$ sudo apt-get upgrade Reading package lists... Done Building dependency tree Reading state information... Done Calculating upgrade... Done The following packages have been kept back: lxd lxd-client The following packages will be upgraded: libicu55 liblxc1 libpam-systemd libseccomp2 libsystemd0 libudev1 lxc-common lxcfs postfix systemd systemd-sysv udev 12 upgraded, 0 newly installed, 0 to remove and 2 not upgraded. Need to get 14.4 MB of archives. After this operation, 177 kB of additional disk space will be used. Do you want to continue? [Y/n] |
1 2 3 4 5 6 7 8 9 10 11 12 13 |
buyenne@cephei:~$ sudo apt-get dist-upgrade Reading package lists... Done Building dependency tree Reading state information... Done Calculating upgrade... Done The following NEW packages will be installed: ebtables xdelta3 The following packages will be upgraded: lxd lxd-client 2 upgraded, 2 newly installed, 0 to remove and 0 not upgraded. Need to get 5,236 kB of archives. After this operation, 1,765 kB disk space will be freed. Do you want to continue? [Y/n] |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
Installing new version of config file /etc/init.d/lxd ... Installing new version of config file /etc/init/lxd.conf ... Setting up lxd dnsmasq configuration. Old bridge configuration detected in /etc/default/lxd-bridge, upgrading Unsetting deprecated profile options Attempting to kill current lxd-bridge Bringing down and renaming existing bridge lxdbr0 to lxd-upgrade Creating a new LXD bridge Network lxdbr0 created Moving the old bridge into place Configuring the new LXD bridge Setting IPv4 network to 10.0.0.1/24 Setting IPv4 DHCP range to 10.0.0.2-10.0.0.254 Enabling IPv4 NAT Setting IPv6 network to fd5:3b22:8099:421c::1/64 Enabling IPv6 NAT Done converting your bridge, renaming old configuration Cleaning up lxd-bridge state files Processing triggers for systemd (229-4ubuntu20) ... Processing triggers for ureadahead (0.100.0-19) ... buyenne@cephei:~$ |
1 2 3 4 |
buyenne@cephei:~$ lxc version 2.18 buyenne@cephei:~$ lxd --version 2.18 |