Contents

  • 1 libvirt Wiki
  • 2 General project documentation
  • 3 Books
  • 4 Configuration Management
  • 5 convert
  • 6 Guest Management
    • 6.1 Concepts
    • 6.2 CGroups
    • 6.3 CPU
    • 6.4 KVM / QEMU
    • 6.5 Guest device Configuration
    • 6.6 Virtio
    • 6.7 Host SCSI device
    • 6.8 NPIV
  • 7 libguestfs / guestfish
  • 8 Networking
    • 8.1 Concepts
    • 8.2 Detailed networking pieces
  • 9 Perl
  • 10 Provisioning
    • 10.1 Cobbler
    • 10.2 Foreman
  • 11 Remote Management
    • 11.1 CIM
    • 11.2 QPID
  • 12 Security
    • 12.1 Host Security
    • 12.2 SSH
    • 12.3 Transport Layer Security (TLS)
  • 13 Storage
    • 13.1 iSCSI
    • 13.2 QCow2 disk encryption
    • 13.3 Disk and Memory Snapshots
    • 13.4 Examples of live block opertaions
  • 14 Third Party Libvirt Applications
  • 15 Other
    • 15.1 Images
    • 15.2 Debug logs
  • 16 Getting started with virt-test
    • 16.1 Prerequisites
    • 16.2 Steps to setup the virt-test
    • 16.3 Running tests
    • 16.4 Testing self-built libvirt
    • 16.5 Tips
  • 17 Getting started with the Wiki
[edit]

libvirt Wiki

This is the libvirt Wiki for user contributed content.

Due to frequent attacks from spammers who are able to defeat the various anti-spam measures, it has become necessary to disable new account creation.

We still welcome contributions from anyone interested in updating content. Simply send an email to the main libvirt development list asking for an account and one will be created for you with as little delay as practical. Please tell us your preferred wiki user name in the email - if you have no preferences we will create one with "ForenameSurname" style.

[edit]

General project documentation

[edit]

Books

[edit]

Configuration Management

[edit]

convert

[edit]

Guest Management

[edit]

Concepts

[edit]

CGroups

[edit]

CPU

[edit]

KVM / QEMU

[edit]

Guest device Configuration

[edit]

Virtio

[edit]

Host SCSI device

[edit]

NPIV

[edit]

libguestfs / guestfish

[edit]

Networking

[edit]

Concepts

[edit]

Detailed networking pieces

[edit]

Perl

[edit]

Provisioning

[edit]

Cobbler

[edit]

Foreman

[edit]

Remote Management

[edit]

CIM

[edit]

QPID

[edit]

Security

[edit]

Host Security

[edit]

SSH

[edit]

Transport Layer Security (TLS)

[edit]

Storage

[edit]

iSCSI

[edit]

QCow2 disk encryption

[edit]

Disk and Memory Snapshots

[edit]

Examples of live block opertaions

[edit]

Third Party Libvirt Applications

[edit]

Other

[edit]

Images

The images in this wiki, along with their Inkscape SVG source, are on this page in one place in case you'd like to use or modify them for your own project:

[edit]

Debug logs

In case you want to turn on debuging in libvirt follow:

[edit]

Getting started with virt-test

[edit]

Prerequisites

  1. Install libvirt, virt-install, qemu-kvm, p7zip, genisoimage.

    When installing libvirt on Fedora, make sure you have the following packages installed: libvirt-client, libvirt-python, libvirt-daemon-kvm, and libvirt-daemon-config-network.

  2. Start libvirtd service.

    On systems with systemd, run

    systemctl start libvirtd.service
[edit]

Steps to setup the virt-test

  1. Clone the autotest repository:
    git clone https://github.com/autotest/autotest.git
  2. Clone the virt-test repository:
    git clone https://github.com/autotest/virt-test.git
  3. Switch to next branch in both repositories:
    for repo in autotest virt-test; do (cd $repo && git checkout next); done
  4. Export path to the autotest repository.

    Please note, /some/dir is the directory where you ran the above commands. Thus, AUTOTEST_PATH variable has to point to autotest directory created by git when cloning the autotest repository.

    export AUTOTEST_PATH=/some/dir/autotest
[edit]

Running tests

Now you are ready to test libvirt with virt-test. Just go to virt-test directory created in step 2 above and run

 ./run -t libvirt --tests=virsh --install --remove

This command will automatically download JeOS disk image used as a guest OS for the test domain required for virt-test. You can remove the --remove option to keep the test domain installed and then you can just run

 ./run -t libvirt --tests='virsh.help virsh.console'

to reuse the existing test domain. To get a list of all test available in virt-test, run

 ./run -t libvirt --list-tests
[edit]

Testing self-built libvirt

To test self-built libvirt rather then the one installed in the system, either built a proper package and install it or follow the steps below.

  1. Configure libvirt to use the same paths as the system one.
    ./autogen.sh --system
  2. Compile libvirt.
    make
  3. Change libvirtd service to start your local libvirtd using /path/to/libvirt/run /path/to/libvirt/daemon/.libs/libvirtd. On systems with systemd change ExecStart in /etc/systemd/system/multi-user.target.wants/libvirtd.service. This hack is required for some tests that restart libvirtd service.
  4. Run tests using the self-built libvirt:
    /path/to/libvirt/run ./run -t libvirt --tests='virsh.help virsh.console'
[edit]

Tips

Log files from all test runs can be found in logs sub directory of virt-test. The latest log file is easily accessible via the latest symlink:

 less logs/latest/debug.log

The config files for each test are located in libvirt/tests/cfg and the source files of all tests are located in libvirt/tests/src within the virt-test repository.

[edit]

Getting started with the Wiki

This wiki is using the MediaWiki software. The following links will provide help on wiki syntax and other matters

Retrieved from "wiki.libvirt.org/page/Main_Page"

Views

  • Article
  • Discussion
  • Edit
  • History

Personal tools

  • Log in / create account

Toolbox

  • What links here
  • Related changes
  • Upload file
  • Special pages
  • Printable version
  • Permanent link
spacer
gipoco.com is neither affiliated with the authors of this page nor responsible for its contents. This is a safe-cache copy of the original web site.