smartos > Images
Images
Created by hww3. Last updated by hww3,
5 years ago. Version #10.
I've created a number of HVM images for use with SmartOS for "alternative" operating systems such as illumos, NetBSD and FreeBSD. These images should support all of the standard SmartOS/Triton integrations, including network and data disk configuration as well as ssh-key and password setting.
I set up a simple IMGAPI server to host the latest versions. You can add this server to your imgadm configuration like this:
imgadm sources -a http://images.welliver.org
I tend to remove older versions as newer ones are pushed, but I can provide older ones on request, subject to the understanding that they may contain integration glitches I've fixed in subsequent releases.
A few notes:
- The illumos images all use EFI booting and will run under BHYVE only.
- ZFS expansion is disabled as it seems to cause hang-ups if performed at startup. Expanding manually seems to work just fine; I don’t really have an explanation for this at the moment.
- SSH is enabled for all images, and root login using public keys is permitted.
- The BSD images use MBR booting and will run under KVM only.
- FreeBSD will boot fine on BHYVE but the network configuration mechanism hasn’t been updated to work without the built-in KVM DHCP server. I’d be happy to have a little help fixing that to be in line with the rest (I think the Linux images now use cloud-init?)
- NetBSD seems to crash BHYVE following initialization of the XHCI driver. I haven’t had time to investigate further. Troubleshooting pointers would be welcome here!
If you're using SmartOS and not Triton, here's some sample JSON for setting up an HVM. Note in particular that this shows how to set an SSH key and root password, which are critical for being able to get into your new VM!
{
"brand": "bhyve",
"alias": "tribblix-bhyve",
"vcpus": 2,
"bootrom": "uefi",
"autoboot": false,
"image": "8d00d2de-2ea5-11eb-b62e-e37999f31cc2",
"ram": 2048,
"disks": [
{
"image_uuid": "8d00d2de-2ea5-11eb-b62e-e37999f31cc2",
"boot": false ,
"model": "virtio",
"size": 10240
}
],
"nics": [
{
"nic_tag": "hacienda",
"vlan_id": 3 // if your NIC uses tagged vlans
"ip": "dhcp",
"primary": "true",
"model": "virtio"
}
],
"customer_metadata": {
"root_authorized_keys": "ssh-rsa ...MY_SSH_AUTHORIZED_KEY"
},
"internal_metadata" : {
"root_pw": "my_root_pw"
}
}
Details about these images and how they were produced:
OpenIndiana Images
[ create
NetBSD Images]
I produced the FreeBSD images using the machine builder provided by Joyent; it's simply just built against newer FreeBSD releases.
Not categorized
|
RSS Feed
| BackLinks