Host(ubuntu16.04) has /64 ipv6 assigned to it and one ipv4 address.

Trying to create a ubuntu virtual machine in macvtap network mode and assign a public ipv6.

So I Created 'macvtap' network using following xml

  <forward mode="vepa">
    <interface dev="bond0"/>

Then installed ubuntu-16.04 OS with 'macvtap' network.

virt-install --name rf --os-variant=ubuntu16.04 --ram 2048 --vcpus 2 --cdrom /home/kvm/ubuntu-16.04.5-server-amd64.iso --disk path=/home/kvm/rf.img --noautoconsole --network network=macvtap --graphics vnc,listen=,port=5910

During installation process, ubuntu fails to setup network and provides options to setup manual network or to skip it. I opted to skip network configuration and installed os successfully.

network on host:

macvtap0@bond0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN group default qlen 500
    link/ether 52:54:00:ed:57:30 brd ff:ff:ff:ff:ff:ff
    inet6 fe80::5054:ff:feed:5730/64 scope link
       valid_lft forever preferred_lft forever

On vm eth0 is created with same mac address 52:54:00:ed:57:30

How do i configure virtual machine network, i tried to add ipv6 address to eth0 from /64 public addresses, but its not reachable.

  • Does your switch support virtual Ethernet bridging and did you enable it on the switch? – Michael Hampton Oct 24 at 21:45
  • I don't know what a virtual ethernet bridge is. Googled it but the explanations are hard to understand, how do i check if its enabled. Thank you for the help. – user3713466 Oct 25 at 7:52
  • That depends on the speciific model of switch, which you didn't mention. Remember that you need to include all relevant information in your question, even if nobody has asked you for it yet. – Michael Hampton Oct 25 at 14:17

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.