最近の変更サイトマップ

vm-bhyveでお手軽にbhyveを使う

準備

pkg install vm-bhyve
Decomo@Freyja ~> sudo sh -c "echo 'vm_enable="YES"' >> /etc/rc.conf"
Decomo@Freyja ~> sudo sh -c "echo 'vm_dir="zfs:zvm/R/vm"' >> /etc/rc.conf"
vm init

find /zvm/R/vm
/zvm/R/vm
/zvm/R/vm/.iso
/zvm/R/vm/.templates
/zvm/R/vm/.config
/zvm/R/vm/.config/system.conf
/zvm/R/vm/.config/null.iso

sudo cp /usr/local/share/examples/vm-bhyve/* /zvm/R/vm/.templates/

vm switch create public
vm switch add public em0

Windows 10を入れてみる

sudo vm create -t windows -s 60 windows

vm configure windows uefi=“yes” cpu=2 memory=6G network0_type=“virtio-net” network0_switch=“public” disk0_type=“ahci-hd” disk0_name=“disk0.img” uuid=“7faf487e-ed4f-11e7-9682-XXXXXXXXXXXX” graphics=“yes”

データストアを追加する

sudo vm datastore list NAME TYPE PATH ZFS DATASET default zfs /zvm/R/vm zvm/R/vm

sudo vm datastore add mirrorhdd zfs:zhome2/ROOT/vm

Decomo@Freyja /z/R/v/windows> sudo vm datastore list NAME TYPE PATH ZFS DATASET default zfs /zvm/R/vm zvm/R/vm mirrorhdd zfs /zhome2/ROOT/vm zhome2/ROOT/vm

freebsd/bhyve/freebsd_11.1r_use_vm-bhyve.txt · 最終更新: 2017-12-31 14:32 by decomo
CC Attribution-Noncommercial-Share Alike 3.0 Unported
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0