[libvirt-users] Unsupported network type ethernet using LXC

abhishek jain ashujain9727 at gmail.com
Mon Mar 14 11:44:21 UTC 2016


Hi Team

I'm trying to launch VM using LXC as a hypervisor with interace="ethernet"
configuration and I'm getting below errors..



*virsh -c lxc: start instance-00000321error: Failed to start domain
instance-00000321error: internal error: Unsupported network type ethernet*

Below is the xml file which I'm using ....

 cat right.xml
<domain type='lxc'>
  <name>instance-00000321</name>
  <uuid>13dd822c-a99d-4f28-9f4e-53dfb744efcc</uuid>
  <memory unit='KiB'>524288</memory>
  <currentMemory unit='KiB'>524288</currentMemory>
  <vcpu placement='static'>1</vcpu>
  <resource>
    <partition>/machine</partition>
  </resource>
  <os>
    <type arch='aarch64' machine='virt'>exe</type>
    <init>/bin/sh</init>
    <cmdline>root=/dev/ram0 rw  console=ttyAMA0 rootwait
earlyprintk</cmdline>
  </os>
  <clock offset='utc'/>
  <on_poweroff>destroy</on_poweroff>
  <on_reboot>restart</on_reboot>
  <on_crash>destroy</on_crash>
  <devices>
    <emulator>/usr/lib/libvirt/libvirt_lxc</emulator>
    <filesystem type='mount' accessmode='passthrough'>
      <source dir='/'/>
      <target dir='/'/>
    </filesystem>
    <interface type='ethernet'>
      <mac address='02:74:ff:9d:52:f5'/>
      <script path=''/>
      <target dev='tap74ff9d52-f5'/>
    </interface>
    <interface type='ethernet'>
      <mac address='02:9b:a6:1e:67:5b'/>
      <script path=''/>
      <target dev='tap9ba61e67-5b'/>
    </interface>
    <console type='pty'>
      <target type='lxc' port='0'/>
    </console>
  </devices>
  <seclabel type='none'/>
</domain>

However I'm able to launch the same above xml file using KVM as hypervisor
on the same host.

Please help me regarding this.

--Thanks
Abhishek Jain
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20160314/32a12585/attachment.htm>


More information about the libvirt-users mailing list