6 Deploying raw images #
SUSE Linux Enterprise Micro provides raw images that can be directly deployed to your device storage: a memory card, USB flash drive, or a hard disk. The options for which type of device you can deploy the image to depend on your particular hardware—follow the guidance in your vendor documentation.
To prepare the setup, you may need two separate devices. One for the raw disk image, where SLE Micro runs, and another one that serves as a configuration medium, for example, a USB disk. You can perform basic configuration even without the configuration medium. For a more complex configuration, you need to prepare the configuration medium.
The following procedure lists steps to deploy a raw image to your system:
Prepare the raw image as described in Procedure 6.2, “Preparing the raw disk image”.
If needed, prepare the configuration medium as described in Procedure 6.3, “Preparing the configuration device”
If you did not use the configuration medium, proceed as described in Section 6.3, “Minimal initial configuration”.
After the first boot, you can register your SLE Micro instance by using the
transactional-update
command. For details, refer to Section 10.1, “Registration”.SLE Micro has extensions available. To use some of these extensions, you need to add the extension to your subscription from the installed system. For details, refer to Section 10.2, “Managing extensions”.
6.1 Preparing the raw image #
To prepare the raw image, proceed as follows:
Download the raw image and decompress it:
>
xz -d DOWNLOADED_IMAGE.raw.xzCopy the decompressed image to the device where SLE Micro will run:
>
dd if=DOWNLOADED_IMAGE.raw of=/dev/sdX
6.2 Preparing the configuration device #
The following procedure describes how to prepare the configuration device (usually a USB flash disk). Bear in mind that the configuration device needs to be connected to your host running SLE Micro during its first boot.
Format the disk to any file system supported by SLE Micro: Ext3, Ext4, etc.:
>
sudo mkfs.ext4 /dev/sdYSet the device label to either
ignition
(when either Ignition or Combustion is used) orcombustion
(when only Combustion is used). For the Ext4 file system:>
sudo e2label /dev/sdY ignitionYou can use any type of configuration storage media that your virtualization system or your hardware supports: ISO image, a USB flash disk, etc.
Mount the device:
>
sudo mount /dev/sdY /mntCreate the directory structure as mentioned in Chapter 8, Configuring with Ignition or Chapter 9, Configuring with Combustion, depending on the configuration tool used:
>
sudo mkdir -p /mnt/ignition/or:
>
sudo mkdir -p /mnt/combustion/Prior to booting for the first time, prepare all elements of the configuration that will be used by Ignition or Combustion. To log in to your system, you need to provide a password for
root
or set up passwordless authentication, otherwise the system will not be accessible after the first boot.
6.3 Minimal initial configuration #
If you do not attach any configuration device when booting the raw image for the first time, jeos-firstboot enables you to perform minimal configuration of your system as follows: