r/NetBSD • • 10d ago

Problem installing on Proxmox + KVM: exec /sbin/init: error2

Post image

I am pretty new to NetBSD (20+ ys Linux user), I've been trying it out successfully on some older laptops and qemu VMs, and now I am trying to install it on two virtual servers. They're hosted at two different companies, which apparently use custom web UIs to wrap a Proxmox Virtual Environment + KVM. They both offer to mount an ISO as a virtual drive, which I did using NetBSD 11.0 for amd64.

I do get the ISO's boot prompt, I choose "Boot normally", and then, strangely (to me) end up with the very same error on both VMs: Apparently init can not be found, 4 different options are being tried, after which I get dropped at a prompt to give a custom location. See the screenshots of the hosts.

So far I only have a vague idea of the boot process, it looks like the file system to locate /sbin/init in can not be found or identified correctly. I've never had this problem with a local VM. What surprises me is that these seemingly unrelated virtual machines produce the same error.

I also observed that each VM seems to detect more than one virtual CD/DVD drives, even though only one ISO should be mounted.

Before I try random stuff from the web, any tips on how to approach this, and get NetBSD installed?

10 Upvotes

4 comments sorted by

2

u/steverikli 9d ago

Basic stuff first:

What NetBSD ISO are you using? Might be worth verifying it vs. the checksums JIC. If it's actually corrupted (e.g. during download or something) I'd usually think it wouldn't even start loading, and you're getting past that.

What kind of KVM Machine (e.g. Default (i440fx)), controller and hard disk for the install?

BIOS or UEFI? Can you access the virtual bios settings to make sure there's nothing amiss with boot settings and that all the virtual hardware is detected? Usually that stuff is setup okay by default in Proxmox, but it sounds like you may be dealing with a customized environment?

The cd0/cd1 thing does seem odd, and while I wouldn't expect it to cause this problem I'd probably remove extra(s) if you have the ability to edit the KVM hardware in this "custom web UI" around Proxmox. It looks like your left-side pic actually detects 3 DVD devices.

Fwiw I've been running NetBSD VM's in native Proxmox without issues; I've installed them from virtual CD/DVD + NetBSD amd64 ISO and also netboot with PXE. Never seen anything like you're describing, I'm guessing it's related to the virtual hardware options somehow </speculate>.

1

u/flberger 9d ago edited 9d ago

I am using the vanilla NetBSD-11.0-amd64-dvd.iso from the CDN (or in one case, a mirror). Checksum verification is done by the hosting service, I have to assume it passes.

I can not say what specific machine is emulated, as I don't get far enough to obtain that data. I would have to boot something working to get the hardware specs, but I see not much use in that as I'll have to work with what I get anyway.

It's apparently UEFI, I can access the EFI boot configuration, to my eye everything looks reasonable there.

I have no option to remove the bogus DVD devices. The web UIs let me specify one ISO to be mounted along the virtual hd, that's it.

I'm happy for you that you don't see this error, but that makes it all the more strange to me that it happens with two unrelated hosting companies.

1

u/flberger 9d ago

I just verified the checksum of the ISO again, and tried another local install on a qemu vm, which worked flawlessly.