Bug 1186928 - libvirtd with virtio fails with virNetDevMacVLanCreateWithVPortProfile flag
Summary: libvirtd with virtio fails with virNetDevMacVLanCreateWithVPortProfile flag
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Virtualization Tools
Classification: Community
Component: libvirt
Version: unspecified
Hardware: x86_64
OS: Linux
unspecified
urgent
Target Milestone: ---
Assignee: Libvirt Maintainers
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-01-28 21:39 UTC by Sergey Zemtsov
Modified: 2015-01-29 16:33 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-01-29 13:21:15 UTC
Embargoed:


Attachments (Terms of Use)

Description Sergey Zemtsov 2015-01-28 21:39:15 UTC
Description of problem:

Cannot start domains with virtio driver defined using libvirtd version 1.2.9

With error message below:

Unable to complete install: 'unsupported flags (0x1) in function virNetDevMacVLanCreateWithVPortProfile'




Version-Release number of selected component (if applicable):
# libvirtd --version

 libvirtd (libvirt) 1.2.9

How reproducible:

To start any virtual machine 
using virtio driver, 
I.e selected from virt-manager network devices  drop-down list.



Steps to Reproduce:
1.
create virtual machine (domain) with network device using virtio driver
2.
virsh start <domain>



Actual results:

Unable to complete install: 'unsupported flags (0x1) in function virNetDevMacVLanCreateWithVPortProfile'

Expected results:

Domain running


Additional info:

the bug comes out from gplhost openstack juno repository after libvirt 1.2.8 version was changed to 1.2.9

Comment 1 Ján Tomko 2015-01-29 09:08:38 UTC
That libvirt was compiled without macvtap support.

I have sent an upstream patch which should result in a better error message:
https://www.redhat.com/archives/libvir-list/2015-January/msg01041.html

Comment 2 Sergey Zemtsov 2015-01-29 11:46:32 UTC
Thank you. I will try patch given. 

However error message comes out with binary libvirtd from gplhost repository. Was it built without macvtap? And other drivers from virt-manager list are working with macvtap but virtio.

Comment 3 Ján Tomko 2015-01-29 13:21:15 UTC
The fix for the error message has been pushed upstream:
commit 08d1ae16d6d7264d5597fea61a87a9a3340cd43d
CommitDate: 2015-01-29 10:06:56 +0100

    Remove flag checking in MacVLanCreate helper stub
    
    When compiling without WITH_MACVTAP, we can get:
    'unsupported flags (0x1) in function
    virNetDevMacVLanCreateWithVPortProfile'
    on an attempt to start a domain.
    
    Remove the flag check to reach the more helpful error:
    Cannot create macvlan devices on this platform
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1186928

git describe: v1.2.12-40-g08d1ae1

This has no effect on functionality, there's no reason to try the patch.
The fix is to rebuild libvirt --with-macvtap

Comment 4 Sergey Zemtsov 2015-01-29 16:33:45 UTC
This works for me. 

But 1st it means version in juno repository is compiled without macvtap. 2nd, in virt-manager 0.9.1 macvtap is missed after reinstallation of daemon. I do not care because it works as "source device Direct " , device model "virtio".  But certain confusion exists.


Note You need to log in before you can comment on or make changes to this bug.