Basic VM Network Settings
An easy way to configure VM network settings is to reuse the network configuration from the VM host. This guide shows how to retrieve the required network values from a basic VM host setup.
Gateway IP address​
The gateway IP address currently used by the VM host. On the VM host, run:
ip route show | grep default | head -1 | cut -d" " -f3
Nameserver (DNS) IP address​
The DNS nameserver IP addresses currently used by the VM host. On the VM host, run:
# Ubuntu
resolvectl status | grep "Current DNS" | head -1 | cut -d " " -f4
# Rocky Linux / RHEL
nmcli dev show | grep DNS | cut -d ":" -f2 | sed 's/^[ \t]*//'
Network Bridges​
List available network bridges on the VM host by running:
ip link show type bridge
If a bridge is not available, see basic bridge creation for guidance on creating network bridges.
Ceph Storage Pool​
List storage pools on the VM host and verify whether any are configured for Ceph RBD. On the VM host, run:
virsh pool-list --all
If a virsh storage pool for Ceph is not available and a Ceph storage service is available, see ceph configuration for steps on creating a virsh RBD storage pool.