-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
systemd-nspawn booting Ubuntu stuck on Reached target Host and Network Name Lookups. #17686
Comments
host and machine IDs are equal? that#s weird. Consider using "journalctl -M …" to have a look at the logs while the system boots up. Can you log into the system with "machinectl … shell"? Normally the getty for systemd running in containers is instantiated via the "systemd-getty-generator". Is that installed in your container? Does it run? If you turn on debug logging, anything more you see? (pass |
It sure is. And I'm not sure why it would say that because /etc/machine-id is certainly different between host and guest.
Okay here's the output:
Machinectl shell does not work. It's stuck at Interestingly,
I am not familiar with Getty. The container I'm using is actually a fresh Ubuntu Mate image I downloaded from here.
Yes I see a lot more, at first. But near the point when the boot process hangs, there is no additional output. |
That appears to be a bug in Ubuntu: https://bugs.launchpad.net/ubuntu/+source/update-notifier/+bug/1881548
Maybe ask them for help? getty is the thing that shows the login prompt. please paste the debug log somewhere. |
@poettering Sometimes it stops at "Started Hostname Service., other times at "Started Network Name Resolution.", "Reached target OEM Configuration.", or at "Started Network Manager Script Dispatcher Service." It seems like there's some other process or service, that's started earlier on, that eventually stops the boot process.
|
I have similar problem after upgrading kernel today. Booting freezes on the same step (Reached target Host and Network Name Lookups), I have to change terminal and start X by hand (but it starts without hardware acceleration and wifi, running very slow). I spent few hours trying to solve it, without success. Ubuntu 20.10 with kernel |
FYI: I was able to boot normally (with video and wifi drivers) using |
@Botspot What is "oem-config.target"? Your system is booting into some custom target, not multi-user.target or graphical.target. That target probably doesn't pull in getty.target. This is a local misconfiguration or some distro-specific change. It's not a bug in systemd, since we upstream know no "oem-config.target". If this is a target you added, please fix your configuration. If you need help for that, contact the systemd mailing list or so, which is the better place for support. If this is a target invented by your downstream distro, please contact them/their community for help. Either way, let's close this here, since this is a downtsream/local issue, not an upstream one. Hope that makes sense. |
@poettering How have we confirmed that OEM-config.target is surely the cause for the freezes? Concerning your theory that it's a "local misconfiguration", please remember that this is a fresh Ubuntu image, downloaded straight from their download page. |
There's no freeze. The target just doesn't list the gettys, so you don't get any. The system is fully up, just without the services that give you the login prompt, that is all. It's explicitly configured that way, and has nothing to do with systemd itself. Again, talk to your distro if you didn't add "oem-config.target". it's not an upstream feature. I don't know what it is. Ask you distro for help. Maybe @mbiebl can help? |
I experience the same problem using a network install ob ubuntu 21.04. |
Funnily enough, I experience this with packer (1.7.4 deployed on proxmox 6.4-9/ubuntu 20.04.2) :) It simply won't continue, stops every time at Network/Host and Network Name Lookups. It freezes completely. Cannot access anything else. |
Using Packer 1.7.8 and ubuntu 20.04 image we receive the same issue as Lethargosapatheia explained. During packer build the VM gets stuck stating "Reached target Host and Network Name Lookups". Was resolution ever found? |
@durfman in my case the problem was related to cloud-init, which is not terribly explicit, unfortunately. I think the problem at that point was that it couldn't get network access at all or something to that effect.
The variables need to be substituted with the respective values, of course. You can find the explanation (although not particularly direct, but you can infer it) here: [later edit:] |
Someone else theorized that the cause of the frozen boot was because an initial setup service failed to run. |
@Botspot I am quite sure it depends on the context and the error doesn't refer to something in particular, you can just limit the range of possibilities. In my care, for instance, this wasn't related to oem, as this service doesn't exist on Ubuntu virtual machines. |
I know this post is already over a year old, but I had the same problem when trying to build my packer project to Proxmox over a VPN. Like @lethargosapatheia said the server couldn't reach the host I was running Packer from. The creation of a Bastion host did the trick for me. |
systemd version the issue has been seen with
Used distribution
I have downloaded an armhf Ubuntu 20.04 image. After mounting the image to
/media/pi/vdesktop
, I run this command:Full output:
Linux kernel version used (
uname -a
)Expected behaviour you didn't see
Unexpected behaviour you saw
How to fix? Is there a systemd service I can mask in the Ubuntu image to allow the boot process to continue?
The text was updated successfully, but these errors were encountered: