Giter VIP home page Giter VIP logo

Comments (4)

monstermunchkin avatar monstermunchkin commented on August 9, 2024

@lukasz-zaroda are you still experiencing this issue?

I tried almalinux/9/cloud, and there is no eth0 interface. The System eth0 works as expected.

from distrobuilder.

lukasz-zaroda avatar lukasz-zaroda commented on August 9, 2024

@lukasz-zaroda are you still experiencing this issue?

Yes. Although, I no longer use Almalinux 9 as a host. I just now tested it with Ubuntu 22.04 host, and the problem persists. Please let me know if I could provide you with additional information.

This is the profile used. Image: almalinux/9/cloud.

config:
  user.network-config: |
    #cloud-config
    version: 2
    ethernets:
      eth0:
        dhcp4: no
        dhcp6: no
        addresses:
        - [MY IP ADDRESS]/32
        nameservers:
          addresses:
          - 8.8.8.8
          - 8.8.4.4
          search: []
        routes:
        - to: 0.0.0.0/0
          via: 169.254.0.1
          on-link: true
  user.user-data: |
    #cloud-config
    package_update: true
    package_upgrade: true
    packages:
      - openssh-server
description: AlmaLinux Test.
devices:
  eth0:
    host_name: veth-alma
    ipv4.address: [MY IP ADDRESS]
    nictype: routed
    parent: enp1s0f0
    type: nic
  root:
    path: /
    pool: default
    size: 3GB
    type: disk
name: almalinux-test

from distrobuilder.

monstermunchkin avatar monstermunchkin commented on August 9, 2024

I was able to reproduce your issue using the provided profile. However, I believe this has to do with the routed eth0 device as I couldn't reproduce it otherwise.

For now at least we won't change the system-generator as it solves most problems around NetworkManager in containers, and we don't want to break any other images using it.

Instead, we should allow masking units created by the lxc system-generator. Your issue can then be solved by running systemctl mask network-device-down.service and restarting the container. This only has to be done once, and there's no need to modify the cloud-config.

from distrobuilder.

lukasz-zaroda avatar lukasz-zaroda commented on August 9, 2024

Thanks, that will help! Though, it doesn't change the fact, that container of a common distro family, in common configuration is broken out of the box, which ideally should be fixed. If system-generator is too convoluted right now, to risk fixing this, then maybe some refactoring is needed, and this task simply should be postponed instead of closed? Just my 2c. Either way, the new workaround is very welcomed! :)

from distrobuilder.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.