Hi everyone! I’m new to OpenNebula and still struggling to run my first VM
I’m able to run a VM and attach a private network to it. VM has status “running”, NIC is attached, IP is assigned, no errors in logs. However, I can’t ping/ssh my VM. Pls advice
bridge name bridge id STP enabled interfaces
br0 8000.e283e4cf86e7 no enp1s0f0
br1 8000.aeba22226b3c no enp1s0f1
one-7-0
virbr0 8000.52540014962e yes vnet5
// Private bridge config
25: br1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
link/ether ae:ba:22:22:6b:3c brd ff:ff:ff:ff:ff:ff
inet 192.168.1.1/24 brd 192.168.1.255 scope global noprefixroute br1
valid_lft forever preferred_lft forever
inet6 fe80::acba:22ff:fe22:6b3c/64 scope link
valid_lft forever preferred_lft forever
// NIC config
NAME = "private"
DESCRIPTION = "Private network"
# Use existing bridge
BRIDGE = br1
VN_MAD="bridge"
# Context attributes
NETWORK_ADDRESS = "192.168.1.0"
GATEWAY = "192.168.1.1"
NETWORK_MASK = "255.255.255.0"
DNS = "8.8.8.8"
SEARCH_DOMAIN = "my.local"
#Address Ranges, only these addresses will be assigned to the VMs
AR=[TYPE = "IP4", IP = "192.168.1.100", SIZE = "100" ]
So we see that one creates a bridge interface over bridge and it doesn’t work. Native KVM VM creates a network interface over a default KVM bridge and this works.
Any clues how to debug this Thank you in advance !
A single KVM host configured by the OS bridge br1 set on enp1s0f1 interface, and IP 192.168.1.1/24 set on the br1.
A VNET configured in OpenNebula with VN_MAD=bridge, BRIDGE=br1, and PHYDEV not defined. With single AR with starting IP 192.168.1.100 and 100 addresses.
A VM is started on the KVM host with an assigned NIC. (assuming the given IP is 192.168.1.100)
Here are some ideas what to check
is the NIC in the VM configured? In the VM we have the IP 192.168.1.100 configured? what is the output of ip -4 addr list
is the bridge br1 still with IP 192.168.1.1 on the host? What is the output of ip -4 addr list
is the VM interface one-{VM_ID}-{NIC_ID} associated with br1 on the host? What is the output of bridge link show, ip link list (here br1 should have two interfaces assigned one-VM_ID-NIC_ID and enp1s0f1
If the NIC in the VM is configured with IP 192.168.1.100/24, br1 on the host is configured with 192.168.1.1/24 and br1 has one-VM_ID-NIC_ID associated, a ping from the host to 192.168.1.100 should succeed…