hi,
--
Pozdrawiam
Dominik
I try to add 2 VF by "hostdev".
Networks (vnet0, vnet1) with:
<forward mode='hostdev' managed='yes'>
<pf dev='eth1'/>
.....
Domain:
<interface type="network">
<source network="vnet0"/>
....
<interface type="network">
<source network="vnet1"/>
....
virsh create error:
"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"
I am doing somthing wrong?
My configs:
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>
I wrote libvirt-users mailing list too.
Pozdrawiam
Dominik
-- libvir-list mailing list libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list