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
hypervisor:exp1 [2012/11/15 13:14]
giancarlo
hypervisor:exp1 [2012/11/15 13:37] (current)
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
  
   * Configure KVM network   * Configure KVM network
  
-  * VM network example+<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>
  
 +<WRAP prewrap center>
 +<code>
 +# virsh net-define mynet-ovs.xml
 +# virsh net-start 
 +</code>
 +</WRAP>
 +
 +  * VM network example
 +
 +<WRAP prewrap center>
 +<code xml>
 +    <interface type='network'>
 +      <mac address='52:54:00:bd:6c:2a'/>
 +      <source network='ovs-network' portgroup='vmport0'/>
 +      <target dev='vnet0'/>
 +      <alias name='net0'/>
 +      <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
 +    </interface>
 +</code>
 +</WRAP>
  
 <WRAP right 35% rightalign lo> <WRAP right 35% rightalign lo>
 
 
hypervisor/exp1.1352981681.txt.gz · Last modified: 2012/11/15 13:14 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