Skip to content

Instantly share code, notes, and snippets.

@arvati
Last active January 10, 2026 23:08
Show Gist options
  • Select an option

  • Save arvati/981965e42052a5f12abf778599d8505d to your computer and use it in GitHub Desktop.

Select an option

Save arvati/981965e42052a5f12abf778599d8505d to your computer and use it in GitHub Desktop.
Crostini commands collected

Links:

Flags:

  • #crostini-gpu-support
  • #crostini-multi-container
  • #crostini-containerless (Baguette)
vmc create --vm-type BAGUETTE \
  --size 15G \
  --source /home/chronos/user/MyFiles/Downloads/baguette_rootfs.img.zst \
  baguette

vmc start --vm-type BAGUETTE baguette

vmc stop termina
vmc stop baguette

# Optional: backup `termina`
vmc export termina /home/chronos/user/MyFiles/Downloads/termina.img

# WARNING: This will destroy your existing `termina` VM and any data it contains.
vmc destroy termina

vmc export baguette /home/chronos/user/MyFiles/Downloads/baguette-nixos.img

vmc create --vm-type BAGUETTE \
  --size 15G \
  --source /home/chronos/user/MyFiles/Downloads/baguette-nixos.img \
  termina

# Optional: destroy the other `baguette` VM
vmc destroy baguette

vmc start --vm-type BAGUETTE termina
sudo usermod -a -G render $USER

sudo usermod -a -G video $USER

glxgears
vmc start --enable-gpu --vm-type BAGUETTE --no-shell termina
vmc container termina penguin

vmc start --enable-gpu --vm-type BAGUETTE termina

vsh termina penguin

vmc start --enable-gpu --vm-type CROSTINI --no-shell termina
vmc container termina penguin
vsh termina
lxc list
lxc launch images:alpine/edge alpine
lxc exec alpine ash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment