Qemu Script
#!/bin/bash
# sudo ./qemu-openbsd.sh
if [[ "$(whoami)" != "root" ]]; then
echo "Please run with sudo"
exit 1
fi
ip tuntap add dev tap1 mode tap group kvm
ip link set dev tap1 up promisc on
ip addr add 0.0.0.0 dev tap1
ip link set tap1 master br0
qemu-system-x86_64 \
-drive format=raw,file=disk.img \
-enable-kvm \
-m 1G \
-net nic,vlan=0 -net tap,ifname=tap1,script=no,downscript=no
ip link del tap1
User Setup
pkg_add bash git
useradd -s /usr/local/bin/bash -mG wheel lramage && \
passwd lramage
su - lramage && \
git clone https://github.com/lramage94/dotfiles
References: