~serge-hallyn/ubuntu/oneiric/libvirt/fix-shutdown

« back to all changes in this revision

Viewing changes to docs/drvlxc.html

  • Committer: Bazaar Package Importer
  • Author(s): Serge Hallyn
  • Date: 2010-11-02 16:26:51 UTC
  • mfrom: (1.2.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20101102162651-aq8tnbz58mdf01bf
Tags: 0.8.5-0ubuntu1
* New upstream release.
* Removed a slew of patches which have been
  applied upstream since 0.8.3.
  - 9012-apparmor-extra-tests.patch
  - 9013-apparmor-chardev.patch
  - 9015-Add-ubd-to-the-list-of-disk-prefixes.patch
  - 9016-Close-fd-s-of-persistent-tap-devices.patch
  - 9017-Make-sure-all-command-line-arguments-get-passed-to-U.patch
  - 9018-Make-umlConnectTapDevice-ask-brAddTap-for-a-persiste.patch
  - 9019-uml-fix-logic-bug-in-checking-reply-length.patch
  - 9021-Allow-chardev-of-type-file-for-UML-domains.patch
  - 9022-Rename-qemudShrinkDisks-to-virDomainDiskRemove-and-m.patch
  - 9023-Support-virDomainAttachDevice-and-virDomainDetachDev.patch
  - 9024-Explicitly-pass-uml_dir-argument-to-user-mode-linux.patch
  - 9025-Add-nwfilter-support-to-UML-driver.patch
  - 9026-Rebuild-network-filter-for-UML-guests-on-updates.patch
  - 9027-Make-newfilter-xml-transformations-endian-safe.patch
  - 9028-lp628055.patch
* Updated 9002-better_default_uri_virsh.patch to use vshStrdup,
  as now required in that file.  (use of strdup now causes compilation
  to fail)
* Removed 9008-run-as-root-by-default.patch, which has not been
  applied for awhile now, with no ill effects.
* Simple refresh of:
  - 0001-remove-RHism.diff.patch
  - 0003-allow-libvirt-group-to-access-the-socket.patch
  - 0004-fix-Debian-specific-path-to-hvm-loader.patch
  - 0006-patch-qemuMonitorTextGetMigrationStatus-to-intercept.patch
  - 9000-delayed_iff_up_bridge.patch
  - 9001-dont_clobber_existing_bridges.patch
  - 9003-better-default-arch.patch
  - 9004-libvirtd-group-name.patch
  - 9005-increase-unix-socket-timeout.patch
  - 9006-default-config-test-case.patch
  - 9009-autodetect-nc-params.patch
  - 9010-dont-disable-ipv6.patch
  - 9011-move-ebtables-script.patch
  - 9014-skip-nodeinfotest.patch
  - 9020-lp545795.patch
* Create a patch to include stdint.h so lxc_container.h, which
  #includes linux/fs.h, doesn't trip up on undefined uint64_t.

Show diffs side-by-side

added added

removed removed

Lines of Context:
112
112
                  <div>
113
113
                    <a title="Working on the internals of libvirt API, driver and daemon code" class="inactive" href="internals.html">Internals</a>
114
114
                  </div>
 
115
                </li><li>
 
116
                  <div>
 
117
                    <a title="A guide and reference for developing with libvirt" class="inactive" href="devguide.html">Development Guide</a>
 
118
                  </div>
115
119
                </li></ul>
116
120
            </div>
117
121
          </li><li>
174
178
&lt;/domain&gt;
175
179
</pre>
176
180
        <p>
 
181
In the &lt;emulator&gt; element, be sure you specify the correct path
 
182
to libvirt_lxc, if it does not live in /usr/libexec on your system.
 
183
</p>
 
184
        <p>
177
185
The next example assumes there is a private root filesystem
178
186
(perhaps hand-crafted using busybox, or installed from media,
179
187
debootstrap, whatever) under /opt/vm-1-root:
209
217
In both cases, you can define and start a container using:</p>
210
218
        <pre>
211
219
virsh --connect lxc:/// define v1.xml
212
 
virsh --connect lxc:/// start v1.xml
 
220
virsh --connect lxc:/// start vm1
213
221
</pre>
214
222
        <pre>
215
 
virsh --connect lxc:/// console v1
 
223
virsh --connect lxc:/// console vm1
216
224
</pre>
217
225
        <p>Now doing 'ps -ef' will only show processes in the container, for
218
 
instance.
 
226
instance.  You can undefine it using
219
227
</p>
 
228
        <pre>
 
229
virsh --connect lxc:/// undefine vm1
 
230
</pre>
220
231
      </div>
221
232
    </div>
222
233
    <div id="footer">