On Mon, Jul 22, 2019 at 1:27 PM Kaushal Shriyan <kaushalshriyan@xxxxxxxxx> wrote: > > Hi, > > I am confused regarding KVM networking. I have configured base OS and guest OS. > > [root@baremetalinhousebaseserver1 network-scripts]# cat ifcfg-br0 > TYPE=bridge > PROXY_METHOD=none > BROWSER_ONLY=no > BOOTPROTO=static > DEFROUTE=yes > IPV4_FAILURE_FATAL=no > #IPV6INIT=yes > #IPV6_AUTOCONF=yes > #IPV6_DEFROUTE=yes > #IPV6_FAILURE_FATAL=no > #IPV6_ADDR_GEN_MODE=stable-privacy > NAME=br0 > #UUID=af60e6bd-e824-44fa-a816-763e6e977ae6 > DEVICE=br0 > ONBOOT=yes > IPADDR=192.168.0.65 > PREFIX=24 > GATEWAY=192.168.0.10 > DNS1=213.117.155.12 > DNS2=213.117.155.10 > [root@baremetainhousebaseserver1 network-scripts]# cat ifcfg-em1 > TYPE=Ethernet > PROXY_METHOD=none > BROWSER_ONLY=no > BOOTPROTO=static > DEFROUTE=yes > IPV4_FAILURE_FATAL=no > IPV6INIT=yes > IPV6_AUTOCONF=yes > IPV6_DEFROUTE=yes > IPV6_FAILURE_FATAL=no > IPV6_ADDR_GEN_MODE=stable-privacy > NAME=em1 > UUID=af60e6bd-e824-44fa-a816-763e6e977ae6 > DEVICE=em1 > ONBOOT=yes > BRIDGE=br0 > IPADDR=192.168.0.35 > PREFIX=24 > GATEWAY=192.168.0.10 > DNS1=213.117.155.12 > DNS2=213.117.155.10 > [root@baremetainhousebaseserver1 network-scripts]# > > I use the below command to launch KVM guest VM > > #virt-install --name=qubecrafter02 > --file=/var/lib/libvirt/images/apprafter02centos7.img --file-size=50 > --nonsparse --vcpus=2 --ram=8096 --network=bridge:br0 --os-type=linux > --os-variant=rhel7 --graphics none > --location=/var/lib/libvirt/isos/CentOS-7-x86_64-DVD-1810.iso > --extra-args="console=ttyS0" > > I do vim /etc/sysconfig/network-scripts/ifcfg-eth0 on guestosvm1 > > [root@guestosvm1 network-scripts]# cat ifcfg-eth0 > TYPE=Ethernet > PROXY_METHOD=none > BROWSER_ONLY=no > BOOTPROTO=static > DEFROUTE=yes > IPV4_FAILURE_FATAL=no > IPV6INIT=yes > IPV6_AUTOCONF=yes > IPV6_DEFROUTE=yes > IPV6_FAILURE_FATAL=no > IPV6_ADDR_GEN_MODE=stable-privacy > NAME=eth0 > UUID=805ff146-ecc1-460a-a7e2-e35eb19814c2 > DEVICE=eth0 > ONBOOT=yes > IPADDR=192.168.0.66 > PREFIX=24 > GATEWAY=192.168.0.10 > DNS1=213.117.155.12 > DNS2=213.117.155.10 > [root@guestosvm1 network-scripts]# > > I am confused between bridge and ethernet networking. Am i missing > anything in the above configurations, Please comment. > > Thanks in Advance and i look forward to hearing from you. > > Best Regards, > > Kaushal Did you test if bridge was up before adding the vm guest? Why does em1 have an ip?