You are not logged in.

#1 2019-08-02 16:08:35

crazzyfool
Member
Registered: 2014-04-07
Posts: 33

Error creating macvtap interface: Invalid argument

Hi,

I'm trying to setup a couple of virtual machines using virt-manager but I'm having some issues with the networking side of things.  It would seem that when I start the first VM (which works), the network connectivity on the host machine breaks.  If I stop the VM, my network/internet starts to work again.  If I start the second VM I get the below error:

Error starting domain: error creating macvtap interface macvtap1@enp0s31f6 (52:54:00:e6:28:9b): Invalid argument

If I stop the 1st VM, the 2nd VM starts with no issue.  Of course the networking on the host is broken though!  How can I fix this?

This is my configuration:

<interface type="direct">
  <mac address="52:54:00:e6:28:9b"/>
  <source dev="enp0s31f6" mode="passthrough"/>
  <model type="virtio"/>
  <address type="pci" domain="0x0000" bus="0x06" slot="0x00" function="0x0"/>
</interface>

Obviously I want networking on all my VMs and the host machine.  Any ideas how to achieve this?

Offline

#2 2019-08-05 11:53:07

crazzyfool
Member
Registered: 2014-04-07
Posts: 33

Re: Error creating macvtap interface: Invalid argument

Any ideas?

Offline

#3 2019-08-07 09:05:04

crazzyfool
Member
Registered: 2014-04-07
Posts: 33

Re: Error creating macvtap interface: Invalid argument

Well if anyone does have an idea of what to check - that would be greatly appreciated.  Otherwise my solution was to use VirtualBox.

Offline

#4 2019-08-07 10:55:46

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,743

Re: Error creating macvtap interface: Invalid argument

Please stop doing that

I don't have much experience with KVM, though from what I know you shouldn't passthrough your adapter directly, as that is pretty much what will lead to this. If anything configure and use a bridge, or just use an emulated device.

You might want to read http://www.linux-kvm.org/page/Networking

Last edited by V1del (2019-08-07 11:13:37)

Offline

Board footer

Powered by FluxBB