Hi,
My Proxmox is installed ontop of a Debain 10 ontop of a LVM ontop of LUKS ontop of a mdraid raid1 array.
I use dropbear-initramfs to SSH into the host to unlock the LUKS after boot. Proxmox only starts after I unlocked the LUKS that way.
That worked really fine without any problems, but now I want to change my network so the host is connected to different subnets by a single VLAN Trunk to my switch.
That trunk works fine as soon as proxmox has started but that way I can't use the same NIC to unlock the LUKS because I don't know if initramfs is capable of using tagged VLANs.
Someone know if that is possible?
Another problem is that I want to replace my router with a virtual OPNsense inside a VM on that proxmox host. Right now initramfs is using DHCP and gets a IP of the router I want to replace. So i really need that the initramfs is using a static IP so I can SSH into the initramfs while booting so that it even works without a working router.
My "/etc/initramfs-tools/initramfs.conf" looks like this:
The line "DEVICE=eno2" is working but that way eno2 is used in the default DHCP mode.
The line "ip=192.168.43.50::192.168.43.1:255.255.255.0:Hypervisor:eno2ff:192.168.43.1:192.168.42.1:" should set a static IP, Gateway, DNS-Servers, interface and hostname but it isn't working. It looks like that line is ignored.
Does someone know how to setup a static IP?
My Proxmox is installed ontop of a Debain 10 ontop of a LVM ontop of LUKS ontop of a mdraid raid1 array.
I use dropbear-initramfs to SSH into the host to unlock the LUKS after boot. Proxmox only starts after I unlocked the LUKS that way.
That worked really fine without any problems, but now I want to change my network so the host is connected to different subnets by a single VLAN Trunk to my switch.
That trunk works fine as soon as proxmox has started but that way I can't use the same NIC to unlock the LUKS because I don't know if initramfs is capable of using tagged VLANs.
Someone know if that is possible?
Another problem is that I want to replace my router with a virtual OPNsense inside a VM on that proxmox host. Right now initramfs is using DHCP and gets a IP of the router I want to replace. So i really need that the initramfs is using a static IP so I can SSH into the initramfs while booting so that it even works without a working router.
My "/etc/initramfs-tools/initramfs.conf" looks like this:
Code:
#
# initramfs.conf
# Configuration file for mkinitramfs(8). See initramfs.conf(5).
#
# Note that configuration options from this file can be overridden
# by config files in the /etc/initramfs-tools/conf.d directory.
#
# MODULES: [ most | netboot | dep | list ]
#
# most - Add most filesystem and all harddrive drivers.
#
# dep - Try and guess which modules to load.
#
# netboot - Add the base modules, network modules, but skip block devices.
#
# list - Only include modules from the 'additional modules' list
#
MODULES=most
#
# BUSYBOX: [ y | n | auto ]
#
# Use busybox shell and utilities. If set to n, klibc utilities will be used.
# If set to auto (or unset), busybox will be used if installed and klibc will
# be used otherwise.
#
BUSYBOX=auto
#
# KEYMAP: [ y | n ]
#
# Load a keymap during the initramfs stage.
#
KEYMAP=n
#
# COMPRESS: [ gzip | bzip2 | lz4 | lzma | lzop | xz ]
#
COMPRESS=gzip
#
# NFS Section of the config.
#
#
# DEVICE: ...
#
# Specify a specific network interface, like eth0
# Overridden by optional ip= or BOOTIF= bootarg
#
DEVICE=eno2
ip=192.168.43.50::192.168.43.1:255.255.255.0:Hypervisor:eno2:off:192.168.43.1:192.168.42.1:
#
# NFSROOT: [ auto | HOST:MOUNT ]
#
NFSROOT=auto
#
# RUNSIZE: ...
#
# The size of the /run tmpfs mount point, like 256M or 10%
# Overridden by optional initramfs.runsize= bootarg
#
RUNSIZE=10%
#DROPBEAR=y
The line "DEVICE=eno2" is working but that way eno2 is used in the default DHCP mode.
The line "ip=192.168.43.50::192.168.43.1:255.255.255.0:Hypervisor:eno2ff:192.168.43.1:192.168.42.1:" should set a static IP, Gateway, DNS-Servers, interface and hostname but it isn't working. It looks like that line is ignored.
Does someone know how to setup a static IP?