User Tools

Site Tools


openbsd_vmd

OpenBSD/VMD

Enable VMD:

  • rcctl enable vmd
  • rcctl start vmd

Enable networking:

  • sysctl net.inet.ip.forwarding=1
  • /etc/pf.conf:
  • 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
  • pfctl -f /etc/pf.conf

Create new VM:

  • vmctl create -s 50G disk.qcow2
  • vmctl start -m 2G -L -i 1 -c -r <PATH TO ISO> -d disk.qcow2 <VM NAME>

Discussion

Enter your comment. Wiki syntax is allowed:
 
openbsd_vmd.txt ยท Last modified: by xmpub