Skip to content

Instantly share code, notes, and snippets.

@Nuc1eoN
Last active April 22, 2025 14:41
Show Gist options
  • Save Nuc1eoN/fd58e1bcb3a9ead77588a83e087ed376 to your computer and use it in GitHub Desktop.
Save Nuc1eoN/fd58e1bcb3a9ead77588a83e087ed376 to your computer and use it in GitHub Desktop.
GoboLinux Qemu Setup
#!/bin/sh
## Runs the GoboLinux liveCD in a performant Qemu environment
#
# Make sure to check out https://wiki.gobolinux.org/Overview/Installing-Gobolinux/GoboLinux-017-Known-Issues-and-Fixes/
# Prepare disk image with 20GB -> `qemu-img create -f qcow2 GOBO 20G`
#
# Note: During installation choose an MSDOS partition table! GPT will fail to boot!
qemu-system-x86_64 \
-cdrom "$1" \
-drive file=GOBO,cache=none,if=virtio \
-boot d \
-m 3G \
-enable-kvm \
-cpu host -smp 9 \
-vga virtio -display sdl,gl=off \
-nic user,model=virtio-net-pci
## Legend:
# format=raw,cache=none -- Most performant image format
# if=virtio -- Faster I/O operations (optional)
# -m 3G -- 3GB of RAM
# -cpu host -- Pass all available host processor features to the guest
# -smp 9 -- Make use of 9 CPU threads (Configure to your needs)
# -vga virtio -display sdl,gl=on -- hw accelerated GPU driver (gl=off to workaround a qemu black screen bug for now)
# -nic user,model=virtio-net-pci -- Fast networking (optional)
#!/bin/sh
## Runs the installed GoboLinux environment
qemu-system-x86_64 \
-drive file=GOBO,cache=none,if=virtio \
-m 3G \
-enable-kvm \
-cpu host -smp 9 \
-vga virtio -display sdl,gl=off \
-nic user,model=virtio-net-pci
## Known unresolved issues:
# - Clipboard sharing not working
@rubyFeedback
Copy link

Do you think it may be worthwhile to turn these instructions into a .md and/or into the wiki?

I am beginning to think it may be a second option to run GoboLinux via
qemu; if I then have internet access I can probably e. g. test updating
or creating new recipes (have not tried it yet). I don't know yet how well
this works; I last used qemu many years ago, for HaikuOS and have not
used it since then.

@Nuc1eoN
Copy link
Author

Nuc1eoN commented Apr 22, 2025

Yes I think it could be worthwile

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