Comments (4)
@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 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.
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.
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)
- Add filters to targets and environments HOT 4
- Debian 11 image update : no name resolution for new instance HOT 1
- Unable to build from source HOT 3
- pack-lxd: "Failed to create disk image" HOT 1
- pack-lxd: rsync error exit status 11 HOT 2
- cloud-init setting apt.primary does not work on debian.bookworm HOT 1
- Idiomatic way to use systemd-resolved in archlinux? HOT 3
- snap edge no compression level HOT 2
- [Bug] Distrobuilder fails building VMs on RPM based distros HOT 11
- edge snap fails to build-lxc armhf for openwrt HOT 1
- GID=1000 for netdev (Debian bookworm cloud image) HOT 7
- docs: readme suggests invalid go version HOT 3
- Command-line option `build-lxd` should return an error when used HOT 1
- BindReadOnlyPaths=/proc breaks NetworkD sysctl support
- distrobuilder build-incus --sources-dir doesn't match in documentation and source code HOT 1
- Building distrobuilder 3.0 fails (undefined: cmdGlobal) with go 1.21.5 and 1.20.12 HOT 3
- Add riscv64 HOT 7
- Source downloader docker-http - Cannot pull from docker registry HOT 5
- debootstrap: DNS resolution failure HOT 1
- Failed at the 'make' step; make: *** [Makefile:9: default] Error 2 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from distrobuilder.