Bug 586826

Summary: Creating Multiple Network interfaces in LXC container
Product: [Community] Virtualization Tools Reporter: Srikanth <srikkanth545>
Component: libvirtAssignee: Daniel Veillard <veillard>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: high Docs Contact:
Priority: low    
Version: unspecifiedCC: berrange, crobinso, dyuan, xen-maint
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-02-23 14:46:03 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Srikanth 2010-04-28 12:44:04 UTC
Description of problem:
While creating multiple network interfaces in the guest domain, the following error is coming while starting the Domain.

error: Failed to start domain vm3
error: internal error Failed to create veth device pair: 512

libvirt Domain XML used to define the guest domain is shown below:

<domain type='lxc' id='1'>
  <name>vm3</name>
    <memory>1000000</memory>
      <os>
          <type>exe</type>
          <init>/bin/bash</init>
      </os>
      <vcpu>1</vcpu>
      <clock offset='utc'/>
      <on_poweroff>destroy</on_poweroff>
      <on_reboot>restart</on_reboot>
      <on_crash>destroy</on_crash>
      <devices>
        <emulator>/usr/libexec/libvirt_lxc</emulator>
        <filesystem type='mount'>
          <source dir='/root/lxc/fedora'/>
          <target dir='/'/>
        </filesystem>
        <interface type='bridge'>
          <source bridge='br0'/>
        </interface>
        <interface type='network'>
          <source network='default'/>
          <target dev='vnet7'/>
          <mac address="00:11:22:33:44:55"/>
        </interface>
        <console type='pty' />
      </devices>
</domain>


Version-Release number of selected component (if applicable):
Compiled against library: libvir 0.8.0
Using library: libvir 0.8.0
Using API: LXC 0.8.0
Running hypervisor: LXC 2.6.31

Fedora 12 32bit os.

How reproducible:


Steps to Reproduce:
1.define a domain with the above domain XML.
2.start the Domain.
3.
  
Actual results:
Unable to start the guest domain. Giving following error:

error: Failed to start domain vm3
error: internal error Failed to create veth device pair: 512

Expected results:
Need to start the guest domain, with two interfaces.

Additional info:

Comment 1 Daniel Berrangé 2011-02-23 14:46:03 UTC
Creating multiple NICs works in current libvirt 0.8.8 - I tested with 4 NICs