LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-10-2015, 08:06 PM   #1
orangelephant
LQ Newbie
 
Registered: Jun 2015
Posts: 7

Rep: Reputation: Disabled
Virtual Machine Manager Interface Name Too Long


I am trying to create a new Virtual Network in the Centos 7 Virtual Machine Manager, but at step 4/4 I get this error:

Error creating virtual network: internal error: Failed to apply firewall rules /usr/sbin/iptables --table filter --insert FORWARD --source 192.168.0.0/24 --in-interface virbr2 --out-interface net_p3p1_xx_xx_xx_xx_xx_xx --jump ACCEPT: iptables v1.4.21: interface name `net_p3p1_xx_xx_xx_xx_xx_xx' must be shorter than IFNAMSIZ (15).

I think the issue is that virt-manager appends the MAC address to my interface, which makes it longer than 15 chars. Is there a fix for this bug or how can I rename the interface names for virt-manager?

Thanks a lot.
 
Old 07-11-2015, 01:13 AM   #2
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2001Reputation: 2001Reputation: 2001Reputation: 2001Reputation: 2001Reputation: 2001Reputation: 2001Reputation: 2001Reputation: 2001Reputation: 2001Reputation: 2001
Mysterious. Perhaps an XML file for the network exists; check with virsh net-dumpxml <networkname> and look for clues. You can also modify the content if it looks wrong, virsh net-edit <network name>.

Alternatively, use the same command to get the XML definition of the default network, adapt it to your needs and put it in place with virsh net-define <XML File>, then virsh net-start <network name>..

Luckily network XMLs are just ten lines or so. Check http://libvirt.org for documentation.
 
Old 07-11-2015, 04:33 PM   #3
orangelephant
LQ Newbie
 
Registered: Jun 2015
Posts: 7

Original Poster
Rep: Reputation: Disabled
Thanks for the suggestion. I tried all that but still cannot find such an entry. Either I am missing something or Virtual Manager is dynamically appending the MAC address to the network interfaces. This happened after a recent update to my Centos 7. Prior the update, I could easily add virtual networks so that update must have changed the way Virtual Manager works.
 
Old 07-11-2015, 05:23 PM   #4
orangelephant
LQ Newbie
 
Registered: Jun 2015
Posts: 7

Original Poster
Rep: Reputation: Disabled
I see there is an open bug with Red Hat about the same issue but no resolution yet.

https://bugzilla.redhat.com/show_bug.cgi?id=1236368
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Not able to run virtual machine manager on linux machine. kavyashree A P Linux - Kernel 1 05-11-2014 05:56 AM
Virtual Machine Manager Joy1982 Linux - Software 3 04-11-2012 06:39 AM
Can't Ping betwen interface on Virtual Machine nerka Linux - Networking 7 11-28-2011 01:39 PM
Virtual machine manager HELP. Onedayyou Linux - Virtualization and Cloud 3 03-01-2010 04:07 AM
virtual machine manager anant Linux - Newbie 1 01-02-2007 03:56 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:39 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration