Snapshot space accounting is tricky. This document demonstrates that.
If there is not enough available space to meet the snapshot's space
requirements, zfs snapshot [-r] <dataset>@<snapname>
will fail with ENSOPC
.
Simple, right? Not so much.
Snapshot space accounting is tricky. This document demonstrates that.
If there is not enough available space to meet the snapshot's space
requirements, zfs snapshot [-r] <dataset>@<snapname>
will fail with ENSOPC
.
Simple, right? Not so much.
These are bare-bones instructions for creating a Windows image for bhyve on SmartOS. You will need a platform image that has the fix for OS-7117. Platform images that I've used in testing are here: iso tgz usb
Create a volume that will be the disk.
zfs create -o volblocksize=4k -V 16g -s zones/hdd-windows
This script will be used for booting from the CD.
The cloud images that Canonical provides has the grub and linux console on the VGA port. This doesn't work so well for bhyve, where the graphical console only works with uefi. This document describes how to fix that using SmartOS.
The source image needs to include cloud-init 18.3 or later. Any Ubuntu 16.04 or later image produced by Canonical starting in July, 2018 should fit this criteria. The image in this example is described as Ubuntu 18.04.1 LTS (20180808 64-bit). Certified Ubuntu Server Cloud Image from Canonical..
src_uuid=96768413-88a7-43d6-867b-d74284d616d6
mget /Joyent_Dev/public/SmartDataCenter/release-20170316-20170315T223833Z/headnode/coal-release-20170316-20170315T223833Z-gc64b017-4gb.tgz | tar xvzf -
Follow first boot instructions at
https://github.com/joyent/triton/blob/master/docs/developer-guide/coal-setup.md
Then using sdc-docker/README.md as a guide,
Each bhyve virtual machine (guest) uses a machine image. A machine image is sometimes called a guest image. Bhyve machine images are quite similar to KVM machine images. In fact, it is sometimes possible to create hybrid images that work with bhyve or KVM.
Bhyve is different from KVM in a few ways that are quite relevant to machine images. In particular:
The following sections describe the relevance of these differences and how to overcome them in many cases.
The panic is seen on Linux. Screenshots of the panic: 1 2 3
I built ZoL on xubuntu 18.04 with this commit at the tip.
I suspect the clones
difference between @7
and @8
is due to the interrupted receive.
root@xubuntu:~# zfs get -o property,value all rpool/crypto/vol0@7 > /tmp/7
root@xubuntu:~# zfs get -o property,value all rpool/crypto/vol0@8 > /tmp/8
root@xubuntu:~# sdiff /tmp/7 /tmp/8
commit 2d1a8a4a97fe44c06e3fedddbb32f89fc2755a3e | |
Author: Hans Rosenfeld <[email protected]> | |
Date: Tue Jan 15 16:29:40 2019 +0100 | |
OS-7508 mdb: assertion tripped in libvmm when bhyve VM halts while mdb is attached | |
OS-7519 mdb: bhyve target can attach before the first vCPU is configured | |
commit 2a78db82bec123064d30d051995cb4d577ca04ba | |
Author: Hans Rosenfeld <[email protected]> | |
Date: Wed Feb 13 16:08:32 2019 +0000 |
In general, the instructions at https://illumos.org/docs/developers/build/ are pretty good but could use some help.
ln -s ../../opt/ooce/include/cups /usr/include