[root@emy-17 ~]# zoneadm -z b2 halt
[root@emy-17 ~]# zonecfg -z b2 info brand
brand: bhyve
[root@emy-17 ~]# uname -a
SunOS emy-17 5.11 joyent_20171230T062027Z i86pc i386 i86pc
[root@emy-17 ~]# zoneadm -z b2 boot; zlogin -C b2
Then grub appears
commit efd2c605947a09c8c641ec66ec327082fa62f239 | |
Author: Mike Gerdts <mike.gerdts@joyent.com> | |
Date: Sat Dec 30 05:18:57 2017 +0000 | |
OS-XXX sdev plugin should not force number of the beast | |
diff --git a/usr/src/uts/common/fs/dev/sdev_plugin.c b/usr/src/uts/common/fs/dev/sdev_plugin.c | |
index dd81a52..58f7256 100644 | |
--- a/usr/src/uts/common/fs/dev/sdev_plugin.c | |
+++ b/usr/src/uts/common/fs/dev/sdev_plugin.c |
[root@emy-17 ~]# zoneadm -z b2 halt
[root@emy-17 ~]# zonecfg -z b2 info brand
brand: bhyve
[root@emy-17 ~]# uname -a
SunOS emy-17 5.11 joyent_20171230T062027Z i86pc i386 i86pc
[root@emy-17 ~]# zoneadm -z b2 boot; zlogin -C b2
Then grub appears
See
A successful run generates a bit of noise due to killing the child process. I'm not sure, what, if anything to do about that.
test_all_keys (tests.unittests.test_datasource.test_smartos.TestSerialConcurrency) ... Cloud-init 17.2 received SIGTERM, exiting...
Filename: /usr/lib64/python2.7/subprocess.py
Function: _eintr_retry_call
Line number: 478
Filename: /usr/lib64/python2.7/subprocess.py
diff --git a/cloudinit/sources/DataSourceSmartOS.py b/cloudinit/sources/DataSourceSmartOS.py | |
index 32655131..b1676f92 100644 | |
--- a/cloudinit/sources/DataSourceSmartOS.py | |
+++ b/cloudinit/sources/DataSourceSmartOS.py | |
@@ -28,6 +29,7 @@ import os | |
import random | |
import re | |
import socket | |
+import time | |
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.
The current vmm
trace ring buffer implementation is in vmm_sol_dev.c
. There is one global ring buffer with a maximum size of 1 MB. Each message in the ring buffer is 280 bytes, allowing 3744 messages in the buffer.
> ::sizeof vmm_trace_dmsg_t |=D
280
> ::print -t vmm_trace_dmsg_t
vmm_trace_dmsg_t {
timespec_t timestamp {
authors | state | discussion |
---|---|---|
Mike Gerdts <mike.gerdts@joyent.com> |
predraft |
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