**Omschrijving**
In this section we create storage pools. the qemu user needs search permission
Op de hypervisor maken wij een locatie aan waar de bestand pools naar toe verwijzen.
Wij hebben gekozen voor:
- basis image locatie *basis* en een
- locatie voor de *cow* disk die later gebruikt gaat worden.
```bash
sudo mkdir -p /virtuals/pools/{basis,cow}
```
*De rechten voor de basis en cow bestand directory zetten we goed met*
```bash
sudo setfacl -m u:libvirt-qemu:x /virtuals/pools/{basis,cow}
```
```bash
sudo virsh pool-define-as pool-basis --type dir --target /virtuals/pools/basis
```
![[basis server kvm - virsh init.png]]
```bash
sudo virsh pool-define-as pool-cow --type dir --target /virtuals/pools/cow
```
```bash
sudo virsh pool-list --all
```
![[basis server kvm - virsh list.png]]
**Step x.x.x.** *To activate the disks storage pool, use:*
```bash
sudo virsh pool-start pool-basis
```
**Step x.x.x.** *To activate the disks storage pool, use:*
```bash
sudo virsh pool-start pool-cow
```
**Step x.x.x** *To ensure that it is activated upon boot of the host system, do:*
```
sudo virsh pool-autostart pool-basis
```
**Step x.x.x** *To ensure that it is activated upon boot of the host system, do:*
```
sudo virsh pool-autostart pool-cow
```
![[basis server kvm - pool overzicht.png]]
Foutmeldingen
**setfacl**
```bash
sudo setfacl -m u:qemu:x /virtuals
```
```bash
setfacl: Option -m: Invalid argument near character 3
```
de gebruiker qemy bestaat niet, kijk met cat /passwd of hij bestaat