EasyManuals Logo

Digi IX20 User Manual

Digi IX20
1188 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #999 background imageLoading...
Page #999 background image
Containers Create a custom container
IX20 User Guide
999
Create the custom container file
1. At the command line of a Linux host, unpack the test_lxc.tgz file:
$ tar -xfv test_lxc.tgz
rootfs/
rootfs/usr/
rootfs/etc/
rootfs/etc/group
rootfs/etc/profile
rootfs/etc/passwd
rootfs/tmp/
$
2. Change to the rootfs/etc directory:
$ cd rootfs/etc
$
3. Create a file named test.py with the following contents:
print("Hello world.\n")
4. Change directoriesto leavethe container file structure:
$ cd ../..
5. Change user and group permissionson all filesin the container file structure:
$ sudo chown -R 165536 rootfs
$ sudo chgrp -R 165536 rootfs
6. Tar and zip the directory structure to create a new container file:
$ sudo tar -czvf python_lxc.tgz rootfs
If using macOS, include the --disable-copyfile option with this command:
$ sudo tar --disable-copyfile -czvf python_lxc.tgz rootfs
Test the custom container file
1. Add the new container to your IX20 device:
Log into the IX20 WebUI asa user with full Admin accessrights.
a. From the main menu, click Status. Under Services, click Containers.
b. Click Upload New Container.
c. From your local file system, select the container file.
You can download a simple example container file, test_lxc.tgz, from the Digi website.
d. Create Configuration is selected by default. This will create a configuration on the device
for the container when it is installed. If deselected, you will need to create the

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Digi IX20 and is the answer not in the manual?

Digi IX20 Specifications

General IconGeneral
CategoryWireless Router
Cellular Connectivity4G LTE
Ethernet Ports4
Wi-Fi802.11ac
SIM Slots2
WAN Ports1
LAN Ports3
Weight0.5 kg
Operating Temperature-40°C to +70°C (-40°F to +158°F)