OS-8156: lx void linux image support

Details

Issue Type:New Feature
Priority:4 - Normal
Status:Resolved
Created at:2020-04-06T22:48:43.726Z
Updated at:2020-04-09T16:17:34.517Z

People

Created by:Former user
Reported by:Former user
Assigned to:Former user

Resolution

Implemented: The feature has been implemented, is checked into the tree and tested
(Resolution Date: 2020-04-07T22:29:14.101Z)

Fix Versions

2020-04-09 Prognosis Negative (Release Date: 2020-04-09)

Related Links

Description

support https://voidlinux.org/ via lx

Comments

Comment by Former user
Created at 2020-04-07T16:52:43.470Z

PR: https://github.com/joyent/illumos-joyent/pull/284

Platform with this change: https://us-east.manta.joyent.com/bahamas10/public/void-lx/platform-20200407T000134Z.tgz

To create a void linux LX image:

# install the void image
mkdir /var/tmp/void-lx
cd /var/tmp/void-lx
curl -Ok https://us-east.manta.joyent.com/bahamas10/public/void-lx/void-20191203.json
curl -Ok https://us-east.manta.joyent.com/bahamas10/public/void-lx/void-20191203.zfs.gz
imgadm install -m void-20191203.json -f void-20191203.zfs.gz

and then create a VM with something like:

{
  "alias": "void-test",
  "brand": "lx",
  "autoboot": true,
  "quota": 20,
  "kernel_version": "5",
  "image_uuid": "49239ea8-1618-11ea-8d11-6bc9e7d76b7e",
  "ram": 512,
  "nics": [
    // CHANGE ME
    {
      "nic_tag": "admin",
      "ip": "10.0.1.41",
      "netmask": "255.255.255.0",
      "gateway": "10.0.1.1",
      "primary": true
    }
  ],
  "resolvers": [
    "10.0.1.2",
    "10.0.1.3"
  ]
}

Comment by Michael Zeller
Created at 2020-04-07T18:57:42.060Z

Tested in a local VM:

bash-5.0# /native/usr/bin/uname -a
SunOS f5d0a083-f9e6-4332-8534-fa795c8d52ec 5.11 joyent_20200407T000134Z i86pc i386 i86pc
bash-5.0# uname -a
Linux f5d0a083-f9e6-4332-8534-fa795c8d52ec 4.3.0 BrandZ virtual linux x86_64 GNU/Linux
bash-5.0# file /etc/void-release
/etc/void-release: empty
bash-5.0# pstree
runit-+-dhcpagent
      |-ipmgmtd
      |-login---dash---bash---pstree
      `-runsvdir---runsv---sshd

Comment by Jira Bot
Created at 2020-04-07T22:28:27.291Z

illumos-joyent commit 4fc8237742a380d4833394892fb148e1a34acb28 (branch master, by Dave Eddy)

OS-8156 lx void linux image support (#284)

Reviewed by: Mike Zeller <mike.zeller@joyent.com>
Approved by: Jason King <jason.king@joyent.com>