Skip to content

Commit

Permalink
Use nic=rtl8139 on FreeBSD 13.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmilk committed Sep 7, 2024
1 parent ac69744 commit 0d2a336
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/scripts/qemu-2-start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,11 @@ set -eu
RELEASE="$1"

# need some old image:
NIC="virtio"
case ${1:0:2} in
13)
FILE="amd64-freebsd-13.4-STABLE.qcow2.zst"
NIC="rtl8139"
;;
14)
FILE="amd64-freebsd-14.1-STABLE.qcow2.zst"
Expand Down Expand Up @@ -87,7 +89,7 @@ sudo virt-install \
--vcpus=4,sockets=1 \
--memory $((1024*8)) \
--graphics none \
--network bridge=virbr0,model=e1000,mac='52:54:00:83:79:00' \
--network bridge=virbr0,model=$NIC,mac='52:54:00:83:79:00' \
--cloud-init user-data=/tmp/user-data \
--disk $DISK,format=qcow2,bus=virtio \
--import --noautoconsole 2>/dev/null

0 comments on commit 0d2a336

Please sign in to comment.