This message was deleted.
# elemental
a
This message was deleted.
w
Hmm does it not boot? Do you get any errors?
a
In the web web ui i cannot select the arm architecture and i guess that the x64 image is unusable in VmWare for example. When i tried to build the ISO and download and boot it does not boot. So that is why I am trying the ARM image currently
w
I think you need to add an OS-version pointing to the Dev/arm64 repo to be able to build an arm64 iso from the ui.
a
What I have done now is add an export like this
export REPO=dev
And then execute the registration injection. But somehow the xorriso is hanging or taking long.
Copy code
xorriso : NOTE : Replayed 16 boot related commands
xorriso : NOTE : Copying to System Area: 32768 bytes from file '--interval:imported_iso:0s-15s:zero_mbrpt,zero_gpt:/mnt/iso/elemental-teal.aarch64.iso'
xorriso : UPDATE : Writing:       3536s    0.9%   fifo 100%  buf  50%
w
What version of xorriso are you using?
For reference I'm using 1.5.4:
Copy code
xorriso 1.5.4 : RockRidge filesystem manipulator, libburnia project.

xorriso 1.5.4
ISO 9660 Rock Ridge filesystem manipulator and CD/DVD/BD burn program
Copyright (C) 2019, Thomas Schmitt <scdbackup@gmx.net>, libburnia project.
xorriso version   :  1.5.4
Version timestamp :  2021.01.30.150001
Build timestamp   :  -none-given-
libisofs   in use :  1.5.4  (min. 1.5.4)
libjte     in use :  2.0.0  (min. 2.0.0)
libburn    in use :  1.5.4  (min. 1.5.4)
libburn OS adapter:  internal GNU/Linux SG_IO adapter sg-linux
libisoburn in use :  1.5.4  (min. 1.5.4)
Provided under GNU GPL version 3 or later, due to libreadline license.
There is NO WARRANTY, to the extent permitted by law.
a
I am following the example in the documentation: https://elemental.docs.rancher.com/rancher-vmware/ and using the
elemental-iso-add-registration
script that is provided. It downloads the correct image variant when setting
export REPO=dev
but when executing the script it hangs on the steps involving
xorriso
Copy code
Info: Using docker to run the ISO builder...
latest: Pulling from isv/rancher/elemental/dev/teal53/15.4/rancher/elemental-builder-image/5.3
e299cf357990: Pull complete
6e41ea8d3df0: Pull complete
Digest: sha256:d25f486d11e78de1339e16a25f505ac636b99bad36dc40d99841d2ab56dec142
Status: Downloaded newer image for <http://registry.opensuse.org/isv/rancher/elemental/dev/teal53/15.4/rancher/elemental-builder-image/5.3:latest|registry.opensuse.org/isv/rancher/elemental/dev/teal53/15.4/rancher/elemental-builder-image/5.3:latest>
<http://registry.opensuse.org/isv/rancher/elemental/dev/teal53/15.4/rancher/elemental-builder-image/5.3:latest|registry.opensuse.org/isv/rancher/elemental/dev/teal53/15.4/rancher/elemental-builder-image/5.3:latest>
xorriso 1.5.4 : RockRidge filesystem manipulator, libburnia project.

xorriso : NOTE : Loading ISO image tree from LBA 0
xorriso : UPDATE :      12 nodes read in 1 seconds
libisofs: NOTE : Found hidden El-Torito image for EFI.
libisofs: NOTE : EFI image start and size: 402108 * 2048 , 8192 * 512
xorriso : NOTE : Detected El-Torito boot information which currently is set to be discarded
Drive current: -indev '/mnt/iso/elemental-teal.aarch64.iso'
Media current: stdio file, overwriteable
Media status : is written , is appendable
Boot record  : El Torito , MBR protective-msdos-label cyl-align-off GPT
Media summary: 1 session, 404172 data blocks,  789m data,  794g free
Volume id    : 'COS_LIVE'
Drive current: -outdev '/output/elemental-teal.aarch64.iso'
Media current: stdio file, overwriteable
Media status : is blank
Media summary: 0 sessions, 0 data blocks, 0 data,  794g free
xorriso : UPDATE :       1 files added in 1 seconds
Added to ISO image: file '/livecd-cloud-config.yaml'='/mnt/config/livecd-cloud-config.yaml'
xorriso : NOTE : Replayed 16 boot related commands
xorriso : NOTE : Copying to System Area: 32768 bytes from file '--interval:imported_iso:0s-15s:zero_mbrpt,zero_gpt:/mnt/iso/elemental-teal.aarch64.iso'
xorriso : UPDATE : Writing:       2752s    0.7%   fifo 100%  buf  50%
xorriso : UPDATE : Writing:      17184s    4.3%   fifo  99%  buf  50%   42.6xD
xorriso : UPDATE : Writing:      59040s   14.6%   fifo   8%  buf  50%   61.8xD
xorriso : UPDATE : Writing:     100944s   25.0%   fifo   0%  buf  50%   61.9xD
xorriso : UPDATE : Writing:     139328s   34.5%   fifo  10%  buf  50%   56.7xD
xorriso : UPDATE : Writing:     179664s   44.4%   fifo   3%  buf  50%   59.6xD
Its used the same version that you mention! 1.5.4
The result when running the scripts are: • Hang on xorriso • Total hangup of Docker (new shells do not respond any more to a simple
docker ps
for example
w
Hmm, wonder if it's something with the docker volume
a
I also switched to Rancher Desktop from Colima as I expected that Colima was having issues but this also gives the same result
w
I tried running on a gcp arm64 machine and there of course it works.. =/
Copy code
Added to ISO image: file '/livecd-cloud-config.yaml'='/mnt/config/livecd-cloud-config.yaml'
xorriso : NOTE : Replayed 16 boot related commands
xorriso : NOTE : Copying to System Area: 32768 bytes from file '--interval:imported_iso:0s-15s:zero_mbrpt,zero_gpt:/mnt/iso/elemental-teal.aarch64.iso'
xorriso : UPDATE : Writing:      22480s    5.6%   fifo  70%  buf  50%
xorriso : UPDATE : Writing:      98304s   24.3%   fifo 100%  buf  50%  186.7xD
xorriso : UPDATE : Writing:     221184s   54.7%   fifo 100%  buf  50%  181.5xD
xorriso : UPDATE : Writing:     344064s   85.1%   fifo 100%  buf  50%  181.5xD
ISO image produced: 404124 sectors
Written to medium : 404304 sectors at LBA 48
Writing to '/output/elemental-teal.aarch64.iso' completed successfully.

ISO generated at /home/flonnegren/test/elemental/.github/elemental-teal.aarch64.iso
Do you have the output of
docker info
Also, does it still hang without the volume-mounts in
$CONT_ENGINE run --rm -v ${TEMPDIR}:/mnt -v $(pwd):/output ${BUILD_IMG} ...
a
Need to reboot.. brings my machine into a state that i cannot get any docker command working
Output of
docker info
Copy code
docker info
Client:
 Context:    default
 Debug Mode: false
 Plugins:
  buildx: Docker Buildx (Docker Inc.)
    Version:  v0.10.4
    Path:     /Users/mpas/.docker/cli-plugins/docker-buildx
  compose: Docker Compose (Docker Inc.)
    Version:  v2.16.0
    Path:     /Users/mpas/.docker/cli-plugins/docker-compose

Server:
 Containers: 0
  Running: 0
  Paused: 0
  Stopped: 0
 Images: 1
 Server Version: 20.10.20
 Storage Driver: overlay2
  Backing Filesystem: extfs
  Supports d_type: true
  Native Overlay Diff: true
  userxattr: false
 Logging Driver: json-file
 Cgroup Driver: cgroupfs
 Cgroup Version: 1
 Plugins:
  Volume: local
  Network: bridge host ipvlan macvlan null overlay
  Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
 Swarm: inactive
 Runtimes: io.containerd.runtime.v1.linux runc io.containerd.runc.v2
 Default Runtime: runc
 Init Binary: docker-init
 containerd version: 9cd3357b7fd7218e4aec3eae239db1f68a5a6ec6
 runc version: 5fd4c4d144137e991c4acebb2146ab1483a97925
 init version:
 Security Options:
  seccomp
   Profile: default
 Kernel Version: 5.15.96-0-virt
 Operating System: Alpine Linux v3.16
 OSType: linux
 Architecture: aarch64
 CPUs: 2
 Total Memory: 3.829GiB
 Name: lima-rancher-desktop
 ID: 7VUQ:4NOK:7U63:JR6G:E3ZM:3MOM:IOZQ:QCQK:OKWV:UZD2:YJKE:B4E7
 Docker Root Dir: /var/lib/docker
 Debug Mode: false
 Registry: <https://index.docker.io/v1/>
 Experimental: false
 Insecure Registries:
  127.0.0.0/8
 Live Restore Enabled: false
Going to check without the volume mounts
🤞 1
h
Elemental web UI is x86_64 only (mainly because ARM64 isn't an officially supported platform yet)
a
After some testing it is indeed related to the mounted volumes. I modified the script a bit to copy in the original iso and then perform the injection and copy out the modified iso and that seems to work without any problems.
👍 1
w
Nice! Pretty weird that the volumes don't work though...