mirror of
https://github.com/YunoHost/ynh-dev.git
synced 2024-09-03 20:05:59 +02:00
Clarify some stuff + add troubleshooting note about apparmor
This commit is contained in:
parent
c2b8f459dd
commit
9b7aa14f85
1 changed files with 9 additions and 13 deletions
16
README.md
16
README.md
|
@ -31,13 +31,7 @@ First you need to install the dependencies. ynh-dev essentially requires git, va
|
||||||
|
|
||||||
Please consider using the [latest Vagrant version from their website](https://www.vagrantup.com/downloads.html), distribution versions can include weird bugs that have been fixed upstream. If you still prefer to do that, here are the instructions:
|
Please consider using the [latest Vagrant version from their website](https://www.vagrantup.com/downloads.html), distribution versions can include weird bugs that have been fixed upstream. If you still prefer to do that, here are the instructions:
|
||||||
|
|
||||||
- Debian, Ubuntu, Mint
|
The following commands should work on **Linux Mint 19** (and possibly on any Debian Stretch?) :
|
||||||
|
|
||||||
```bash
|
|
||||||
sudo apt-get install vagrant git
|
|
||||||
```
|
|
||||||
|
|
||||||
The following commands should work on Linux Mint 19 (and possibly on any Debian Stretch?) :
|
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
sudo apt update
|
sudo apt update
|
||||||
|
@ -49,11 +43,11 @@ lxc-checkconfig
|
||||||
echo "veth" | sudo tee -a /etc/modules
|
echo "veth" | sudo tee -a /etc/modules
|
||||||
```
|
```
|
||||||
|
|
||||||
On Debian Buster, I had to re-patch the driver.rb of vagrant-lxc plugin with [this version](https://raw.githubusercontent.com/fgrehm/vagrant-lxc/2a5510b34cc59cd3cb8f2dcedc3073852d841101/lib/vagrant-lxc/driver.rb) (especially the `roofs_path` function). I also had to install `apparmor` then `systemctl restart apparmor` for `lxc-start` to work. Also check instruction on https://feeding.cloud.geek.nz/posts/lxc-setup-on-debian-stretch/
|
On **Debian Buster**, I had to re-patch the driver.rb of vagrant-lxc plugin with [this version](https://raw.githubusercontent.com/fgrehm/vagrant-lxc/2a5510b34cc59cd3cb8f2dcedc3073852d841101/lib/vagrant-lxc/driver.rb) (especially the `roofs_path` function). I also had to install `apparmor` then `systemctl restart apparmor` for `lxc-start` to work. Also check instruction on https://feeding.cloud.geek.nz/posts/lxc-setup-on-debian-stretch/
|
||||||
|
|
||||||
If you run Archlinux, this page should be quite useful to setup LXC : https://github.com/fgrehm/vagrant-lxc/wiki/Usage-on-Arch-Linux-hosts
|
If you run **Archlinux**, this page should be quite useful to setup LXC : https://github.com/fgrehm/vagrant-lxc/wiki/Usage-on-Arch-Linux-hosts
|
||||||
|
|
||||||
Typically `/etc/default/lxc-net` and `/etc/lxc/default.conf` should look like this :
|
On **both Debian and Archlinux**, typically `/etc/default/lxc-net` and `/etc/lxc/default.conf` should look like this :
|
||||||
|
|
||||||
```
|
```
|
||||||
> cat /etc/default/lxc-net
|
> cat /etc/default/lxc-net
|
||||||
|
@ -72,6 +66,8 @@ lxc.net.0.flags = up
|
||||||
lxc.net.0.hwaddr = 00:16:3e:xx:xx:xx
|
lxc.net.0.hwaddr = 00:16:3e:xx:xx:xx
|
||||||
```
|
```
|
||||||
|
|
||||||
|
On **Debian Buster**, for backup stuff to work correctly with apparmor, I also had to add `mount options=(ro, remount, bind, rbind),` to `/etc/apparmor.d/lxc/lxc-default-cgns` and restart the apparmor service.
|
||||||
|
|
||||||
Then, go into your favorite development folder and deploy ynh-dev with :
|
Then, go into your favorite development folder and deploy ynh-dev with :
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
|
Loading…
Add table
Reference in a new issue