Re: Two VF cards

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



hi,
Any suggestions?
I try attach 2 VF functions to VM and set bonding.
It is different way to do this?

--
Dominik




2013/5/17 Dominik Mostowiec <dominikmostowiec@xxxxxxxxx>
Thanks for your response. 

For two different mac addresses problem is the same.
"error: internal error process exited while connecting to monitor: kvm: -device pci-assign,configfd=25,host=01:10.1,id=hostdev0,bus=pci.0,addr=0x4: Duplicate ID 'hostdev0' for device"

domain:
<domain xmlns:qemu="http://libvirt.org/schemas/domain/qemu/1.0" type="kvm">
        <name>one-466</name>
        <vcpu>1</vcpu>
        <memory>1781760</memory>
        <os>
                <type arch="x86_64">hvm</type>
                <boot dev="hd"/>
        </os>
        <devices>
                <emulator>/usr/bin/kvm</emulator>
                <disk type="file" device="disk">
                        <source file="/nebula/nebula/var//datastores/0/466/disk.0"/>
                        <target dev="hda" bus="virtio"/>
                        <driver name="qemu" type="raw" cache="default"/>
                </disk>
                <disk type="file" device="disk">
                        <source file="/nebula/nebula/var//datastores/0/466/disk.1"/>
                        <target dev="vdb" bus="virtio"/>
                        <driver name="qemu" type="raw" cache="default"/>
                </disk>
                <graphics type="vnc" listen="0.0.0.0" port="-1"/>
                <interface type="network">
                        <source network="vnet0"/>
                        <mac address="52:54:0a:b1:48:91"/>
                </interface>
                <interface type="network">
                        <source network="vnet1"/>
                        <mac address="52:54:0a:b1:48:92"/>
                </interface>
        </devices>
        <features>
                <acpi/>
        </features>
        <devices><serial type="pty"><source path="/dev/pts/477"/><target port="0"/></serial><console type="pty" tty="/dev/pts/477"><source path="/dev/pts/477"/><target port="0"/></console></devices>
</domain>

Networks:
cat /etc/libvirt/qemu/networks/vnet0.xml
<!--
WARNING: THIS IS AN AUTO-GENERATED FILE. CHANGES TO IT ARE LIKELY TO BE
OVERWRITTEN AND LOST. Changes to this xml configuration should be made using:
  virsh net-edit vnet0
or other application using the libvirt API.
-->

<network>
  <name>vnet0</name>
  <uuid>1b6a3506-d9e0-4e1e-bbff-6f700b8dc80b</uuid>
  <forward mode='hostdev' managed='yes'>
    <pf dev='eth0'/>
  </forward>
</network>

cat /etc/libvirt/qemu/networks/vnet1.xml
<!--
WARNING: THIS IS AN AUTO-GENERATED FILE. CHANGES TO IT ARE LIKELY TO BE
OVERWRITTEN AND LOST. Changes to this xml configuration should be made using:
  virsh net-edit vnet1
or other application using the libvirt API.
-->

<network>
  <name>vnet1</name>
  <uuid>11feb088-d609-4177-86d7-ac3b9467a3e8</uuid>
  <forward mode='hostdev' managed='yes'>
    <pf dev='eth1'/>
  </forward>
</network>

--
Dominik


2013/5/17 Michal Privoznik <mprivozn@xxxxxxxxxx>
On 16.05.2013 23:45, Dominik Mostowiec wrote:
> Hi,
> I try to add 2 VF functions to VM via network.
> Livirt networks:
> vnet0:
> <network>
>   <name>vnet0</name>
>   <forward mode='hostdev' managed='yes'>
>     <pf dev='eth0'/>
>   </forward>
> </network>
>
> vnet1:
> <network>
>   <name>vnet0</name>
>   <forward mode='hostdev' managed='yes'>
>     <pf dev='eth1'/>
>   </forward>
> </network>
>
> In VM configuration:
>  <interface type="network">
>      <source network="vnet0"/>
>      <mac address="52:54:0a:b1:48:07"/>
>  </interface>
>  <interface type="network">
>      <source network="vnet1"/>
>      <mac address="52:54:0a:b1:48:07"/>
>  </interface>

This is not a good idea to have two NICs sharing the same MAC.

>
> VM can't start because:
>  kvm: -device
> pci-assign,configfd=24,host=01:10.1,id=hostdev0,bus=pci.0,addr=0x4:
> Duplicate ID 'hostdev0' for device
>
> libvirt version 1.0.5.
>
> What i am doing wrong?
>


I guess nothing. Libvirt has generated the same IDs for two devices
which is obviously libvirt's faul even in case two NICs sharing the same
MAC. Can you post full domain XML (possibly with network XMLs)? I'll try
to reproduce and maybe I'll find what's wrong.

Michal



--
Pozdrawiam
Dominik



--
Pozdrawiam
Dominik
_______________________________________________
libvirt-users mailing list
libvirt-users@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvirt-users

[Index of Archives]     [Virt Tools]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]

  Powered by Linux