vagrant-lxd 0.5.1 → 0.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +4 -4
- data/doc/setting-up-lxd.md +41 -1
- data/lib/vagrant-lxd/driver.rb +1 -1
- data/lib/vagrant-lxd/synced_folder.rb +1 -0
- data/lib/vagrant-lxd/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c5d2a6ff5340ba242bdcc464893541745d00f1ad92dd947e87097c14335a4704
|
4
|
+
data.tar.gz: b52fc2232901b1c49c95b71d28d60b514cafa19dc0ff3698b80710ca55e16aed
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3a8269778bebfd757d6511668a6de1a30f19adaadffc124f0efc889bbea18eac796397857cdf67cbe72fe6cc733a6a94e4b6edbd568b5820861dba22b5466abd
|
7
|
+
data.tar.gz: 137bf5106e33b466b58a85484079efe7214116f4698c11acbc1c5c08292197e51dafd0b51fb2d63431369a4d923394b4461241afa43dc5c767dccf05ab81ec3c
|
data/Gemfile.lock
CHANGED
@@ -28,7 +28,7 @@ GIT
|
|
28
28
|
PATH
|
29
29
|
remote: .
|
30
30
|
specs:
|
31
|
-
vagrant-lxd (0.5.
|
31
|
+
vagrant-lxd (0.5.2)
|
32
32
|
activesupport (~> 5.2.3)
|
33
33
|
faraday (~> 0.17)
|
34
34
|
hyperkit (~> 1.3.0)
|
@@ -36,7 +36,7 @@ PATH
|
|
36
36
|
GEM
|
37
37
|
remote: https://rubygems.org/
|
38
38
|
specs:
|
39
|
-
activesupport (5.2.4.
|
39
|
+
activesupport (5.2.4.4)
|
40
40
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
41
41
|
i18n (>= 0.7, < 2)
|
42
42
|
minitest (~> 5.1)
|
@@ -82,7 +82,7 @@ GEM
|
|
82
82
|
mime-types (3.3.1)
|
83
83
|
mime-types-data (~> 3.2015)
|
84
84
|
mime-types-data (3.2020.0512)
|
85
|
-
minitest (5.14.
|
85
|
+
minitest (5.14.2)
|
86
86
|
multi_json (1.15.0)
|
87
87
|
multipart-post (2.1.1)
|
88
88
|
net-scp (1.2.1)
|
@@ -92,7 +92,7 @@ GEM
|
|
92
92
|
net-ssh (6.1.0)
|
93
93
|
netrc (0.11.0)
|
94
94
|
nori (2.6.0)
|
95
|
-
public_suffix (4.0.
|
95
|
+
public_suffix (4.0.6)
|
96
96
|
rake (13.0.1)
|
97
97
|
rb-fsevent (0.10.4)
|
98
98
|
rb-inotify (0.10.1)
|
data/doc/setting-up-lxd.md
CHANGED
@@ -9,7 +9,46 @@ Specifically, the following settings need to be applied:
|
|
9
9
|
3. Your user must be in the "lxd" group.
|
10
10
|
4. Your user must have a client certificate registered with LXD.
|
11
11
|
|
12
|
-
##
|
12
|
+
## Ubuntu Focal and Later
|
13
|
+
|
14
|
+
On Ubuntu 20.04 and later, LXD is installed as a [Snap][]. To install
|
15
|
+
and configure it as described above, you can use the following commands:
|
16
|
+
|
17
|
+
```sh
|
18
|
+
# install lxd
|
19
|
+
sudo apt install -y lxd
|
20
|
+
|
21
|
+
# enable https api access
|
22
|
+
sudo lxd init --auto --network-address=127.0.0.1 --network-port=8443
|
23
|
+
|
24
|
+
# add your user to the lxd group
|
25
|
+
sudo usermod -a lxd -G $(whoami)
|
26
|
+
|
27
|
+
# apply the new group membership
|
28
|
+
newgrp lxd
|
29
|
+
```
|
30
|
+
|
31
|
+
Then, the first time you run Vagrant in a project that uses the LXD
|
32
|
+
provider, it will generate a client certificate for the plugin to use
|
33
|
+
and instruct you to add it to LXD with the following message:
|
34
|
+
|
35
|
+
```
|
36
|
+
You may need configure LXD to allow requests from this machine. The
|
37
|
+
easiest way to do this is to add your LXC client certificate to LXD's
|
38
|
+
list of trusted certificates. This can typically be done with the
|
39
|
+
following command:
|
40
|
+
|
41
|
+
$ lxc config trust add ~/.vagrant.d/data/lxd/client.crt
|
42
|
+
|
43
|
+
You can find more information about configuring LXD at:
|
44
|
+
|
45
|
+
https://linuxcontainers.org/lxd/getting-started-cli/#initial-configuration
|
46
|
+
```
|
47
|
+
|
48
|
+
Once you run that command as instructed, everything should be set up for
|
49
|
+
the plugin to work correctly.
|
50
|
+
|
51
|
+
## Ubuntu Xenial
|
13
52
|
|
14
53
|
To install LXD and configure it as described above on Ubuntu 16.04, you
|
15
54
|
can use the following commands:
|
@@ -53,5 +92,6 @@ If you're using the plugin on another platform, please feel free to
|
|
53
92
|
propose an addition to this document or add instructions to the
|
54
93
|
project's [wiki][] for others to follow.
|
55
94
|
|
95
|
+
[Snap]: https://snapcraft.io/
|
56
96
|
[getting-started-cli]: https://linuxcontainers.org/lxd/getting-started-cli/
|
57
97
|
[wiki]: https://gitlab.com/catalyst-it/vagrant-lxd/wikis
|
data/lib/vagrant-lxd/driver.rb
CHANGED
@@ -161,7 +161,7 @@ module VagrantLXD
|
|
161
161
|
|
162
162
|
def synced_folders_usable?
|
163
163
|
# Check whether we've registered an idmap for the current user.
|
164
|
-
raw_idmap =
|
164
|
+
raw_idmap = config[:'raw.idmap']
|
165
165
|
begin
|
166
166
|
raw_idmap and
|
167
167
|
id_in_map?(Process.uid, 'uid', raw_idmap) and
|
data/lib/vagrant-lxd/version.rb
CHANGED