From 5ff68b8c191272fe9c80765fa6ac11c18aee3224 Mon Sep 17 00:00:00 2001 From: Silvino Silva Date: Sat, 4 Feb 2017 19:44:23 +0000 Subject: qemu and pkgmk-test.conf revision --- tools/scripts/runvm/runvm.sh | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 tools/scripts/runvm/runvm.sh (limited to 'tools/scripts/runvm/runvm.sh') diff --git a/tools/scripts/runvm/runvm.sh b/tools/scripts/runvm/runvm.sh new file mode 100644 index 0000000..db479cc --- /dev/null +++ b/tools/scripts/runvm/runvm.sh @@ -0,0 +1,22 @@ +#!/bin/bash + +function rmac_addr (){ +printf '54:60:BE:EF:%02X:%02X\n' $((RANDOM%256)) $((RANDOM%256)) +} + +source profile/$1 +boot=$2 + +mac=$(rmac_addr) + +qemu-system-x86_64 \ + -enable-kvm \ + -m 1024 \ + -boot ${boot} \ + -cdrom ${iso} \ + -hda ${image} \ + -vga std \ + -display sdl \ + -device e1000,netdev=t0,mac=${mac} \ + -netdev tap,id=t0,ifname=${tap},script=no,downscript=no \ + & -- cgit 1.4.1-2-gfad0 retty good email clientakspecs <akspecs@tilde.institute>
about summary refs log blame commit diff stats
path: root/templates/quoted_reply
blob: 1077e1cc403855038148b8466aa7616b80d13713 (plain) (tree)
1
2
3