bhyve – Guest openbsd

Bhyve – Guest openbsd

  • start_openbsd.sh
    
    #!/bin/sh
     
    grub-bhyve -m obsd57.map -r hd0,msdos1 -M 1024M openbsd < obsd57.in
     
    bhyve -w -AI -H -P -s 0:0,hostbridge  \
    -s 1:0,lpc -s 2:0,virtio-net,tap2 \
    -s 3:0,virtio-blk,./disk.img \
    -l com1,stdio -c 2 \
    -m 1024M openbsd
    
  • obsd57.in
    kopenbsd -h com0 -r sd0a (hd0,openbsd1)/bsd
    boot
    
  • obsd57.map
    (hd0) ./disk.img
    (cd0) ./install57.iso
    
  • halt.sh
     
    #!/bin/sh
    bhyvectl --destroy --vm=openbsd