Update documentation
This commit is contained in:
parent
39ff53f2ba
commit
5d26426074
@ -126,4 +126,24 @@ sudo sysctl -p /etc/sysctl.conf
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
sudo apparmor_parser -r /etc/apparmor.d/usr.sbin.libvirtd
|
sudo apparmor_parser -r /etc/apparmor.d/usr.sbin.libvirtd
|
||||||
|
```
|
||||||
|
|
||||||
|
* Create VirtWeb hook. Set the following content inside `/etc/libvirt/hooks/network`:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
#!/bin/bash
|
||||||
|
NAT_MODE=1 /usr/local/bin/virtweb_backend --storage /home/virtweb/storage --network-name "$1" --operation "$2" --sub-operation "$3"
|
||||||
|
```
|
||||||
|
|
||||||
|
* Make the script executable:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
sudo chmod +x /etc/libvirt/hooks/network
|
||||||
|
```
|
||||||
|
|
||||||
|
* Restart `libvirtd` and `VirtWeb`:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
sudo systemctl restart libvirtd
|
||||||
|
sudo systemctl restart virtweb
|
||||||
```
|
```
|
Loading…
Reference in New Issue
Block a user