Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # At this point I am quite confident you know what bhyve is, right? Well if not, I am sorry, you are missing out!
- # Bhyve stands for BSD Hypervisor, and was initially developed by NetApp and later gifted to the FreeBSD project.
- # Bhyve has seen a serious evolution and improvement over the course of the past years,
- # and it has been merged into SmartOS illumos since awhile now.
- # This guide will show you how to setup a new Bhyve zone in SmartOS illumos.
- 1. Create a .json file and add the following, man vmadm(1m) for reference;
- >>>
- {
- "brand": "bhyve",
- "vcpus": 1,
- "autoboot": false,
- "alias": "FreeBSD12a",
- "hostname": "fbsd12kvm",
- "ram": 1024,
- "resolvers": ["172.12.0.1", "8.8.8.8"],
- "disks": [
- {
- "boot": true,
- "model": "virtio",
- "size": 10960
- }
- ],
- "nics": [
- {
- "nic_tag": "admin",
- "model": "virtio",
- "ip": "172.12.0.212",
- "netmask": "255.255.255.0",
- "gateway": "172.12.0.1",
- "primary": "1"
- }
- ]
- }
- <<<
- 2. Deploy the zone we just created (pay attention to the UUID of the zone once its created):
- > vmadm create -f /opt/freebsd12-bhyve.json
- - If all went well, you will see something similar
- >>>
- [root@homelab ~]# vmadm list
- UUID TYPE RAM STATE ALIAS
- 074bbaff-925c-e35e-e5a2-874630dee577 LX 512 running alpine.1
- efc6e98c-6aee-c819-9a36-d734620a292c LX 512 running alpine.2
- 1a70e929-9582-65ac-d252-d32712c4bbb0 BHYV 1024 stopped FreeBSD12a
- <<<
- 3. Time to boot it up, (assumig the iso file is in /zones/ZONE_UUID/root/):
- > cd /zones/ZONE_UUID/root/
- > vmadm boot ZONE_UUID order=cd,once=d cdrom=/FreeBSD-12.0-RC3-amd64-bootonly.iso,ide
Add Comment
Please, Sign In to add comment