This article is about creating a minimal Arch Linux VM.



A script is used to do a chroot environment on local disk download it here. It is useful as it is easy to chroot into the environment, make changes and then register the changes to the same file.

To put that chroot in action, a separate script has been created download it here that copies the root over to a qcow2 image, configures disk parameters on the filesystem root and installs bootloader.

You will need to load nbd kernel module:

sudo modprobe nbd max_part=8


When trying out the virtual machine I have seen dhcp errors. Had to add a bit of tweak to the virtual machine networking configuration:

<interface type="bridge">
  <model type="virtio"/>
  <driver name="qemu"/>