# Arch, QEMU, and Virt-Manager

```bash
sudo pacman -Syu
```

```bash
sudo pacman -S qemu virt-manager virt-viewer dnsmasq vde2 bridge-utils openbsd-netcat libguestfs
```

I chose these providers for qemu and virtiofsd

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1679889772615/2a6d4ca0-d311-4b5e-87b9-33f1e1ccf1bd.png align="center")

```bash
yay virt-bootstrap
```

```bash
sudo systemctl enable libvirtd
```

```bash
sudo systemctl start libvirtd
```

```bash
sudo nano /etc/libvirt/libvirtd.conf
```

`unix_sock_group = "libvirt"`

`unix_sock_rw_perms = "0770"`

```bash
sudo usermod -a -G libvirt user && newgrp libvirt
```

```bash
sudo nano /etc/libvirt/qemu.conf
```

`user = "nathan"`

`group = "nathan"`

## Add VM

Open virt-manager

File &gt; Add Connection

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1679889031313/d5a6567f-3fdc-4106-bcd8-2e995b6ec564.png align="center")

Might need to manually choose the OS when selecting the ISO.

## Move the VM

Find the disk location

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1681066872276/21aa13ac-0d92-466b-8e10-6adb123af332.png align="center")

create a new location

```plaintext
sudo /mnt/Storage/QEMU && sudo chown nathan:nathan /mnt/Storage/QEMU
```

```plaintext
mv /home/nathan/.local/share/libvirt/images/win10.qcow2 win10.qcow2
```

Edit the xml to reflect the new path

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1681066955616/6fce9f54-8334-48b6-85dc-b6a6c1ecaf6d.png align="center")

## Settings

I've found that using VGA graphics and Spice Server with Opengl enabled has given me the best performance.
