AutoBuilder Cluster Setup: Difference between revisions

From Yocto Project
Jump to navigationJump to search
No edit summary
m (add note to includ epokybuild user in users group)
Line 2: Line 2:
* Install base OS with minimal target
* Install base OS with minimal target
* Add pokybuild user (uid=6000, or for older clusters 1006)
* Add pokybuild user (uid=6000, or for older clusters 1006)
* Add pokybuild user to "users" group (gid 100) [if "users" group does not exist, create it]
* Install the requirements from http://www.yoctoproject.org/docs/current/yocto-project-qs/yocto-project-qs.html
* Install the requirements from http://www.yoctoproject.org/docs/current/yocto-project-qs/yocto-project-qs.html
* git clone --single-branch http://git.yoctoproject.org/git/poky /root/poky  (in /root for historical reasons, should change in the future)
* git clone --single-branch http://git.yoctoproject.org/git/poky /root/poky  (in /root for historical reasons, should change in the future)

Revision as of 15:53, 2 August 2016

As root

  • Install base OS with minimal target
  • Add pokybuild user (uid=6000, or for older clusters 1006)
  • Add pokybuild user to "users" group (gid 100) [if "users" group does not exist, create it]
  • Install the requirements from http://www.yoctoproject.org/docs/current/yocto-project-qs/yocto-project-qs.html
  • git clone --single-branch http://git.yoctoproject.org/git/poky /root/poky (in /root for historical reasons, should change in the future)
  • Install http://downloads.yoctoproject.org/releases/yocto/yocto-{latest release}/toolchain/x86_64/poky-glibc-x86_64-core-image-sato-core2-64-toolchain-{relver}.sh to /opt/poky
  • Add startup scripts to create tap devs and start vncserver, in /etc/rc.local or as systemd unit files, should perform the following
    • cd /root/poky/scripts/; ./runqemu-gen-tapdevs 6000 100 32 /opt/poky/sysroots/x86_64-pokysdk-linux/
    • /bin/su - pokybuild -c "/usr/bin/vncserver"
  • Disable or edit firewall rules to allow all connections to the tap devices. This allows sanity tests to connect to booted images.
  • Install nfs-utils or nfs-common, add Domain to /etc/idmapd.conf, fstab entry, mount NAS

As pokybuild

  • Set up buildset-config, either:
    • edit one of the several examples included in repo e.g. cp -r buildset-config.controller buildset-config
    • Add ssh key to clone production yocto-autobuilder
  • update config/autobuilder.conf and yocto-worker/buildbot.tac
  • Start the worker
    • touch ~/yocto-autobuilder/.setupdone
    • . yocto-autobuilder-setup
    • ./yocto-start-autobuilder worker