2021-09-28 00:02:19 -04:00
|
|
|
## Installation
|
2021-09-27 22:49:49 -04:00
|
|
|
```
|
2021-09-28 00:02:19 -04:00
|
|
|
ansible-playbook libvirt/main.yml
|
2021-09-27 22:49:49 -04:00
|
|
|
```
|
2021-09-28 00:02:19 -04:00
|
|
|
Then connect to the created vm using virt-viewer
|
|
|
|
```
|
|
|
|
virt-viewer --domain-name mirror
|
|
|
|
```
|
|
|
|
If vm is on a remote machine
|
|
|
|
```
|
|
|
|
virt-viewer --connect qemu+ssh://user@X.X.X.X/system mirror
|
|
|
|
```
|
2021-09-27 22:49:49 -04:00
|
|
|
## Troubleshooting
|
|
|
|
```
|
2021-09-30 01:01:55 -04:00
|
|
|
net.ipv4.ip_forward = 1
|
2021-09-27 22:49:49 -04:00
|
|
|
```
|
|
|
|
```
|
|
|
|
modprobe kvm_intel
|
|
|
|
```
|
|
|
|
If running in `/root` may need to edit config
|
|
|
|
```
|
|
|
|
# edit /etc/libvirt/qemu.conf
|
|
|
|
user = "root"
|
|
|
|
group = "root"
|
|
|
|
$ service restart libvirtd
|
|
|
|
```
|