Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add steps to create a Bhyve image #74

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions docs/managing-images.md
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,21 @@ The process of creating a KVM image looks like this:
You can now import the image locally via imgadm or transfer it to an
image server.

### Creating a Custom Bhyve Image

The process of creating a Bhyve image looks like this:

1. Create and customize a Bhyve instance as you wish
2. Purge and ready the instance
3. Halt the VM: `vmadm stop <UUID>`
4. Make sure there is enough room for a snapshot:
`vmadm update <UUID> flexible_disk_size=<double the size of the disk>`
5. Snapshot the disk0 ZVol: `zfs snapshot zones/<UUID>/disk0@image`
6. Dump & Compress the dataset: `zfs send zones/<UUID>/disk0@image | gzip > image_name.zvol.gz`

You can now import the image locally via imgadm or transfer it to an
image server.

### Importing Images Locally

Typically images are downloaded from an image server, however they can
Expand Down
Loading