Jump to content
funtoo forums


  • Content count

  • Joined

  • Last visited

  1. *.host.funtoo.org kernel

    Hi, just curious. :) What are the reason(s) that kernel for *.hots.funtoo.org has been switched (downgraded) from 4.14 to 4.9? Thanks, -- Saulius
  2. LXD/LXC container's config file in Funtoo

    Good to know. Thank you!
  3. LXD/LXC container's config file in Funtoo

    Do I understand correctly that in case of LXD/LXC containers there is no configuration file, and all configuration (LXD's and containers) is stored in LXD DB /var/lib/lxd/lxd.db ?
  4. Hello, where configuration file of LXD/LXC containers is store in Funtoo? According to google that such files, in some other LINUX distributions, are stored in /var/lib/lxc/container/<container>/config or /container/<container>/config, but no such file exists in Funtoo. I'm asking this so I would be able, for example, to change from lxc.network.type = veth lxc.network.flags = up lxc.network.link = br0 to lxc.network.type = macvlan lxc.network.macvlan.mode = bridge lxc.network.flags = up lxc.network.link = eth0 Thank you, -- Saulius
  5. LXC/LXD storage: LVM vs ZFS

    Thank you for information.
  6. Hello, If I''m not mistaked, funtoo hosting is using ZFS. I use LVM all the time, but it seems that users of LXC/LXD more favores ZFS. How stable ZFS in production? Has anybody, from funtoo community, experienced any problems, or data loss with ZFS? Does LVM has some real dowsides comparing to ZFS, in real usage? Has anybody experienced any? It would be interesting to know what storage driver people choose for their LXC/LXD servers? Thank you, -- Saulius p.s. I know there is documentation https://lxd.readthedocs.io/en/latest/storage/ but documentation is one thing, and user's experience another... :)
  7. Migrate from OpenVZ to LXC/LXD

    It was easier than I expected. :) Now I have working LXC/LXD server and can start testing my openvz migration.
  8. Migrate from OpenVZ to LXC/LXD

    Thank you. I successfully copied the files and be able to start the container. Now I'm trying to setup networking for migrated container so that its could accessed from the network directly ( no NAT). According LXC documentation config file should be located in container's directory, but I see no such file. Where can I find the config file for container? Thank you, -- Saulius
  9. Migrate from OpenVZ to LXC/LXD

    Sorry, have more questions. In the https://www.funtoo.org/LXD/OpenVZ_migration there is a paragraph When container is running /var/lib/lxd/storage-pools/default/containers/<container> contains files "backup.yaml" and "metadata.yaml"; and directories "rootfs" "templates". But if container is stopped the directory is empty. So I'm wandering - how to "replace" the rootfs? And does "replace" means just copy files from /vz/private/<ctid> ? My system's # lxc info returns config: {} api_extensions: - storage_zfs_remove_snapshots - container_host_shutdown_timeout - container_stop_priority - container_syscall_filtering - auth_pki - container_last_used_at - etag - patch - usb_devices - https_allowed_credentials - image_compression_algorithm - directory_manipulation - container_cpu_time - storage_zfs_use_refquota - storage_lvm_mount_options - network - profile_usedby - container_push - container_exec_recording - certificate_update - container_exec_signal_handling - gpu_devices - container_image_properties - migration_progress - id_map - network_firewall_filtering - network_routes - storage - file_delete - file_append - network_dhcp_expiry - storage_lvm_vg_rename - storage_lvm_thinpool_rename - network_vlan - image_create_aliases - container_stateless_copy - container_only_migration - storage_zfs_clone_copy - unix_device_rename - storage_lvm_use_thinpool - storage_rsync_bwlimit - network_vxlan_interface - storage_btrfs_mount_options - entity_description - image_force_refresh - storage_lvm_lv_resizing - id_map_base - file_symlinks - container_push_target - network_vlan_physical - storage_images_delete - container_edit_metadata - container_snapshot_stateful_migration - storage_driver_ceph - storage_ceph_user_name - resource_limits - storage_volatile_initial_source - storage_ceph_force_osd_reuse - storage_block_filesystem_btrfs - resources - kernel_limits - storage_api_volume_rename - macaroon_authentication - network_sriov - console - restrict_devlxd - migration_pre_copy - infiniband - maas_network api_status: stable api_version: "1.0" auth: trusted public: false auth_methods: - tls environment: addresses: [] architectures: - x86_64 - i686 certificate: | -----BEGIN CERTIFICATE----- MIIFPTCCAyWgAwIBAgIQTiCRM+vTvY28b70rgjuSlTANBgkqhkiG9w0BAQsFADAx ... vg== -----END CERTIFICATE----- certificate_fingerprint: a1d240ce836f964a92433d9df8441bdcd9584b61d6c0f928be71d0931d4ddb8f driver: lxc driver_version: 2.1.1 kernel: Linux kernel_architecture: x86_64 kernel_version: 4.15.17-1 server: lxd server_pid: 32662 server_version: "2.21" storage: zfs storage_version: 0.7.6-r0-gentoo Thank you, -- Saulius
  10. Hello, while following Daniel's post how to upgrade to 1.2 Funtoo running fun ~ # emerge -uDNv @world got These are the packages that would be merged, in order: Calculating dependencies - !!! Problem resolving dependencies for dev-ruby/did_you_mean from @selected ... done! !!! The ebuild selected to satisfy "dev-ruby/did_you_mean" has unmet requirements. - dev-ruby/did_you_mean-1.2.0::ruby-kit USE="-test" RUBY_TARGETS="-ruby25" The following REQUIRED_USE flag constraints are unsatisfied: ruby_targets_ruby25 The above constraints are a subset of the following complete expression: any-of ( ruby_targets_ruby25 ) (dependency required by "@selected" [set]) (dependency required by "@world" [argument]) How to resolve this? Thank you, -- Saulius
  11. Hi, currently I'm running Funtoo server with several OpenVZ containers. Funtoo moving to LXC/LXD, so I think it's time for me too. The upgrade of the host system to new kernel and LXC/LXD is very straightforward, no questions there. But what is the best way to migrate OpenVZ containers to LXC/LXD? Thank you, -- Saulius
  12. Does it mean that I my system can not be upgraded to Funtoo 1.2? Is there any workaround, USE flag or something?
  13. Hello, just tried to upgrade my system to 1.2 Funtoo, but # emerge -u1 glibc libnsl libtirpc rpcsvc-proto failed with >>> Verifying ebuild manifests >>> Running pre-merge checks for sys-libs/glibc-2.26-r6 make -j5 -s glibc-test make -j5 -s glibc-test >>> Emerging (1 of 4) sys-libs/glibc-2.26-r6::core-kit * Fetching files in the background. * To view fetch progress, run in another terminal: * tail -f /var/log/emerge-fetch.log * glibc-2.26.tar.xz SHA256 SHA512 WHIRLPOOL size ;-) ... [ ok ] * glibc-2.26-patches-7.tar.bz2 SHA256 SHA512 WHIRLPOOL size ;-) ... [ ok ] * gcc-4.7.3-r1-multilib-bootstrap.tar.bz2 SHA256 SHA512 WHIRLPOOL size ;-) ... [ ok ] >>> Unpacking source... >>> Unpacking gcc-4.7.3-r1-multilib-bootstrap.tar.bz2 to /var/tmp/portage/sys-libs/glibc-2.26-r6/work * Checking gcc for __thread support ... [ ok ] * Checking kernel version (2.6.32 >= 3.2.0) ... [ !! ] * You need a kernel of at least 3.2.0 for NPTL support! * ERROR: sys-libs/glibc-2.26-r6::core-kit failed (unpack phase): * Kernel version too low! * * Call stack: * ebuild.sh, line 92: Called src_unpack * environment, line 3586: Called check_nptl_support * environment, line 771: Called die * The specific snippet of code: * die "Kernel version too low!"; * * If you need support, post the output of `emerge --info '=sys-libs/glibc-2.26-r6::core-kit'`, * the complete build log and the output of `emerge -pqv '=sys-libs/glibc-2.26-r6::core-kit'`. * The complete build log is located at '/var/log/portage/sys-libs:glibc-2.26-r6:20180506-183800.log'. * For convenience, a symlink to the build log is located at '/var/tmp/portage/sys-libs/glibc-2.26-r6/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/sys-libs/glibc-2.26-r6/temp/environment'. * Working directory: '/var/tmp/portage/sys-libs/glibc-2.26-r6/work' * S: '/var/tmp/portage/sys-libs/glibc-2.26-r6/work/glibc-2.26' My system's info # uname -a Linux box 2.6.32-042stab123.9 #1 SMP Sat Aug 19 19:04:29 EEST 2017 x86_64 Intel(R) Xeon(R) CPU E3-1225 v3 @ 3.20GHz GenuineIntel GNU/Linux # emerge --info Portage 2.3.24 (python 3.4.6-final-0, funtoo/1.0/linux-gnu/arch/x86-64bit, gcc-5.4.0, glibc-2.23-r8, 2.6.32-042stab123.9 x86_64) ================================================================= System uname: Linux-2.6.32-042stab123.9-x86_64-Intel-R-_Xeon-R-_CPU_E3-1225_v3_@_3.20GHz-with-gentoo-2.2.2 KiB Mem: 16336436 total, 3426588 free KiB Swap: 8380412 total, 6221460 free sh bash 4.4_p18 ld GNU ld (Gentoo 2.28 p1.2) 2.28 app-shells/bash: 4.4_p18::core-kit dev-lang/perl: 5.24.0-r3::perl-kit dev-lang/python: 2.7.13-r1::python-kit, 3.4.6-r1::python-kit dev-util/cmake: 3.8.0::core-kit sys-apps/baselayout: 2.2.2::core-kit sys-apps/openrc: 0.35.0_beta1-r1::core-kit sys-apps/sandbox: 2.10-r4::core-kit sys-devel/autoconf: 2.69-r2::gentoo sys-devel/automake: 1.13.4-r2::core-kit, 1.14.1-r2::core-kit, 1.15.1-r2::core-kit sys-devel/binutils: 2.24-r3::gentoo, 2.25-r2::gentoo, 2.28-r4::core-kit, 2.29.1-r1::core-kit sys-devel/gcc: 4.8.5-r1::gentoo, 4.9.3-r3::gentoo, 5.3.0-r2::core-kit, 5.4.0-r1::core-kit sys-devel/gcc-config: 1.8-r1::gentoo sys-devel/libtool: 2.4.6-r4::core-kit sys-devel/make: 4.1-r1::gentoo sys-kernel/linux-headers: 4.9::core-kit (virtual/os-headers) sys-libs/glibc: 2.23-r8::core-kit Repositories: nokit location: /var/git/meta-repo/kits/nokit masters: core-kit priority: -500 SG-funtoo-overlay location: /vz/shared/funtoo/portage-local masters: core-kit priority: 0 core-hw-kit location: /var/git/meta-repo/kits/core-hw-kit masters: core-kit priority: 1 core-kit location: /var/git/meta-repo/kits/core-kit masters: core-kit priority: 1 aliases: gentoo desktop-kit location: /var/git/meta-repo/kits/desktop-kit masters: core-kit priority: 1 dev-kit location: /var/git/meta-repo/kits/dev-kit masters: core-kit priority: 1 editors-kit location: /var/git/meta-repo/kits/editors-kit masters: core-kit priority: 1 games-kit location: /var/git/meta-repo/kits/games-kit masters: core-kit priority: 1 gnome-kit location: /var/git/meta-repo/kits/gnome-kit masters: core-kit priority: 1 haskell-kit location: /var/git/meta-repo/kits/haskell-kit masters: core-kit priority: 1 java-kit location: /var/git/meta-repo/kits/java-kit masters: core-kit priority: 1 kde-kit location: /var/git/meta-repo/kits/kde-kit masters: core-kit priority: 1 lang-kit location: /var/git/meta-repo/kits/lang-kit masters: core-kit priority: 1 lisp-scheme-kit location: /var/git/meta-repo/kits/lisp-scheme-kit masters: core-kit priority: 1 llvm-kit location: /var/git/meta-repo/kits/llvm-kit masters: core-kit priority: 1 media-kit location: /var/git/meta-repo/kits/media-kit masters: core-kit priority: 1 ml-lang-kit location: /var/git/meta-repo/kits/ml-lang-kit masters: core-kit priority: 1 net-kit location: /var/git/meta-repo/kits/net-kit masters: core-kit priority: 1 perl-kit location: /var/git/meta-repo/kits/perl-kit masters: core-kit priority: 1 php-kit location: /var/git/meta-repo/kits/php-kit masters: core-kit priority: 1 python-kit location: /var/git/meta-repo/kits/python-kit masters: core-kit priority: 1 ruby-kit location: /var/git/meta-repo/kits/ruby-kit masters: core-kit priority: 1 science-kit location: /var/git/meta-repo/kits/science-kit masters: core-kit priority: 1 security-kit location: /var/git/meta-repo/kits/security-kit masters: core-kit priority: 1 text-kit location: /var/git/meta-repo/kits/text-kit masters: core-kit priority: 1 xfce-kit location: /var/git/meta-repo/kits/xfce-kit masters: core-kit priority: 1 xorg-kit location: /var/git/meta-repo/kits/xorg-kit masters: core-kit priority: 1 Installed sets: @kernel ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="*" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-mtune=generic -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-mtune=generic -O2 -pipe" DISTDIR="/var/cache/portage/distfiles" FEATURES="assume-digests binpkg-logs buildpkg config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="" GENTOO_MIRRORS="https://fastpull-us.funtoo.org" LANG="en_US.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--as-needed" MAKEOPTS="-j5" PKGDIR="/var/cache/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_TMPDIR="/var/tmp" USE="acl amd64 bash-completion berkdb bzip2 cracklib crypt cxx gdbm iconv icu ipv6 mmx modules mudflap multilib ncurses nls nptl openmp pam pcre perl png python readline resolvconf sse sse2 ssl tcpd unicode vim-syntax xattr xml zlib" ABI_X86="64" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias authn_core authz_core socache_shmcb unixd" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64 pc" INPUT_DEVICES="evdev synaptics keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" NGINX_MODULES_HTTP="access addition auth_basic auth_request autoindex browser cache_purge charset concat dav dav_ext degradation echo empty_gif ey_balancer fastcgi flv geo geoip gunzip gzip gzip_static headers_more image_filter limit_conn limit_req limit_zone lua map memcached metrics perl proxy push push_stream random_index realip referer rewrite scgi secure_link security slowfs_cache split_clients spdy ssi sticky stub_status sub upstream_check upstream_ip_hash upload_progress userid uwsgi xslt" NGINX_MODULES_MAIL="imap pop3 smtp" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-0" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_4" PYTHON_TARGETS="python3_4 python2_7" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby22" USERLAND="GNU" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, ENV_UNSET, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS Any comments?
  14. I checked the lxd logs and found Mar 6 11:25:03 joke lxd[17164]: action=r err="Failed to run: apparmor_parser -rWL /var/lib/lxd/security/apparmor/cache /var/lib/lxd/security/apparmor/profiles/lxd-fun-2: AppArmor parser error for /var/lib/lxd/security/apparmor/profiles/lxd-fun-2 in /var/lib/lxd/security/app armor/profiles/lxd-fun-2 at line 1: Could not open 'tunables/global'" lvl=eror msg="Running apparmor" output="AppArmor parser error for /var/lib/lxd/security/apparmor/profiles/lxd-fun-2 in /var/lib/lxd/security/apparmor/profiles/lxd-fun-2 at line 1: Could not open 'tunables /global'\n" t=2018-03-06T11:25:03+0200 Mar 6 11:25:03 joke lxd[17164]: container=fun-2 err="Failed to run: apparmor_parser -rWL /var/lib/lxd/security/apparmor/cache /var/lib/lxd/security/apparmor/profiles/lxd-fun-2: AppArmor parser error for /var/lib/lxd/security/apparmor/profiles/lxd-fun-2 in /var/lib/lxd/secur ity/apparmor/profiles/lxd-fun-2 at line 1: Could not open 'tunables/global'" lvl=eror msg="start hook failed" t=2018-03-06T11:25:03+0200 While installing LXD/LXC I also installed "sys-apps/apparmor", without "sec-policy/apparmor-profiles". Installing "sec-policy/apparmor-profiles" solved the problem.