<div dir="ltr"><div><div><div>On VirtualBox, I was able as non-root to get bridged networking by doing:<br><br>vboxmanage createvm --name p1 --ostype Ubuntu_64 --register<br>vboxmanage modifyvm p1 ... --nic1 bridged --bridgeadapter1 eth0 --nictype1 82543GC <br>
<br></div>And that provided me functional two-way networking, assigning a new IP address from the router, and allows incoming and outgoing networking transparently.<br><br>On KVM, I did:<br><br>virt-install --name p1 --ram 512 --disk path=~/p.img,size=2 --cdrom ./media/precise64/ubuntu-12.04.4-server-amd64.iso --boot cdrom --network bridge=eth0<br>
<br></div>That would not work because it requires root (VirtualBox worked without sudo).<br><br></div>So, I need to use sudo before that command. But when I do this, I get the error:<br><br>ERROR Unable to add bridge eth0 port vnet0: Operation not supported<br clear="all">
<div><div><div><div><br></div><div>Googling for that error suggests that this command should fix it:<br><pre>virsh iface-bridge eth0 br0</pre>But it does not work, with or without sudo, with the following error:<br><br>error: failed to get interface 'eth0'<br>
error: this function is not supported by the connection driver: virInterfaceLookupByName<br><br></div><div>So, the question is, using libvirt and kvm, how does one get bridged networking to work?<br></div><div>-- <br>Khalid M. Baheyeldin<br>
<a href="http://2bits.com" target="_blank">2bits.com</a>, Inc.<br>Fast Reliable Drupal<br>Drupal optimization, development, customization and consulting.<br>Simplicity is prerequisite for reliability. -- Edsger W.Dijkstra<br>
Simplicity is the ultimate sophistication. -- Leonardo da Vinci<br>For every complex problem, there is an answer that is clear, simple, and wrong." -- H.L. Mencken<br>
</div></div></div></div></div>