Instantiated VM from Debian 12 (from marketplace). IP assigned correctly, route is there, however no dns resolution.
OpenNebula 6.10.0.1
VM = debian 12 (from marketplace)
network = networkd (forced through context)
CONTEXT section of the vm:
CONTEXT = [
DISK_ID = "1",
ETH0_DNS = "192.168.100.1",
ETH0_EXTERNAL = "",
ETH0_GATEWAY = "192.168.100.1",
ETH0_IP = "192.168.100.102",
ETH0_IP6 = "",
ETH0_IP6_GATEWAY = "",
ETH0_IP6_METHOD = "",
ETH0_IP6_METRIC = "",
ETH0_IP6_PREFIX_LENGTH = "",
ETH0_IP6_ULA = "",
ETH0_MAC = "02:00:c0:a8:aa:b5",
ETH0_MASK = "255.255.255.0",
ETH0_METHOD = "",
ETH0_METRIC = "",
ETH0_MTU = "",
ETH0_NETWORK = "192.168.100.0",
ETH0_SEARCH_DOMAIN = "",
ETH0_VLAN_ID = "",
ETH0_VROUTER_IP = "",
ETH0_VROUTER_IP6 = "",
ETH0_VROUTER_MANAGEMENT = "",
NETCFG_NETPLAN_RENDERER = "networkd",
NETCFG_TYPE = "netplan",
NETWORK = "YES",
TARGET = "hda" ]
However:
netplan config inside vm looks wrong:
# Generated by one-context
network:
version: 2
renderer: networkd
ethernets:
eth0:
addresses:
- 192.168.100.102/24
routes:
- to: "0.0.0.0/0"
via: 192.168.100.1
metric: 0
resolf.conf has correct nameserver, but it’s no good as debian 12 does not have legacy networking, and used newer networkd.
Also tried to force ipv4 = static and ipv6 = disabled. Not injected either.
Bug in context.sh? Workaround?