HOWTO set up QEMU with HAX acceleration on NetBSD reddit / BSD ---------------------------------------------------------------------- Kernigh · 2019-02-11 05:45 The `let "i+=1"` in that #!/bin/sh script surprises me. Turns out that NetBSD [sh(1)](http://netbsd.gw.com/cgi-bin/man-cgi?sh) has a `let` command, though I can't find it in the manual. nep$ let "i+=1" 1 nep$ let "i+=1" 2 nep$ type let let is a shell builtin Weird that `let` outputs the expression result. I would use `: $((i+=1))` here. (Trying `: $((i++))` causes `-sh: arithmetic: ++ operator unsupported`.) The qemu command uses `-netdev user,id=nd0 -device rtl8139,netdev=nd0`. One can shorten it to `-nic user,model=rtl8139`. I prefer to use `-nic user,model=e1000` because I believe that rtl8139 has problems with NetBSD guests. I have not run qemu from a NetBSD host. ---------------------------------------------------------------------- polprog · 2019-02-11 07:36 I tried e1000 at first, windows does not detect it :( I haven't written the loop part of that script, but ive seen `let` in some linux shell scripts. Just one of the solutions for the lack of a ++ operator in sh(1)/bash(1) ---------------------------------------------------------------------- Kernigh · 2019-02-13 01:47 I had Darwin, Debian, and NetBSD guests in qemu detecting e1000, but I never tried Windows!