[libvirt] Interface type 'direct' - giving error.

Kumar L Srikanth-B22348 B22348 at freescale.com
Thu Mar 25 11:15:00 UTC 2010


Hi Daniel,
I am trying to create an interface with the type 'direct' with 'vepa'
mode.
I assigned an ip '10.0.0.1' to the eth2 interface of the host machine.
My domain XML format is shown below.

<domain type='lxc' id='1'>
  <name>vm1_fedora</name>
    <memory>500000</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_fresh'/>
          <target dir='/'/>
        </filesystem>
        <interface type='direct'>
          <source dev='eth2' mode='vepa'/>
        </interface>
        <console type='pty' />
      </devices>
</domain>

When I am trying to define the domain, I am getting the following error:

virsh # define /root/lxc_devel/fedora.xml
error: Failed to define domain from /root/lxc_devel/fedora.xml
error: internal error unknown interface type 'direct'

Can you please let me know the problem here.

Regards,
Srikanth.




More information about the libvir-list mailing list