File: start-qemu.sh

package info (click to toggle)
golang-github-foxboron-go-uefi 0.0~git20250207.69fb7db-2
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 9,140 kB
  • sloc: makefile: 29; sh: 14
file content (18 lines) | stat: -rwxr-xr-x 728 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/bash

rm OVMF_VARS.fd || true
mkdir -p ./shared || true

cp /usr/share/edk2-ovmf/x64/OVMF_VARS.fd .

qemu-system-x86_64 -enable-kvm -boot order=c,menu=on -m 3G -cpu host \
	-machine type=q35,smm=on,accel=kvm \
	-global driver=cfi.pflash01,property=secure,value=on \
	-global ICH9-LPC.disable_s3=1 \
	-drive if=pflash,format=raw,unit=0,file=/usr/share/edk2-ovmf/x64/OVMF_CODE.secboot.fd,readonly \
	-drive if=pflash,format=raw,unit=1,file=OVMF_VARS.fd \
	-drive file="$HOME/Downloads/archlinux-2020.01.01-x86_64.iso",media=cdrom,readonly=on \
	-device virtio-net-pci,netdev=net0 \
	-netdev user,id=net0 \
	-fsdev local,id=test_dev,path=./shared,security_model=none \
	-device virtio-9p-pci,fsdev=test_dev,mount_tag=shared