Update documentation

This commit is contained in:
Pierre HUBERT 2024-01-13 09:11:50 +01:00
parent 39ff53f2ba
commit 5d26426074

View File

@ -126,4 +126,24 @@ sudo sysctl -p /etc/sysctl.conf
```bash
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
```