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
Last revision Both sides next revision
hypervisor:exp1 [2012/11/15 13:19]
giancarlo
hypervisor:exp1 [2012/11/15 13:35]
giancarlo
Line 101: Line 101:
 up ifconfig $IFACE 0.0.0.0 up up ifconfig $IFACE 0.0.0.0 up
 down ifconfig $IFACE down down ifconfig $IFACE down
 +</code>
 +</WRAP>
 +
 +  * Reboot
 +
 +<WRAP prewrap center>
 +<code>
 +# reboot
 </code> </code>
 </WRAP> </WRAP>
Line 106: Line 114:
   * 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.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