Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
hypervisor:exp1 [2012/11/15 13:14]
giancarlo
hypervisor:exp1 [2012/11/15 13:32]
giancarlo
Line 57: Line 57:
 </WRAP> </WRAP>
  
 +  * Remove libvirt default network
 +
 +<WRAP prewrap center>
 +<code>
 +# virsh net-destroy default
 +# virsh net-autostart --disable default
 +</code>
 +</WRAP>
  
   * Edit OpenvSwitch conf   * Edit OpenvSwitch conf
Line 77: Line 85:
 </WRAP> </WRAP>
  
 +  * Edit interfaces
 +
 +Remove dummy entries in /etc/network/interfaces
 +<WRAP prewrap center>
 +<code>
 +# nano -w /etc/network/interfaces
 +
 +auto eth0
 +iface eth0 inet manual
 +up ifconfig $IFACE 0.0.0.0 up
 +down ifconfig $IFACE down
 +
 +auto br0
 +iface br0 inet manual
 +up ifconfig $IFACE 0.0.0.0 up
 +down ifconfig $IFACE down
 +</code>
 +</WRAP>
 +
 +  * Reboot
 +
 +<WRAP prewrap center>
 +<code>
 +# reboot
 +</code>
 +</WRAP>
  
   * Configure KVM network   * Configure KVM network
 +
 +<WRAP prewrap center>
 +<code>
 +# nano -w mynet-ovs.xml
 +</code>
 +</WRAP>
 +
 +<WRAP prewrap center>
 +<code xml>
 +<network>
 +  <name>ovs-network</name>
 +  <forward mode='bridge'/>
 +  <bridge name='br0'/>
 +  <virtualport type='openvswitch'/>
 +  <portgroup name='vmport0' default='yes'>
 +  </portgroup>
 +  <portgroup name='vmport2'>
 +    <vlan trunk='yes'>
 +      <tag id='0'/>
 +      <tag id='2'/>
 +      <tag id='3'/>
 +    </vlan>
 +  </portgroup>
 +</network>
 +
 +</code>
 +</WRAP>
  
   * VM network example   * VM network example
 
 
hypervisor/exp1.txt ยท Last modified: 2012/11/15 13:37 by giancarlo

Developers: CNR IRCrES IT Office and Library
Giancarlo Birello (giancarlo.birello _@_ ircres.cnr.it) and Anna Perin (anna.perin _@_ ircres.cnr.it)
DigiBess is licensed under: Creative Commons License
Recent changes RSS feed Creative Commons License Valid XHTML 1.0 Valid CSS Driven by DokuWiki
Drupal Garland Theme for Dokuwiki