qemu-vm/hardware.sh
redxef 5ceb706fb0 Various fixes and improvements.
- Add TPM2.0
- Fix network creating now needing a small delay between steps.
- Change nft chains to lowercase
- Have name for bridge and tap devices be (br|tap)-$n where n is the next available integer.
2022-11-23 18:46:30 +01:00

10 lines
305 B
Bash
Executable file

#!/usr/bin/env bash
export GPU_ROM=/opt/vm/1080ti_asus.rom
export GPU_ID='0000:65:00.0'
export AUDIO_ID='0000:65:00.1'
export TPM_PATH="/opt/vm/tpm/"
mkdir -p "$TPM_PATH$(mktemp --directory)"
swtpm socket --tpm2 --tpmstate dir="$TPM_PATH" --ctrl type=unixio,path="$TPM_PATH/swtpm-sock" &
disown -h "$!"