TritonDataCenter / smartos-live

For more information, please see http://smartos.org/ For any questions that aren't answered there, please join the SmartOS discussion list: https://smartos.topicbox.com/groups/smartos-discuss
1.57k stars 246 forks source link

Cannot create an Ubuntu bases LX branded zone. #851

Open pufferfish42 opened 5 years ago

pufferfish42 commented 5 years ago

uname -a: "SunOS smartos 5.11 joyent_20190925T185257Z i86pc i386 i86pc"

When I try to create an Ubuntu v18.04 certified LX branded zone, vmadm fails complaining over a wrong UUID which I obtained from imgadm list. When looking in /zones/ the UUID listed in imgadm is non existent, but the Joyent branded zones are. Here is some data which I think is relevant:

[root@smartos ~]# imgadm import 9aa48095-da9d-41ca-a094-31d1fb476b98 Importing 9aa48095-da9d-41ca-a094-31d1fb476b98 (ubuntu-certified-18.04@20190627.1.1) from "https://images.joyent.com" Gather image 9aa48095-da9d-41ca-a094-31d1fb476b98 ancestry Must download and install 1 image (348.0 MiB) Downloaded image 9aa48095-da9d-41ca-a094-31d1fb476b98 (348.0 MiB) Download 1 image [==========================================================================================================================>] 100% 348.01MB
zones/9aa48095-da9d-41ca-a094-31d1fb476b98 [==========================================================================================================================>] 100% 348.01MB 15.09MB/s 23s Imported image 9aa48095-da9d-41ca-a094-31d1fb476b98 (ubuntu-certified-18.04@20190627.1.1) [root@smartos ~]#

[root@smartos ~]# imgadm list UUID NAME VERSION OS TYPE PUB c193a558-1d63-11e9-97cf-97bb3ee5c14f base-64-lts 18.4.0 smartos zone-dataset 2019-01-21 f3a6e1a2-9d71-11e9-9bd2-e7e5b4a5c141 base-64 19.2.0 smartos zone-dataset 2019-07-03 9aa48095-da9d-41ca-a094-31d1fb476b98 ubuntu-certified-18.04 20190627.1.1 linux zvol 2019-07-03 [root@smartos ~]#

[root@smartos ~]# ls -la /zones/ total 48 drwxr-xr-x 10 root root 13 okt. 5 13:33 . drwxr-xr-x 22 root root 512 okt. 5 13:33 .. -rw-r--r-- 1 root root 0 sep. 17 17:57 .system_pool drwx------ 10 root root 12 sep. 17 18:58 593b4525-7c67-eecc-c349-c8684f14add9 drwxr-xr-x 2 root staff 2 sep. 17 17:58 archive drwx------ 10 root root 12 sep. 26 18:23 bb0e3fe0-819b-ec57-f509-d323c9936b19 drwx------ 9 root root 10 jan. 21 2019 c193a558-1d63-11e9-97cf-97bb3ee5c14f -rw-r--r-- 1 root root 24 okt. 5 13:33 currbooted drwx------ 9 root root 10 jul. 3 08:57 f3a6e1a2-9d71-11e9-9bd2-e7e5b4a5c141 drwx------ 10 root root 12 sep. 26 17:50 f8e06aa5-f154-e987-a232-d2578292c169 drwxr-xr-x 3 root root 3 sep. 17 17:57 global -rw-r--r-- 1 root root 24 sep. 28 17:14 lastbooted drwxr-xr-x 3 root root 3 okt. 5 13:33 manifests [root@smartos ~]#

[root@smartos ~]# find / -iname "9aa48095-da9d-41ca-a094-31d1fb476b98" /dev/zvol/dsk/zones/9aa48095-da9d-41ca-a094-31d1fb476b98 /dev/zvol/rdsk/zones/9aa48095-da9d-41ca-a094-31d1fb476b98

[root@smartos ~]# ls -la /dev/zvol/rdsk/zones/ total 0 drwxr-xr-x 17 root sys 0 okt. 5 13:33 . drwxr-xr-x 3 root sys 0 okt. 5 13:33 .. drwxr-xr-x 2 root sys 0 okt. 5 13:33 593b4525-7c67-eecc-c349-c8684f14add9 lrwxrwxrwx 1 root root 0 okt. 5 13:47 9aa48095-da9d-41ca-a094-31d1fb476b98 -> ../../../..//devices/pseudo/zfs@0:6,raw lrwxrwxrwx 1 root root 0 okt. 5 13:47 9aa48095-da9d-41ca-a094-31d1fb476b98@final -> ../../../..//devices/pseudo/zfs@0:7,raw drwxr-xr-x 2 root sys 0 okt. 5 13:47 archive drwxr-xr-x 2 root sys 0 okt. 5 13:33 bb0e3fe0-819b-ec57-f509-d323c9936b19 drwxr-xr-x 2 root sys 0 okt. 5 13:47 c193a558-1d63-11e9-97cf-97bb3ee5c14f drwxr-xr-x 2 root sys 0 okt. 5 13:47 config drwxr-xr-x 6 root sys 0 okt. 5 13:47 cores lrwxrwxrwx 1 root root 0 okt. 5 13:33 dump -> ../../../..//devices/pseudo/zfs@0:2,raw drwxr-xr-x 2 root sys 0 okt. 5 13:47 f3a6e1a2-9d71-11e9-9bd2-e7e5b4a5c141 drwxr-xr-x 2 root sys 0 okt. 5 13:33 f8e06aa5-f154-e987-a232-d2578292c169 drwxr-xr-x 2 root sys 0 okt. 5 13:47 opt lrwxrwxrwx 1 root root 0 okt. 5 13:33 swap -> ../../../..//devices/pseudo/zfs@0:1,raw drwxr-xr-x 2 root sys 0 okt. 5 13:47 usbkey drwxr-xr-x 2 root sys 0 okt. 5 13:47 var [root@smartos ~]#

[root@smartos ~]# ls -la /dev/zvol/dsk/zones/ total 0 drwxr-xr-x 17 root sys 0 okt. 5 13:33 . drwxr-xr-x 3 root sys 0 okt. 5 13:33 .. drwxr-xr-x 2 root sys 0 okt. 5 13:33 593b4525-7c67-eecc-c349-c8684f14add9 lrwxrwxrwx 1 root root 0 okt. 5 13:47 9aa48095-da9d-41ca-a094-31d1fb476b98 -> ../../../..//devices/pseudo/zfs@0:6 lrwxrwxrwx 1 root root 0 okt. 5 13:47 9aa48095-da9d-41ca-a094-31d1fb476b98@final -> ../../../..//devices/pseudo/zfs@0:7 drwxr-xr-x 2 root sys 0 okt. 5 13:47 archive drwxr-xr-x 2 root sys 0 okt. 5 13:33 bb0e3fe0-819b-ec57-f509-d323c9936b19 drwxr-xr-x 2 root sys 0 okt. 5 13:47 c193a558-1d63-11e9-97cf-97bb3ee5c14f drwxr-xr-x 2 root sys 0 okt. 5 13:47 config drwxr-xr-x 6 root sys 0 okt. 5 13:47 cores lrwxrwxrwx 1 root root 0 okt. 5 13:33 dump -> ../../../..//devices/pseudo/zfs@0:2 drwxr-xr-x 2 root sys 0 okt. 5 13:47 f3a6e1a2-9d71-11e9-9bd2-e7e5b4a5c141 drwxr-xr-x 2 root sys 0 okt. 5 13:33 f8e06aa5-f154-e987-a232-d2578292c169 drwxr-xr-x 2 root sys 0 okt. 5 13:47 opt lrwxrwxrwx 1 root root 0 okt. 5 13:33 swap -> ../../../..//devices/pseudo/zfs@0:1 drwxr-xr-x 2 root sys 0 okt. 5 13:47 usbkey drwxr-xr-x 2 root sys 0 okt. 5 13:47 var [root@smartos ~]#

[root@smartos ~]# cat ubuntu.json { "brand": "lx", "image_uuid": "9aa48095-da9d-41ca-a094-31d1fb476b98", "alias": "ubuntu", "hostname": "ubuntu", "resolvers": ["8.8.8.8"], "nics": [{ "nic_tag": "admin", "ip": "dhcp" }] } [root@smartos ~]#

[root@smartos ~]# vmadm create -f ubuntu.json Invalid value(s) for: image_uuid [root@smartos ~]#

I am happry to help debugging or providing more information.

mgerdts commented 5 years ago

The image you are trying to use is for kvm or bhyve. lx would require a different image. The error message could be clearer, the fact that it is delivered as a zvol rather than an lx-dataset is a great clue.

9aa48095-da9d-41ca-a094-31d1fb476b98 ubuntu-certified-18.04 20190627.1.1 linux zvol 2019-07-03

Work is required in the Linux emulation layer of SmartOS to support Ubuntu 18.04 on lx. See:

https://smartos.org/bugview/OS-7784 https://smartos.org/bugview/OS-7754

Contributions are welcome.

Mike

On Sat, Oct 5, 2019 at 9:00 AM beastie77 notifications@github.com wrote:

uname -a: "SunOS smartos 5.11 joyent_20190925T185257Z i86pc i386 i86pc"

When I try to create an Ubuntu v18.04 certified LX branded zone, vmadm fails complaining over a wrong UUID which I obtained from imgadm list. When looking in /zones/ the UUID listed in imgadm is non existent, but the Joyent branded zones are. Here is some data which I think is relevant:

[root@smartos ~]# imgadm import 9aa48095-da9d-41ca-a094-31d1fb476b98 Importing 9aa48095-da9d-41ca-a094-31d1fb476b98 (ubuntu-certified-18.04@20190627.1.1) from "https://images.joyent.com" Gather image 9aa48095-da9d-41ca-a094-31d1fb476b98 ancestry Must download and install 1 image (348.0 MiB) Downloaded image 9aa48095-da9d-41ca-a094-31d1fb476b98 (348.0 MiB) Download 1 image [==========================================================================================================================>] 100% 348.01MB zones/9aa48095-da9d-41ca-a094-31d1fb476b98 [==========================================================================================================================>] 100% 348.01MB 15.09MB/s 23s Imported image 9aa48095-da9d-41ca-a094-31d1fb476b98 (ubuntu-certified-18.04@20190627.1.1) [root@smartos ~]#

[root@smartos ~]# imgadm list UUID NAME VERSION OS TYPE PUB c193a558-1d63-11e9-97cf-97bb3ee5c14f base-64-lts 18.4.0 smartos zone-dataset 2019-01-21 f3a6e1a2-9d71-11e9-9bd2-e7e5b4a5c141 base-64 19.2.0 smartos zone-dataset 2019-07-03 9aa48095-da9d-41ca-a094-31d1fb476b98 ubuntu-certified-18.04 20190627.1.1 linux zvol 2019-07-03 [root@smartos ~]#

[root@smartos ~]# ls -la /zones/ total 48 drwxr-xr-x 10 root root 13 okt. 5 13:33 . drwxr-xr-x 22 root root 512 okt. 5 13:33 .. -rw-r--r-- 1 root root 0 sep. 17 17:57 .system_pool drwx------ 10 root root 12 sep. 17 18:58 593b4525-7c67-eecc-c349-c8684f14add9 drwxr-xr-x 2 root staff 2 sep. 17 17:58 archive drwx------ 10 root root 12 sep. 26 18:23 bb0e3fe0-819b-ec57-f509-d323c9936b19 drwx------ 9 root root 10 jan. 21 2019 c193a558-1d63-11e9-97cf-97bb3ee5c14f -rw-r--r-- 1 root root 24 okt. 5 13:33 currbooted drwx------ 9 root root 10 jul. 3 08:57 f3a6e1a2-9d71-11e9-9bd2-e7e5b4a5c141 drwx------ 10 root root 12 sep. 26 17:50 f8e06aa5-f154-e987-a232-d2578292c169 drwxr-xr-x 3 root root 3 sep. 17 17:57 global -rw-r--r-- 1 root root 24 sep. 28 17:14 lastbooted drwxr-xr-x 3 root root 3 okt. 5 13:33 manifests [root@smartos ~]#

[root@smartos ~]# find / -iname "9aa48095-da9d-41ca-a094-31d1fb476b98" /dev/zvol/dsk/zones/9aa48095-da9d-41ca-a094-31d1fb476b98 /dev/zvol/rdsk/zones/9aa48095-da9d-41ca-a094-31d1fb476b98

[root@smartos ~]# ls -la /dev/zvol/rdsk/zones/ total 0 drwxr-xr-x 17 root sys 0 okt. 5 13:33 . drwxr-xr-x 3 root sys 0 okt. 5 13:33 .. drwxr-xr-x 2 root sys 0 okt. 5 13:33 593b4525-7c67-eecc-c349-c8684f14add9 lrwxrwxrwx 1 root root 0 okt. 5 13:47 9aa48095-da9d-41ca-a094-31d1fb476b98 -> ../../../..//devices/pseudo/zfs@0:6,raw lrwxrwxrwx 1 root root 0 okt. 5 13:47 9aa48095-da9d-41ca-a094-31d1fb476b98@final -> ../../../..//devices/pseudo/zfs@0:7,raw drwxr-xr-x 2 root sys 0 okt. 5 13:47 archive drwxr-xr-x 2 root sys 0 okt. 5 13:33 bb0e3fe0-819b-ec57-f509-d323c9936b19 drwxr-xr-x 2 root sys 0 okt. 5 13:47 c193a558-1d63-11e9-97cf-97bb3ee5c14f drwxr-xr-x 2 root sys 0 okt. 5 13:47 config drwxr-xr-x 6 root sys 0 okt. 5 13:47 cores lrwxrwxrwx 1 root root 0 okt. 5 13:33 dump -> ../../../..//devices/pseudo/zfs@0:2,raw drwxr-xr-x 2 root sys 0 okt. 5 13:47 f3a6e1a2-9d71-11e9-9bd2-e7e5b4a5c141 drwxr-xr-x 2 root sys 0 okt. 5 13:33 f8e06aa5-f154-e987-a232-d2578292c169 drwxr-xr-x 2 root sys 0 okt. 5 13:47 opt lrwxrwxrwx 1 root root 0 okt. 5 13:33 swap -> ../../../..//devices/pseudo/zfs@0:1,raw drwxr-xr-x 2 root sys 0 okt. 5 13:47 usbkey drwxr-xr-x 2 root sys 0 okt. 5 13:47 var [root@smartos ~]#

[root@smartos ~]# ls -la /dev/zvol/dsk/zones/ total 0 drwxr-xr-x 17 root sys 0 okt. 5 13:33 . drwxr-xr-x 3 root sys 0 okt. 5 13:33 .. drwxr-xr-x 2 root sys 0 okt. 5 13:33 593b4525-7c67-eecc-c349-c8684f14add9 lrwxrwxrwx 1 root root 0 okt. 5 13:47 9aa48095-da9d-41ca-a094-31d1fb476b98 -> ../../../..//devices/pseudo/zfs@0:6 lrwxrwxrwx 1 root root 0 okt. 5 13:47 9aa48095-da9d-41ca-a094-31d1fb476b98@final -> ../../../..//devices/pseudo/zfs@0:7 drwxr-xr-x 2 root sys 0 okt. 5 13:47 archive drwxr-xr-x 2 root sys 0 okt. 5 13:33 bb0e3fe0-819b-ec57-f509-d323c9936b19 drwxr-xr-x 2 root sys 0 okt. 5 13:47 c193a558-1d63-11e9-97cf-97bb3ee5c14f drwxr-xr-x 2 root sys 0 okt. 5 13:47 config drwxr-xr-x 6 root sys 0 okt. 5 13:47 cores lrwxrwxrwx 1 root root 0 okt. 5 13:33 dump -> ../../../..//devices/pseudo/zfs@0:2 drwxr-xr-x 2 root sys 0 okt. 5 13:47 f3a6e1a2-9d71-11e9-9bd2-e7e5b4a5c141 drwxr-xr-x 2 root sys 0 okt. 5 13:33 f8e06aa5-f154-e987-a232-d2578292c169 drwxr-xr-x 2 root sys 0 okt. 5 13:47 opt lrwxrwxrwx 1 root root 0 okt. 5 13:33 swap -> ../../../..//devices/pseudo/zfs@0:1 drwxr-xr-x 2 root sys 0 okt. 5 13:47 usbkey drwxr-xr-x 2 root sys 0 okt. 5 13:47 var [root@smartos ~]#

[root@smartos ~]# cat ubuntu.json { "brand": "lx", "image_uuid": "9aa48095-da9d-41ca-a094-31d1fb476b98", "alias": "ubuntu", "hostname": "ubuntu", "resolvers": ["8.8.8.8"], "nics": [{ "nic_tag": "admin", "ip": "dhcp" }] } [root@smartos ~]#

[root@smartos ~]# vmadm create -f ubuntu.json Invalid value(s) for: image_uuid [root@smartos ~]#

I am happry to help debugging or providing more information.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/joyent/smartos-live/issues/851?email_source=notifications&email_token=ACETNBI34BFWZZVSOA33PTTQNCMWLA5CNFSM4I5X2U52YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HP2VIZQ, or mute the thread https://github.com/notifications/unsubscribe-auth/ACETNBNGRL2IR5TABO5IIN3QNCMWLANCNFSM4I5X2U5Q .