Documentation

Accessing the lab

Raise a ticket to ask for access to the lab: https://servicedesk.linaro.org/servicedesk/customer/portal/14


Hardware Sharing

You will get two sets of credentials for the lab:

  • VPN certificates/credentials
  • Mr Provisioners user/password

Install and set up openvpn connection to mlab:

$ sudo apt-get install -y openvpn

$ sudo openvpn --config <the .ovpn file you received>

Input your username and password and wait for the connection sequence to finish. Once the connection has been established successfully, you should see something like 'Initialization Sequence Completed'.

Once connected to the VPN you will have access to the app that controls the hardware in the lab, Mr Provisioner. This app is available in our infrastructure server, Walter:

http://172.27.80.1:5000/

You will be able to manage your test images (kernel + initrd) or use the ones provided by other users (see top menu images/preseeds). To be able to use them you need to go into whichever machine you have been assigned and edit the following:

Kernel

Kernel opts

Initrd

Preseed

Netboot value

You can also pxe boot, reboot, switch on and off via ipmi and connect to the console and see the machine boot and download the log if necessary (make sure to disable any ad blocker, else you may not be able to download the log).

You will only be able to use a machine that has been assigned to you (except for admins, who have access to all but will not use this except for troubleshooting).

Note:

Newer Debian OpenSSL is now enforcing TLS 1.2 and mlab VPN server doesn't support it. Hence, the openvpn client needs to enforce TLS 1.0 negotiation with mlab.

You need to run openvpn with --tls-version-min 1.0, or edit /etc/ssl/openssl.cnf to reduce MinProtocol from TLSv1.2 to TLSv1.0.

D03 kernel opts

The recommended kernel opts for D03 (pre-ERP 17.12) is:

console=ttyS0,115200 --- console=ttyS0,115200


This is so that the console is not lost after installing, and then so that the configuration is there after rebooting and booting into the installed system. This was a known issue with D03s that was fixed on ERP 17.12). D05 do not need such config.


Setting up hostname via kernel args

Hostname can be set either when booting the machine on the kernel cmd line:

netcfg/hostname=r1-m1-c11n1 

or when provisioning by adding it to the preseed using {{ hostname }} as if the preseed file were a jinja template. 


Extra fancy kernel cmd lines

netcfg/hostname=r1-m1-c21n1 net.ifnames=0 biosdevname=0