how_to_run_wine_on_openbsd
Table of Contents
How to run Wine on OpenBSD
Note: this is incomplete To run Wine on OpenBSD you need to emulate it within a VM. But it's not that bad since OpenBSD comes with a kernel level hypervisor called VMM that's quite good.
Setting up networking
- Add the following to
/etc/sysctl.conf:net.inet.ip.forwarding=1then runsysctl -f /etc/sysctl.confto apply the changes - Next, append the following to
/etc/pf.conf, (change dns-server)! dns-server = "1.1.1.1" match out on egress from 100.64.0.0/10 to any nat-to (egress) pass in proto { udp tcp } from 100.64.0.0/10 to any port domain \ rdr-to $dns-server port domain
Reload pf with pfctl -f /etc/pf.conf
VMD
Virtualization on your CPU must be enabled. VMD will not work otherwise. Linux is supported, Alpine Linux is known to work best, but I think you can use anything.
rcctl enable vmdrcctl start vmd- Now create a disk:
vmctl create -s 50G disk.qcow2(Note: 50G is only the upper limit of the virtual disk's size, not its actual size) vmctl start -m 2G -L -i 1 -c -r <PATH TO ISO> -d disk.qcow2 <VM NAME>- After installation finishes,
vmctl stop <VM NAME> - (Optional) Add a line to
/etc/hostswith your VM's ip: 100.64.1.3 alpine.local
Credits
how_to_run_wine_on_openbsd.txt ยท Last modified: by xmpub
Discussion
TEST