Skip to content

Instantly share code, notes, and snippets.

@sclaret
Last active December 1, 2023 23:09
Show Gist options
  • Save sclaret/ba5fbb5e798e04d1f7d32bce04149b2d to your computer and use it in GitHub Desktop.
Save sclaret/ba5fbb5e798e04d1f7d32bce04149b2d to your computer and use it in GitHub Desktop.
Arch Linux VM

Arch Linux VM

Instructions for setting up an EndeavourOS VM under UTM

https://endeavouros.com

https://docs.getutm.app

Virtualize -> Linux
Use Apple Virtualization
Boot ISO Image: Endeavouros-Galileo-11-2023.iso
6144 MB / 6 core, 16GB
<>
Name: endeavour

Update mirrors (rate-mirrors)

Packages: deselect firefox
Bootloader: Grub
Parititions: btrfs swap (no hibernate)
<>

Shut down

Remove iso

Edit -> Virtualization
Keyboard: mac keyboard
Mouse: mac trackpad 

du -h ~/Library/Containers/com.utmapp.UTM/Data/Documents
5.1G	.

sudo pacman -Syu
sudo pacman -Sy vim timeshift
Select snapshot levels: monthly, weekly, daily, hourly

SNAP fresh

pacman -Sy openssh
systemctl enable sshd
systemctl start sshd
<>

SNAP ssh

#sudo mount -t virtiofs share /mnt
sudo vim /etc/fstab
share   /mnt    virtiofs
sudo systemctl daemon-reload
sudo mount -a
https://docs.getutm.app/guest-support/linux/#macos-virtiofs

sudo pacman -Sy spice-vdagent
https://docs.getutm.app/guest-support/sharing/clipboard/
https://docs.getutm.app/guest-support/linux/#archlinux
(works after reboot)

SNAP virtualization

<>

SNAP dotfiles

<>

SNAP browser

System Settings
Display and Monitor -> Display Configuration
Global scale: 150%
Workspace behavior -> General behavior
Aimation speed: instant
Workspace behavior -> Screen edges:
Bottom left: present windows all desktops
Bottom right: present windows current desktop
Switch desktop on edge: always enabled
Activation delay: 0ms
Reactivation delay: 50ms
Workspace behavior -> Virtual Desktops: 5 total
<>

Input devices -> mouse
Pointer acceleration: 3x

SNAP kde

sudo pacman -Sy docker
sudo systemctl enable docker
sudo systemctl start docker
sudo groupadd docker
sudo usermod -aG docker $USER

SNAP docker

sudo pacman -Sy python poetry go nodejs yarn
sudo corepack enable
corepack install --global yarn@stable

SNAP runtimes

<>

SNAP ide

##########

sudo fstrim /

Notes

Apple Virtualization does not support GPU (30/11/2023)

utmapp/UTM#5482

With Apple Virtualization fstrim reclaims space used by the .img file.

UTM Changelog: https://docs.getutm.app/updates/v4.4/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment