r/NetBSD • u/flberger • 10d ago
Problem installing on Proxmox + KVM: exec /sbin/init: error2
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?
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>.