File: KVM.xml

package info (click to toggle)
shorewall 5.2.8-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 46,148 kB
  • sloc: xml: 78,818; perl: 26,961; sh: 6,063; makefile: 132
file content (95 lines) | stat: -rw-r--r-- 3,831 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
"http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd">
<article>
  <!--$Id$-->

  <articleinfo>
    <title>KVM (Kernel-mode Virtual Machine)</title>

    <authorgroup>
      <author>
        <firstname>Tom</firstname>

        <surname>Eastep</surname>
      </author>
    </authorgroup>

    <pubdate><?dbtimestamp format="Y/m/d"?></pubdate>

    <copyright>
      <year>2008</year>

      <holder>Thomas M. Eastep</holder>
    </copyright>

    <legalnotice>
      <para>Permission is granted to copy, distribute and/or modify this
      document under the terms of the GNU Free Documentation License, Version
      1.2 or any later version published by the Free Software Foundation; with
      no Invariant Sections, with no Front-Cover, and with no Back-Cover
      Texts. A copy of the license is included in the section entitled
      <quote><ulink url="GnuCopyright.htm">GNU Free Documentation
      License</ulink></quote>.</para>
    </legalnotice>
  </articleinfo>

  <section>
    <title>Introduction</title>

    <para>Kernel-mode Virtual Machines (<ulink
    url="http://kvm.qumranet.com/">http://kvm.qumranet.com/</ulink>) is a
    virtualization platform that leverages the virtualization capabilities
    available with current microprocessors from both
    <trademark>Intel</trademark> and <trademark>AMD</trademark>. For an
    overview of KVM, please see my <ulink
    url="https://shorewall.org/Linuxfest-2008.pdf">2008 Linuxfest Northwest
    presentation</ulink>.</para>

    <para>I use KVM to implement a number of virtual machines running various
    Linux Distributions. The following diagram shows the entire
    network.</para>

    <graphic align="center" fileref="images/Network2008a.png"/>

    <para>My personal laptop (Ursa) hosts the virtual machines. As shown in
    the diagram, Ursa has routes to the Internet through both the
    <trademark>Linksys</trademark> WRT300N and through my Shorewall firewall.
    This allows me to test the <ulink url="MultiISP.html">Shorewall Multi-ISP
    feature</ulink>.</para>

    <para>The Linux Bridges shown in the diagram are, of course, actually
    within their associated system (Firewall or Ursa) but I've pictured them
    separately.</para>
  </section>

  <section>
    <title>Networking Configuration</title>

    <para>I use a network configuration where each VM has its own VNET and tap
    device and the tap devices are all configured as ports on a Linux Bridge.
    For clarity, I've only shown four of the virtual machines available on the
    system.</para>

    <graphic align="center" fileref="images/KVM1.png"/>

    <para>I run <ulink url="???">dmsmasq</ulink> to act as a DHCP server and
    name server for the VMs.</para>

    <para>The bridge is configured using the script described in my Linuxfest
    presentation linked above. The script may be found at <ulink
    url="https://shorewall.org/pub/shorewall/contrib/kvm/kvm">https://shorewall.org/pub/shorewall/contrib/kvm/kvm</ulink>.</para>

    <para>With this configuration, and with only a single network interface on
    the laptop, this is just a simple <ulink
    url="two-interface.htm">two-interface masquerading setup</ulink> where the
    local network interface is <filename class="devicefile">br0</filename>. As
    with all bridges, <filename class="devicefile">br0</filename> must be
    configured with the <option>routeback</option> option in <ulink
    url="manpages/shorewall-interfaces.html">shorewall-interfaces</ulink>(5).</para>

    <para>For additional information about this setup, including the Shorewall
    configuration, see <ulink
    url="MultiISP.html#Shared">https://shorewall.org/MultiISP.html#Shared</ulink></para>
  </section>
</article>