Lorenz Brun | f95909d | 2019-09-11 19:48:26 +0200 | [diff] [blame] | 1 | #!/bin/sh |
| 2 | |
Hendrik Hofstadt | 0d7c91e | 2019-10-23 21:44:47 +0200 | [diff] [blame^] | 3 | swtpm socket --tpmstate dir=core/tpm --ctrl type=unixio,path=tpm-socket --tpm2 & |
Lorenz Brun | f95909d | 2019-09-11 19:48:26 +0200 | [diff] [blame] | 4 | |
Leopold Schabel | 67f9d09 | 2019-10-22 15:41:42 +0200 | [diff] [blame] | 5 | qemu-system-x86_64 \ |
| 6 | -cpu host -smp sockets=1,cpus=1,cores=2,threads=2,maxcpus=4 -m 1024 -machine q35 -enable-kvm -nographic -nodefaults \ |
Leopold Schabel | 5c80aca | 2019-10-22 15:48:58 +0200 | [diff] [blame] | 7 | -drive if=pflash,format=raw,readonly,file=external/edk2/OVMF_CODE.fd \ |
| 8 | -drive if=pflash,format=raw,snapshot=on,file=external/edk2/OVMF_VARS.fd \ |
Hendrik Hofstadt | 0d7c91e | 2019-10-23 21:44:47 +0200 | [diff] [blame^] | 9 | -drive if=virtio,format=raw,snapshot=on,cache=unsafe,file=core/smalltown.img \ |
Lorenz Brun | f95909d | 2019-09-11 19:48:26 +0200 | [diff] [blame] | 10 | -netdev user,id=net0,hostfwd=tcp::7833-:7833,hostfwd=tcp::7834-:7834 \ |
| 11 | -device virtio-net-pci,netdev=net0 \ |
Leopold Schabel | 5c80aca | 2019-10-22 15:48:58 +0200 | [diff] [blame] | 12 | -chardev socket,id=chrtpm,path=tpm-socket \ |
Lorenz Brun | f95909d | 2019-09-11 19:48:26 +0200 | [diff] [blame] | 13 | -tpmdev emulator,id=tpm0,chardev=chrtpm \ |
| 14 | -device tpm-tis,tpmdev=tpm0 \ |
Leopold Schabel | 5c80aca | 2019-10-22 15:48:58 +0200 | [diff] [blame] | 15 | -debugcon file:debug.log \ |
Lorenz Brun | f95909d | 2019-09-11 19:48:26 +0200 | [diff] [blame] | 16 | -global isa-debugcon.iobase=0x402 \ |
| 17 | -device ipmi-bmc-sim,id=ipmi0 \ |
| 18 | -device virtio-rng-pci \ |
Leopold Schabel | 67f9d09 | 2019-10-22 15:41:42 +0200 | [diff] [blame] | 19 | -serial mon:stdio |