Comment 0 for bug 1758037

Revision history for this message
bugproxy (bugproxy) wrote :

== Comment: #2 - Mallesh N. Koti <email address hidden> - 2018-02-28 05:02:49 ==

Guest Xml

=======
ISSUE
=======
Defining a network filter and Starting a VM with this nwfiter in VM's xml is failing with "cause is unknown".

==================
Recreation Steps
==================

1. Define a network filter as:
  virsh nwfilter-define filter.xml

2. Add nwfilter in guest xml and start guest.
  virsh start VM1

It fails with :
# virsh start VM1
error: Failed to start domain VM1
error: An error occurred, but the cause is unknown

XML used for defining network filter:
```<?xml version='1.0' encoding='UTF-8'?>
<filter chain="root" name="clean-traffic" priority="">
  <uuid>11111111-b071-6127-b4ec-111111111111</uuid>
  <filterref filter="no-mac-spoofing" /><filterref filter="no-ip-spoofing" /><filterref filter="allow-incoming-ipv4" /><filterref filter="no-arp-spoofing" /><filterref filter="qemu-announce-self" /><rule action="accept" direction="out" priority="-650" statematch="None">
    <mac protocolid="ipv4" /></rule><rule action="accept" direction="inout" priority="-500" statematch="None">
    <mac protocolid="arp" /></rule></filter>
```

will be attaching the guest xml

The issue happens with Ubuntu 18.04 host - where not able to start the guest with network defined with value dhcp.

<parameter name='CTRL_IP_LEARNING' value='dhcp'/>
.
Found following commit is not there in 18.04 Ubuntu source. There could be some dependent commit too. we are facing some build issue and hence not able to verify it.
.
https://github.com/libvirt/libvirt/commit/e62cb4a9b78c7f4499a206635fb4f06e6ac627e5
.