Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED]libvirtd network
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
feiticeir0
Apprentice
Apprentice


Joined: 13 Jul 2005
Posts: 282
Location: Castelo Branco, Portugal

PostPosted: Tue Mar 03, 2015 12:20 am    Post subject: [SOLVED]libvirtd network Reply with quote

Hi all !

I'm having some trouble getting libvirt to start the network.

I've already configure it and tried to start it, but i get the following error:

Code:

virsh # net-start default
error: Failed to start network default
error: internal error: Failed to apply firewall rules /sbin/iptables --table filter --insert FORWARD --in-interface virbr0 --jump REJECT: iptables: No chain/target/match by that name.


If i try to start it again, i get another kind of error:
Code:

virsh # net-start default
error: Failed to start network default
error: Unable to create bridge virbr0: File exists


The network definition file in /usr/share/libvirt/networks/default.xml :
Code:

<network>
        <name>default</name>
        <bridge name="virbr0"/>
        <forward/>
        <ip address="192.168.122.1" netmask="255.255.255.0">
                <dhcp>
                        <range start="192.168.122.2" end="192.168.122.254"/>
                </dhcp>
        </ip>
</network>


My program versions:

app-emulation/libvirt-1.2.10-r4
app-emulation/qemu-2.1.2-r2

My steps in creating the network using the above default file:
Code:

virsh net-define /usr/share/libvirt/networks/default.xml
Network default defined from /usr/share/libvirt/networks/default.xml

virsh net-autostart default
Network default marked as autostarted


And when i try to start the network:

Code:

virsh net-start default
error: Failed to start network default
error: internal error: Failed to apply firewall rules /sbin/iptables --table filter --insert FORWARD --in-interface virbr0 --jump REJECT: iptables: No chain/target/match by that name


What's the problem ??

Best regards

Bruno Santos
_________________
Do It With Rhythm
Back to top
View user's profile Send private message
feiticeir0
Apprentice
Apprentice


Joined: 13 Jul 2005
Posts: 282
Location: Castelo Branco, Portugal

PostPosted: Tue Mar 03, 2015 12:27 am    Post subject: Reply with quote

After reading with attention the iptables error, i figured it out that i didn't had support for the REJECT chain in the kernel

Thank you
_________________
Do It With Rhythm
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum