WMP / proxmox-hetzner

Install Proxmox-VE on Hetzner dedicated-server without KVM console
3 stars 1 forks source link

support for ovh #2

Open WMP opened 1 month ago

WMP commented 1 month ago

ovh use debian 10 as rescure, script need to:

  1. detect if curl has --remove-on-error
  2. install qemu-system netcat ovmf
  3. use pc-q35-2.10 machine in qemu

add if when ip isn't detected Problem with IPADDR detect:

root@rescue-customer-eu (XXX.eu) ~ # udevadm info -e | grep -m1 -A 20 ^P.*${WAN_IFACE} | grep ID_NET_NAME_PATH | cut -d'=' -f2
root@rescue-customer-eu (XXX.eu) ~ # udevadm info -e | grep -m1 -A 20 ^P.*${WAN_IFACE} | grep ID_NET_NAME_PATH
root@rescue-customer-eu (XXX.eu) ~ # udevadm info -e | grep -m1 -A 20 ^P.*${WAN_IFACE}
P: /devices/LNXSYSTM:00
L: 0
E: DEVPATH=/devices/LNXSYSTM:00
E: SUBSYSTEM=acpi
E: MODALIAS=acpi:LNXSYSTM:
E: USEC_INITIALIZED=26666823
E: ID_VENDOR_FROM_DATABASE=The Linux Foundation

P: /devices/LNXSYSTM:00/ACPI0008:00
L: 0
E: DEVPATH=/devices/LNXSYSTM:00/ACPI0008:00
E: SUBSYSTEM=acpi
E: MODALIAS=

P: /devices/LNXSYSTM:00/INT339B:00
L: 0
E: DEVPATH=/devices/LNXSYSTM:00/INT339B:00
E: SUBSYSTEM=acpi
E: MODALIAS=

P: /devices/LNXSYSTM:00/INT3420:00
root@rescue-customer-eu (XXX.eu) ~ # bash install-proxmox.sh --list-ifaces
Interface: bond0

Interface: bonding_masters

Interface: dummy0

Interface: erspan0

Interface: eth0
  E: ID_NET_NAME_PATH: enp4s0f0
  E: ID_NET_NAME_ONBOARD: eno1
Interface: eth1
  E: ID_NET_NAME_PATH: enp4s0f1
  E: ID_NET_NAME_ONBOARD: eno2
Interface: gre0

Interface: gretap0

Interface: ifb0

Interface: ifb1

Interface: ip6tnl0

Interface: sit0

Interface: teql0

Interface: tunl0

Interface: usb0
  E: ID_NET_NAME_PATH: enp0s20f0u8u3c2

root@rescue-customer-eu (XXX.eu) ~ #
WMP commented 1 month ago

This commit: https://github.com/WMP/proxmox-hetzner/commit/17bf90548fbc03990c88eb0957420b7da951a99f fixes many problems, but unfortunately two remain and I do not know how to solve them.

  1. qemu which is supposed to run the already installed system does not receive the network, can not download packages. Perhaps you need to configure the bridge and connect it through the bridge.

  2. The installer in /etc/network/interfaces adds a bridge and connects it to the port: enp4s0f0 , and no such port exists. The ip a l shows the interface eno1, which has such altname set. I don't know how to pick out what the interface name will be, and connecting to an interface.