Hi
I'm having some difficulties with installing Proxmox with my requirements.
I'm trying to create a custom installer image based on debian with Proxmox on top of it.
Why?
I need to be able to install Proxmox automatically without an internet connection.
What I can't use
As far as I know, I can't use the official Proxmox installer because this does not support any preeseeding.
I also cannot install Debian and then Proxmox on top, because both those solutions require an internet connection.
I cannot use the proxmox offline mirror since I have a space constraint of max 5 GB on the share.
My imperfect and problematic solution
Right now, I'm trying to create a custom installer image with all the debian and proxmox packages included, which would result in an image smaller than 2GB.
My nodes will have an internet connection eventually, so they will be updated to the latest software as soon as they are connected to the internet.
I'm using debian live config to create the image. However, there are some issues when installing the proxmox kernel.
Since the installation is done in chroot, a policy-rc is setup to not restart any service.
It looks like the pve-kernel is failing to install, but I cannot figure out why.
Here is the output of the build:
Can someone help?
If there are other solutions to my problem, I am open to suggestions
I'm having some difficulties with installing Proxmox with my requirements.
I'm trying to create a custom installer image based on debian with Proxmox on top of it.
Why?
I need to be able to install Proxmox automatically without an internet connection.
What I can't use
As far as I know, I can't use the official Proxmox installer because this does not support any preeseeding.
I also cannot install Debian and then Proxmox on top, because both those solutions require an internet connection.
I cannot use the proxmox offline mirror since I have a space constraint of max 5 GB on the share.
My imperfect and problematic solution
Right now, I'm trying to create a custom installer image with all the debian and proxmox packages included, which would result in an image smaller than 2GB.
My nodes will have an internet connection eventually, so they will be updated to the latest software as soon as they are connected to the internet.
I'm using debian live config to create the image. However, there are some issues when installing the proxmox kernel.
Since the installation is done in chroot, a policy-rc is setup to not restart any service.
It looks like the pve-kernel is failing to install, but I cannot figure out why.
Here is the output of the build:
Code:
Running in chroot, ignoring command 'daemon-reload'
Created symlink /etc/systemd/system/multi-user.target.wants/pvedaemon.service → /lib/systemd/system/pvedaemon.service.
Created symlink /etc/systemd/system/multi-user.target.wants/pveproxy.service → /lib/systemd/system/pveproxy.service.
Created symlink /etc/systemd/system/multi-user.target.wants/spiceproxy.service → /lib/systemd/system/spiceproxy.service.
Created symlink /etc/systemd/system/multi-user.target.wants/pvestatd.service → /lib/systemd/system/pvestatd.service.
Created symlink /etc/systemd/system/getty.target.wants/pvebanner.service → /lib/systemd/system/pvebanner.service.
Created symlink /etc/systemd/system/multi-user.target.wants/pvescheduler.service → /lib/systemd/system/pvescheduler.service.
Created symlink /etc/systemd/system/timers.target.wants/pve-daily-update.timer → /lib/systemd/system/pve-daily-update.timer.
Created symlink /etc/systemd/system/sysinit.target.wants/pvenetcommit.service → /lib/systemd/system/pvenetcommit.service.
Created symlink /etc/systemd/system/pve-manager.service → /lib/systemd/system/pve-guests.service.
Created symlink /etc/systemd/system/multi-user.target.wants/pve-guests.service → /lib/systemd/system/pve-guests.service.
Backing up lvm.conf before setting pve-manager specific settings..
'/etc/lvm/lvm.conf' -> '/etc/lvm/lvm.conf.bak'
Setting 'global_filter' in /etc/lvm/lvm.conf to prevent zvols from being scanned:
global_filter=["a|.*|"] => global_filter=["r|/dev/zd.*|"]
All runlevel operations denied by policy
/usr/sbin/policy-rc.d returned 101, not running 'start pvedaemon.service'
All runlevel operations denied by policy
/usr/sbin/policy-rc.d returned 101, not running 'start pveproxy.service'
All runlevel operations denied by policy
/usr/sbin/policy-rc.d returned 101, not running 'start spiceproxy.service'
All runlevel operations denied by policy
/usr/sbin/policy-rc.d returned 101, not running 'start pvestatd.service'
All runlevel operations denied by policy
/usr/sbin/policy-rc.d returned 101, not running 'start pvebanner.service'
All runlevel operations denied by policy
/usr/sbin/policy-rc.d returned 101, not running 'start pvescheduler.service'
All runlevel operations denied by policy
/usr/sbin/policy-rc.d returned 101, not running 'start pve-daily-update.timer'
Processing triggers for libc-bin (2.31-13+deb11u5) ...
Processing triggers for rsyslog (8.2102.0-2+deb11u1) ...
Running in chroot, ignoring request.
All runlevel operations denied by policy
invoke-rc.d: policy-rc.d denied execution of try-restart.
Processing triggers for initramfs-tools (0.140) ...
update-initramfs: Generating /boot/initrd.img-5.15.85-1-pve
live-boot: core filesystems devices utils udev blockdev iscsi dns.
Running hook script 'zz-proxmox-boot'..
Re-executing '/etc/kernel/postinst.d/zz-proxmox-boot' in new private mount namespace..
unshare: cannot change root filesystem propagation: Invalid argument
run-parts: /etc/initramfs/post-update.d//proxmox-boot-sync exited with return code 1
dpkg: error processing package initramfs-tools (--configure):
installed initramfs-tools package post-installation script subprocess returned error exit status 1
Processing triggers for pve-ha-manager (3.5.1) ...
Running in chroot, ignoring command 'is-active'
All runlevel operations denied by policy
/usr/sbin/policy-rc.d returned 101, not running 'reload-or-try-restart pve-ha-lrm.service'
Running in chroot, ignoring command 'is-active'
All runlevel operations denied by policy
/usr/sbin/policy-rc.d returned 101, not running 'reload-or-try-restart pve-ha-crm.service'
Errors were encountered while processing:
pve-kernel-5.15.85-1-pve
pve-kernel-5.15
proxmox-ve
initramfs-tools
E: Sub-process /usr/bin/dpkg returned an error code (1)
E: An unexpected failure occurred, exiting...
P: Begin unmounting filesystems...
P: Saving caches...
Reading package lists...
Building dependency tree...
Reading state information...
Can someone help?
If there are other solutions to my problem, I am open to suggestions