virtual-machines: reorganize, and add Debian, FreeBSD, NixOS, OpenBSD, Slackware, Ubuntu, openSUSE, and Xubuntu configs

master
an 2019-08-22 19:37:59 -04:00
parent 6f104a88cf
commit b3e5fb92ed
24 changed files with 84 additions and 32 deletions

View File

@ -1,9 +1,9 @@
#!/usr/bin/env fish
function vm-qemu -d "Frontend to QEMU"
$_agw_dir_rc/virtual-machines/QEMU/vm-qemu.rkt $argv
$_agw_dir_rc/virtual-machines/QEMU/vm-qemu $argv
end
complete -c vm-qemu -xa "(ls $_agw_dir_rc/virtual-machines)"
complete -c vm-qemu -xa "(ls $_agw_dir_rc/virtual-machines/QEMU)"
## EOF

View File

@ -1,6 +0,0 @@
#!/usr/bin/env fish
set _arch x86_64
set _ver 30-1.2
set _install "$_vm_media/Linux/Fedora/Workstation-Live-x86_64-_ver_.iso"
set _mem 2G

View File

@ -2,6 +2,6 @@
set _arch x86_64
set _ver 3.10.1
set _install "$_vm_media/Linux/Alpine/standard-_ver_-x86_64.iso"
set _install "Linux/Alpine/standard-_ver_-x86_64.iso"
set _mem 2G
set _vga qxl

View File

@ -2,5 +2,5 @@
set _arch x86_64
set _ver 2018.08.01
set _install "$_vm_media/Linux/Arch/_ver_-x86_64.iso"
set _install "Linux/Arch/_ver_-x86_64.iso"
set _mem 2G

View File

@ -2,5 +2,5 @@
set _arch x86_64
set _ver 3.5
set _install "$_vm_media/Linux/CRUX/_ver_.iso"
set _install "Linux/CRUX/_ver_.iso"
set _mem 2G

View File

@ -2,5 +2,5 @@
set _arch x86_64
set _ver 7-1810
set _install "$_vm_media/Linux/CentOS/_ver_-x86_64-DVD.iso"
set _install "Linux/CentOS/_ver_-x86_64-DVD.iso"
set _mem 2G

View File

@ -0,0 +1,6 @@
#!/usr/bin/env fish
set _arch x86_64
set _ver 10.0.0
set _install "Linux/Debian/_ver_-amd64-netinst.iso"
set _mem 2G

View File

@ -0,0 +1,6 @@
#!/usr/bin/env fish
set _arch x86_64
set _ver 30-1.2
set _install "Linux/Fedora/Workstation-Live-x86_64-_ver_.iso"
set _mem 2G

View File

@ -0,0 +1,6 @@
#!/usr/bin/env fish
set _arch x86_64
set _ver 12.0
set _install "BSD/FreeBSD/FreeBSD-_ver_-RELEASE-amd64-dvd1.iso"
set _mem 4G

View File

@ -2,5 +2,5 @@
set _arch x86_64
set _ver 016.01
set _install "$_vm_media/Linux/Gobo/_ver_-x86_64.iso"
set _install "Linux/Gobo/_ver_-x86_64.iso"
set _mem 2G

View File

@ -2,5 +2,5 @@
set _arch x86_64
set _ver 2019.2
set _install "$_vm_media/Linux/Kali/kde-_ver_-amd64.iso"
set _install "Linux/Kali/kde-_ver_-amd64.iso"
set _mem 2G

View File

@ -2,6 +2,6 @@
set _arch x86_64
set _ver 19.04
set _install "$_vm_media/Linux/Kubuntu/_ver_-desktop-amd64.iso"
set _install "Linux/Kubuntu/_ver_-desktop-amd64.iso"
set _mem 8G
set _vga qxl

View File

@ -2,5 +2,5 @@
set _arch x86_64
set _ver 8.1
set _install "$_vm_media/BSD/NetBSD/NetBSD-_ver_-amd64.iso"
set _install "BSD/NetBSD/NetBSD-_ver_-amd64.iso"
set _mem 4G

View File

@ -0,0 +1,6 @@
#!/usr/bin/env fish
set _arch x86_64
set _ver 19.03
set _install "Linux/NixOS/graphical-_ver_-x86_64.iso"
set _mem 4G

View File

@ -0,0 +1,7 @@
#!/usr/bin/env fish
set _arch x86_64
set _ver 65
set _install "BSD/OpenBSD/install_ver_.iso"
set _mem 4G
set _devs usb-mouse

View File

@ -0,0 +1,6 @@
#!/usr/bin/env fish
set _arch x86_64
set _ver 14.2
set _install "Linux/Slackware/64-_ver_-install-dvd.iso"
set _mem 2G

View File

@ -0,0 +1,6 @@
#!/usr/bin/env fish
set _arch x86_64
set _ver 19.04
set _install "Linux/Ubuntu/_ver_-desktop-amd64.iso"
set _mem 8G

View File

@ -0,0 +1,6 @@
#!/usr/bin/env fish
set _arch x86_64
set _ver musl-20181111
set _install "Linux/Void/live-x86_64-_ver_.iso"
set _mem 2G

View File

@ -1,7 +1,7 @@
#!/usr/bin/env fish
set _arch i386
set _install "$_vm_media/MS Windows/2000 Pro/5.00.2195.iso"
set _install "MS Windows/2000 Pro/5.00.2195.iso"
set _mem 512M
set _vga cirrus
set _soundhw ac97

View File

@ -0,0 +1,6 @@
#!/usr/bin/env fish
set _arch x86_64
set _ver 19.04
set _install "Linux/Xubuntu/_ver_-desktop-amd64.iso"
set _mem 8G

View File

@ -2,5 +2,5 @@
set _arch x86_64
set _ver 5.0.20181016
set _install "$_vm_media/Linux/elementaryOS/_ver_.iso"
set _install "Linux/elementaryOS/_ver_.iso"
set _mem 4G

View File

@ -0,0 +1,7 @@
#!/usr/bin/env fish
set _arch x86_64
set _ver Snapshot20190814
set _install "Linux/openSUSE/DVD-x86_64-_ver_-Media.iso"
set _mem 4G
set _vga qxl

View File

@ -4,18 +4,17 @@
argparse \
--name "vm-qemu" \
--min-args 1 \
--max-args 1 \
'V/version=' \
'i/install' \
-- \
$argv
or exit 1
set cfg $argv
set cfg $argv[1]
set -e argv[1]
# Config
set _vm_media "/mnt/s/osmedia"
source $_agw_dir_rc/virtual-machines/$cfg
source $_agw_dir_rc/virtual-machines/QEMU/$cfg
# Devices
test "$_vga"
@ -51,28 +50,31 @@ set image "/mnt/s/vm/$cfg/image$ver"
set boot_order c
# Install Media
set media "/mnt/s/osmedia"
set install (string replace "_ver_" "$ver" "$_install")
set boot (string replace "_ver_" "$ver" "$_boot")
if test "$_flag_install"
set boot_order d
set -p _args --drive file="$install",media=cdrom,readonly
set -p _args --drive file="$media/$install",media=cdrom,readonly
if test "$boot"
set boot_order a
set -p _args --drive file="$boot",format=raw,if=floppy,readonly
set -p _args --drive file="$media/$boot",format=raw,if=floppy,readonly
end
end
# Run!
set -a _args $argv
env QEMU_AUDIO_DRV=pa "qemu-system-$_arch" \
--boot order="$boot_order" \
--cpu "$cpu" \
--display sdl,gl=on \
--drive file="$image",format=qcow2,media=disk \
--monitor stdio \
--soundhw $soundhw \
--vga $vga \
--soundhw "$soundhw" \
--vga "$vga" \
-m "$_mem" \
$_args

View File

@ -1,6 +0,0 @@
#!/usr/bin/env fish
set _arch x86_64
set _ver 20181111
set _install "$_vm_media/Linux/Void/live-x86_64-musl-_ver_.iso"
set _mem 2G