[opensuse-buildservice] systemd-nspawn -D obs_server
Hi, I am trying to setup a new tumbleweed_into_dir, install obs and run it as nspawn container, using the OBS:/Server:/Unstable/openSUSE_Factory repo So far it works except that signing fails and building for anything that requires make. At the end of the email you will find the commands used to setup everything so far. I would like to know if someone has a suggestion how to fix build and signing issue. The build process log show various /dev/null permission denied and someObsDir/dev/loopback's mknod failed Adding --property='DevicePolicy=auto' to nspawn command which should allow all devices, had no effect, although I am not absolutely sure if this isn't ignore because of another conf file somewhere. mkdir obs_server && cd obs_server sudo mkdir -p sys proc dev etc/zypp/repos.d sudo mount -t proc proc proc/ sudo mount -o bind /sys sys/ sudo mount -o bind /dev dev/ sudo zypper --no-gpg-checks --non-interactive --cache-dir /var/cache/zypp --root obs_server in --allow-unsigned-rpm --auto-agree-with-licenses filesystem bash permissions sudo zypper --no-gpg-checks --non-interactive --cache-dir /var/cache/zypp --root obs_server in --allow-unsigned-rpm --auto-agree-with-licenses filesystem bash bash-completion cpio coreutils glibc permissions systemd systemd-rpm-macros systemd-presets-branding-openSUSE distribution-logos-Novos rpm zypper nano system-group-wheel system-group-hardware system-user-bin system-user-root system-user-nobody sudo systemd-network yast2-network NetworkManager nmcli-dmenu mariadb systemd-container sudo zypper --no-gpg-checks --non-interactive --cache-dir /var/cache/zypp --root obs_server in --allow-unsigned-rpm --replacefiles --auto-agree-with-licenses -t pattern OBS_Server #bind later by nspawn must be removed sudo rm obs_server/etc/resolv.conf sudo umount -l proc sudo umount -l dev sudo umount -l sys #boot it sudo systemd-nspawn -D /path/to/obs -b --resolv-conf=bind-host --capability=all #from another console sudo machinectl --machine obs_server shell #run it and ignore all errors for now # at hostname give it localhost /usr/lib/obs/server/setup-appliance.sh --force #required? /etc/sign.conf add allow localhost allow localhost.localdomain #below is required on every container boot at the moment #/run is a temp overlay into the container mkdir -p /run/mysql/ /run/passenger/ && chmod -R 777 /run/mysql/ #chown -R mysql:mysql /run/mysql fails - no such group mysql though it exist #private-users=pick --private-users-chown for systemd-nspawn may fix this #but on opensuse these two break nspawn-boot systemctl restart mariadb systemctl restart apache2 on the host you can open the web broweser and go to 127.0.0.1 Regards, Damian -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
participants (1)
-
Damian Ivanov