#!/bin/rc # Fri Apr 27 14:11:29 EDT 2018 # See: http://fqa.9front.org/fqa3.html#3.3.1.4.2 ETHER=vether0 BRIDGE=bridge0 Q9DIR=$HOME/9 fn installqcow2{ exec qemu-system-x86_64 -m 768 -monitor stdio -vnc :0 -no-fd-bootchk \ -net nic,model'='virtio,macaddr'='52:54:00:12:33:36 -net tap \ -device virtio-scsi-pci,id'='scsi \ -drive if'='none,id'='vd0,file'='$Q9DIR/9front.qcow2.img \ -device scsi-hd,drive'='vd0 \ -drive if'='none,id'='vd1,file'='$Q9DIR/9front.iso \ -device scsi-cd,drive'='vd1,bootindex'='0 } fn sata{ exec qemu-system-x86_64 -m 768 -monitor stdio -vnc :0 -no-fd-bootchk \ -net nic,model'='virtio,macaddr'='52:54:00:12:33:36 -net tap \ -drive id'='disk,file'='/dev/sd1c,if'='none -device ahci,id'='ahci \ -device ide-drive,drive'='disk,bus'='ahci.0 } fn qcow2{ exec qemu-system-x86_64 -m 768 -monitor stdio -vnc :0 -no-fd-bootchk \ -net nic,model'='virtio,macaddr'='52:54:00:12:33:36 -net tap \ -device virtio-scsi-pci,id'='scsi \ -drive if'='none,id'='vd0,file'='$Q9DIR/9front.qcow2.img \ -device scsi-hd,drive'='vd0 } switch($1){ case -i; installqcow2 case -q; qcow2 case -s; sata case -v; vncviewer localhost case *; sata }