add helper script
fix root password setting
add ssh, update node version for tribblex m23
This repository provides instructions for integration of OpenIndiana (and likely OmniOS) guests within a SmartOS or Triton host.
Features include:
The code in this repository is extended or modified for this purpose from the following Joyent repositories:
smartos-live (net-physical, net-routing-setup and mdata services) sdc-vmtools (smartdc setup scripts, etc)
Limitations:
Usage:
Other components required:
changepass, written by Staf Wagemakers: Download and untar into the oi-vm-tools directory http://www.wagemakers.be/uploads/78/ab/78ab14305dd9fa3c42840aa2e64127bb/changepass_sol10_x86.tar.gz mdata-client, from Joyent: Clone into the oi-vm-tools directory, then build the project. git clone https://github.com/joyent/mdata-client json utility, by Trent Mick Clone into the oi-vm-tools directory. git clone https://github.com/trentm/json
Notes for creating an image from scratch:
As of 01/2020, the OI Hipster installer will not boot on a bhyve vm.
Create a blank kvm instance:
create blank_vm.json:
{ "brand": "kvm", "alias": "install-kvm", "vcpus": 1, "autoboot": false, "ram": 4096, "disks": [ { "boot": true, "model": "virtio", "size": 10240 } ], "nics": [ { "nic_tag": "admin", "ip": "dhcp", "primary": "true", "model": "virtio" } ] }
vmadm create -f blank_vm.json
Note the UUID of the resulting VM. Copy the OI Hipster text install iso to the root of the new VM:
cp OI-hipster-text-20191106.iso /zones/UUID/root
Start the vm:
vmadm start UUID order=cd,once=d cdrom=/OI-hipster-text-20191106.iso,ide
Connect to the VNC console:
vmadm info UUID | json vnc
Install OI and configure vm-tools per instructions above.
With VM shut down, create a snapshot and export its contents: (Note that KVM instances have a different disk layout than bhyve)
zfs snap zones/UUID-disk0@snap zfs send zones/UUID-disk0@snap | gzip - > /zones/oi-hipster-image.zfs.gz
Create a manifest file (sample starting point included in this repo)
vi /zones/oi-hipster-image.json
Import the resulting manifest and image file using imgadm:
imgadm install -m /zones/oi-hipster-image.json -f /zones/oi-hipster-image.zfs.gz