Hello John,<div><br></div><div>I also get an error, see below.</div><div>I'm on ubuntu 13.04 using libvirt 1.0.2 and ovs versions : </div><div><br></div><div><div>ovs-vswitchd (Open vSwitch) 1.9.0</div><div>Compiled Mar  1 2013 14:34:38</div>
<div>OpenFlow versions 0x1:0x1</div></div><div><br></div><div>This is the relevant entry in my VM log:</div><div><br></div><div><div>Sun Jul 14 02:19:17 2013 [VMM][I]: Successfully execute network driver operation: pre.</div>
<div>Sun Jul 14 02:19:17 2013 [VMM][I]: Command execution fail: /var/tmp/one/vmm/kvm/attach_nic one-24 02:00:0a:2a:00:65 ovsbr0 - 24 192.168.0.35</div><div>Sun Jul 14 02:19:17 2013 [VMM][E]: attach_nic: Command "virsh --connect qemu:///system attach-interface --domain one-24 --type bridge --source ovsbr0 --mac 02:00:0a:2a:00:65" failed: error: Failed to attach interface</div>
<div>Sun Jul 14 02:19:17 2013 [VMM][I]: error: Unable to add bridge ovsbr0 port vnet1: Operation not supported</div><div>Sun Jul 14 02:19:17 2013 [VMM][E]: Could not attach NIC (02:00:0a:2a:00:65) to one-24</div><div>Sun Jul 14 02:19:17 2013 [VMM][I]: ExitCode: 1</div>
<div>Sun Jul 14 02:19:17 2013 [VMM][I]: Failed to execute virtualization driver operation: attach_nic.</div><div>Sun Jul 14 02:19:17 2013 [VMM][E]: Error attaching new VM NIC: Could not attach NIC (02:00:0a:2a:00:65) to one-24</div>
<div><br></div><div>The oned log basically echos the same.</div><div><br></div><div>I have not tried to manually run the command though.</div><div><br></div><div>I also migrated the vm to a different host just in case it was an ovs misconfig on the first host, but received the same error.</div>
<div><br></div><div>Wondering if it's maybe just the version of libvirt we're using.</div><div><br></div><div>This is really the first I've tested NIC hotplugging so please take my results with a grain of salt.</div>
<div><br></div><div>Best Regards,</div><div>Jon A</div><div><br></div><div><br></div><br><div class="gmail_quote">On Sun, Jul 14, 2013 at 1:10 AM, MENDOZA, John Robert T. <span dir="ltr"><<a href="mailto:bert@asti.dost.gov.ph" target="_blank">bert@asti.dost.gov.ph</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Everyone,<br>
<br>
Hope everyone is doing ok. :)<br>
<br>
Just want to ask if anybody has tried the NIC hot plug functionality<br>
with OpenVSwitch.  I'm testing ONE 4.0.1 and am having error messages<br>
pertaining to the creation of the virtual ports for the VMs.  It<br>
outputs  "error: Unable to add bridge ovsbr0 port vnetX: Operation not<br>
supported". I did some Google'ing and it seems that the virsh CLI<br>
utility has not been updated to support OpenVSwitch bridges as it still<br>
treats the type bridge argument to be a linux bridge.  I'm thinking of<br>
recoding the "attach_nic" script to create an xml file and use "virsh<br>
attach-device" to hot plug the NIC the same way disk hot plugging is<br>
done.  Any thoughts? Or is there something else I should know why ONE<br>
used "attach-interface" in the first place?<br>
<br>
Thanks,<br>
John Robert Mendoza<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opennebula.org">Users@lists.opennebula.org</a><br>
<a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a><br>
</blockquote></div><br></div>