diff options
author | builder <builder@host> | 2021-02-26 00:18:20 +0000 |
---|---|---|
committer | builder <builder@host> | 2021-02-26 00:18:20 +0000 |
commit | 2a862d9141a84b612ec2dd109a7f74a2b10ffb91 (patch) | |
tree | 037170f7158639bb6d43ac7ebc656df8e6dcc2bc /linux/scripts/runvm | |
parent | 88ad431d4bef94a816b4a1031fb5a62d4bd8a0d7 (diff) | |
download | doc-2a862d9141a84b612ec2dd109a7f74a2b10ffb91.tar.gz |
tools scripts moved to linux
Diffstat (limited to 'linux/scripts/runvm')
-rw-r--r-- | linux/scripts/runvm/c12-dvd | 15 | ||||
-rw-r--r-- | linux/scripts/runvm/profile/crux | 7 | ||||
-rw-r--r-- | linux/scripts/runvm/runvm.sh | 26 |
3 files changed, 48 insertions, 0 deletions
diff --git a/linux/scripts/runvm/c12-dvd b/linux/scripts/runvm/c12-dvd new file mode 100644 index 0000000..9cbf201 --- /dev/null +++ b/linux/scripts/runvm/c12-dvd @@ -0,0 +1,15 @@ +export QEMU_AUDIO_DRV=alsa + +memory=1024 + +boot=c + +iso=iso/devuan_jessie_1.0.0_amd64_CD.iso + +image=img/c12-dvd.qcow2 + +tap="tap2" + +mac="54:60:be:ef:5c:72" + +other="-soundhw hda -vga std -display sdl -usb -device usb-ehci -device usb-host,vendorid=0x13d3,productid=0x5652" diff --git a/linux/scripts/runvm/profile/crux b/linux/scripts/runvm/profile/crux new file mode 100644 index 0000000..672b80d --- /dev/null +++ b/linux/scripts/runvm/profile/crux @@ -0,0 +1,7 @@ +mac="54:60:be:ef:5c:64" +memory=1024 +boot=$2 +tap="tap4" +iso=iso/crux-3.4.iso +image=img/c14.qcow2 +other="-vga std -display sdl" diff --git a/linux/scripts/runvm/runvm.sh b/linux/scripts/runvm/runvm.sh new file mode 100644 index 0000000..21cd097 --- /dev/null +++ b/linux/scripts/runvm/runvm.sh @@ -0,0 +1,26 @@ +#!/bin/bash + +function rmac_addr (){ +printf '54:60:BE:EF:%02X:%02X\n' $((RANDOM%256)) $((RANDOM%256)) +} + +source profile/$1 + +#mac=$(rmac_addr) +#memory=1024 +#boot=d +#tap="tap1" +#iso=iso/crux-3.4.iso +#image=img/crux-standard.qcow2 +#other="-soundhw hda -vga std -display sdl" + +qemu-system-x86_64 \ + -enable-kvm \ + -m ${memory} \ + -boot ${boot} \ + -cdrom ${iso} \ + -hda ${image} \ + -device e1000,netdev=t0,mac=${mac} \ + -netdev tap,id=t0,ifname=${tap},script=no,downscript=no \ + ${other} \ + & |