I'm trying to (automatedly) virt-install an Ubuntu 16.04 guest on a CentOS 7 libvirtd with a kickstart file.
The Ubuntu guest is to have two interfaces which are mapped to two bridged interfaces on the server, br1
and br182
.
The kickstart configuration is
network --onboot=yes --device=eth0 --noipv6 --bootproto=static --ip=10.0.192.20 --netmask=255.255.255.0 --gateway=10.0.192.253 --nameserver=10.0.192.2,10.0.198.3
network --onboot=yes --device eth1 --noipv6 --bootproto=static --ip=10.0.182.20 --netmask=255.255.255.0
network --hostname buntuguest.centosdom.local
the virt-install command I'm running is:
virt-install --os-type linux \
--os-variant ubuntu16.04 \
--name buntuguest \
--ram 3072 \
--disk path=/dev/centos_host/lv_buntuguest,device=disk,bus=virtio \
--vcpus 4 \
--os-type linux \
--network bridge=br1,model=virtio \
--network bridge=br182,model=virtio \
--graphics none \
--initrd-inject=/var/lib/libvirt/images/buntuguest.ks \
--extra-args 'console=ttyS0,115200n8 serial ks=file:/buntuguest.ks' \
--location="http://archive.ubuntu.com/ubuntu/dists/xenial-updates/main/installer-amd64/"
But when the install reaches network, the install complains:
┤ [!] Configure the network ├ │
│
│ Unreachable gateway
│
│ The gateway address you entered is unreachable.
│ You may have made an error entering your IP address, netmask and/or │
│ gateway.
and it refuses to move from this point. This is strange because I've installed multiple vms this exact same way, though they were all RHEL/CentOS (6/7). Please what am I doing wrong?