Hello,
I want to install KVM on an RL10 host to run an Alpine Linux guest VM. I have successfully created a similar installation on a CentOS 7 host. It worked out of the box using the KVM ‘default’ NAT network. However, this is not working on RL10. The first thing I ran into was dnsmasq competing with Bind9 to listen on 192.168.122.1:53:
$ virsh net-start default
error: Failed to start network default
error: internal error: Child process (VIR_BRIDGE_NAME=virbr0 /usr/sbin/dnsmasq --conf-file=/var/lib/libvirt/dnsmasq/default.conf --leasefile-ro --dhcp-script=/usr/libexec/libvirt_l
easeshelper) unexpected exit status 2:
dnsmasq: failed to create listening socket for 192.168.122.1: Address already in use
This was fixed by getting Bind9 to exclude the NAT network:
listen-on port 53 { !192.168.122.0/24; any; };
The guest installation was initiated on the host this way:
virt-install
–virt-type kvm
–name ddfilter
–memory 256
–vcpus 1
–cdrom /var/lib/libvirt/boot/alpine-standard-3.22.2-x86_64.iso
–network network=default
–disk /var/lib/libvirt/images/ddfilter.raw,format=raw,size=0.75
–os-variant alpinelinux3.22
–graphics none
The installing process was unable to get an IP from the ‘default’ network:
Which one do you want to initialize? (or ‘?’ or ‘done’) [eth0]
Ip address for eth0? (or ‘dhcp’, ‘none’, ‘?’) [dhcp]
Do you want to do any manual network configuration? (y/n) [n]
udhcpc: started, v1.37.0
udhcpc: broadcasting discover
udhcpc: broadcasting discover
udhcpc: broadcasting discover
udhcpc: broadcasting discover
udhcpc: broadcasting discover
udhcpc failed to get a DHCP lease
udhcpc: no lease, forking to background
The install failed because there wouldn’t be a working network for the guest. The interface in the guest was:
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
link/ether 52:54:00:52:09:37 brd ff:ff:ff:ff:ff:ff
inet6 fe80::5054:ff:fe52:937/64 scope link
valid_lft forever preferred_lft forever
The ‘default’ network interface (address 192.168.122.1) could be pinged on the host, and it appeared active and normal:
$ virsh net-list --all
Name State Autostart Persistent
default active yes yes
Can anyone please advise how this can be fixed?