Skip to content

Instantly share code, notes, and snippets.

@nuc1eon
Last active June 19, 2025 22:25
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/bash
## 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/
# Note: During installation choose an MSDOS partition table! GPT will fail to boot!
#
# Prepare disk image with 20GB -> `qemu-img create -f qcow2 GOBO.qcow2 20G`
#
# Usage:
# ./liveGobo <LiveCD_ISO> <DiskImage>
# <DiskImage> argument is optional.
# If none is given assume:
DiskImage="GOBO.qcow2"
if [ -z "$1" ]; then
echo "Please specfiy a GoboLinux ISO image."
exit 1
fi
param="${2:-$DiskImage}"
qemu-system-x86_64 \
-cdrom "$1" \
-drive file="$param",cache=none,if=virtio \
-boot d \
-m 3G \
-enable-kvm \
-cpu host -smp 8 \
-vga virtio -display sdl,gl=off \
-nic user,model=virtio-net-pci
## Legend:
# -drive if=virtio -- Faster I/O operations (optional)
# -m 3G -- 3GB of RAM
# -cpu host -- Pass all available host processor features to the guest
# -smp 8 -- 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/bash
## Runs the installed GoboLinux environment
#
# Usage:
# ./runGobo <DiskImage>
# <DiskImage> argument is optional.
# If none is given assume:
DiskImage="GOBO.qcow2"
param="${1:-$DiskImage}"
qemu-system-x86_64 \
-drive file="$param",cache=none,if=virtio \
-m 3G \
-enable-kvm \
-cpu host -smp 8 \
-vga virtio -display sdl,gl=off \
-nic user,model=virtio-net-pci
## Known unresolved issues:
# - Clipboard sharing not working
@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