Guix (System) KVM

Guix Virtual Machine

This will install the Guix System (OS) to a virtual machine (KVM) running on your Linux workstation. You will need to install qemu-full or similar packages on your host machine.

Download Qemu VM disk image and create instance overlay

1
2
3
4
5
6
7
8
9
GUIX_QEMU_URL=https://ftp.gnu.org/gnu/guix/guix-system-vm-image-1.4.0.x86_64-linux.qcow2
GUIX_IMAGE=$(basename ${GUIX_QEMU_URL})
mkdir -p ~/VM
  (cd ~/VM && \
       chmod u+w ${GUIX_IMAGE}
       curl -C - -LO ${GUIX_QEMU_URL} && \
       chmod a-w ${GUIX_IMAGE})

  qemu-img create -f qcow2 -b ~/VM/${GUIX_IMAGE} -F qcow2 ~/VM/guix-test.qcow2

Launch VM instance

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
qemu-system-x86_64 \
   -nic user,model=virtio-net-pci \
   -enable-kvm -m 4096 \
   -device virtio-blk,drive=myhd \
   -vga virtio \
   -display gtk \
   -device virtio-serial \
   -chardev spicevmc,id=spicechannel0,name=vdagent \
   -device virtserialport,chardev=spicechannel0,name=com.redhat.spice.0 \
   -spice port=5930,disable-ticketing=on \
   -drive if=none,file=/home/ryan/VM/guix-test.qcow2,id=myhd