cneira / zcage

illumos zone manager
Mozilla Public License 2.0
38 stars 5 forks source link

incorrect dataset type created when using --brand lx #54

Closed redvelociraptor closed 3 years ago

redvelociraptor commented 3 years ago

I am attempting to create an lx zone from a joyent ubuntu image using zcage version 1.5.0 on omnios-r151036-de483383c0:

pfexec ./zcage create --net "ebook0|192.168.10.150/24|192.168.10.1" --ram 4gb --with-image 9aa48095-da9d-41ca-a094-31d1fb476b98 --alias ebooktools --brand lx

The command completes successfully, and the resultant zone info looks good: ./zcage info -z ebooktools

{ "id": "3c93a54d-07d6-6a0d-dd2a-9536e0b46483", "state": "installed", "name": "ebooktools", "brand": "lx", "autoboot": "false", "ram": "4096M", "quota": "10G", "CreatedAt": "2021-02-27T11:48:28.796Z", "UpdatedAt": "2021-02-27T11:48:28.871Z", "network": [ { "ipaddress": "192.168.10.150/24", "gateway": "192.168.10.1", "physical": "ebook0" } ] }

However, the zone will not boot, because the dataset created for it is a zvol rather than a filesystem: sudo zoneadm -z ebooktools boot zoneadm: /zcage/vms/ebooktools: No such file or directory could not verify zonepath /zcage/vms/ebooktools because of the above errors. zoneadm: zone ebooktools failed to verify

zfs get type rpool/zcage/vms/ebooktools NAME PROPERTY VALUE SOURCE rpool/zcage/vms/ebooktools type volume -

As an aside, when trying to use zcage to start the zone, the error message lacks detail, and the command hangs: sudo ./zcage start -z ebooktools ebooktools start [ERR]

redvelociraptor commented 3 years ago

This seems to be due to using the wrong type of image from the Joyent repository. Apologies for the noise.