**Stap x.x.x.** *Controle welke CPU uw host gebruikt*
```bash
sudo cat /proc/cpuinfo | grep 'name'| uniq
```
![[rict - ondersteuning CPU op de host.png]]
**Stap x.x.x** *Controle of uw host virtualisatie ondersteunt.*
```bash
sudo grep -o -e vmx -e svm /proc/cpuinfo
```
![[rict - ondersteuning host virtualisatie.png]]
```
sudo vi /etc/default/grub
```
```
sudo update-grub
```
# 9 Beheer de hypervisor
## 9.1 virsh over SSH
**Introductie**
### 9.1.1 Hypervisor prep.
user aanmaken
~~toevoegen aan de juiste groep~~
ssh
**Step x.x.3** *Geef de gebruiker de juiste groeps rechten*
```bash
sudo usermod -a -G libvirt oholterman
```
### 9.2.x Beheers console
**Stap x.x.1** *Maak een libvirt directory aan*
```bash
mkdir -p ~/.config/libvirt
```
**Stap x.x.2** *Maak een libvirt directory aan*
```sudo
cat << '_EOF_' > ~/.config/libvirt/libvirt.conf
uri_aliases = [
"hypervisor=qemu+ssh://
[email protected]/system",
]
_EOF_
```
**Stap x.x.3** *Test de opstelling*
```
clear && echo && virsh --connect hypervisor list --all && echo
```
![[rict - libvirt - setup virsh controle.png]]
Om niet elke keer -c of --connection te hoeven gebruiken kunnen we dit natuurlijk automatiseren.
Er zijn drie optie's, tijdelijk voor alleen tijdens de sessie of voor bash en zsh
**Optie 1** Zet de connection variable alleen voor de huidige sessie.
```bash
export VIRSH_DEFAULT_CONNECT_URI=hypervisor
```
vi .bashrc
```bash
# Zet de virsh configuratie connection variable
export VIRSH_DEFAULT_CONNECT_URI=hypervisor
```
vi .zshrc
```bash
echo "
# Zet de virsh configuratie connection variable
export VIRSH_DEFAULT_CONNECT_URI=hypervisor" >> ~/.zshrc
```