diff options
author | Richard W.M. Jones <rjones@redhat.com> | 2012-07-21 14:25:54 +0100 |
---|---|---|
committer | Richard W.M. Jones <rjones@redhat.com> | 2012-07-22 09:32:04 +0100 |
commit | aa0efa9eb496d20993a4b2326912562abb843719 (patch) | |
tree | 3abc667f23146ec28820d4a33985889e89b248c7 /src/launch.c | |
parent | 42ba2620031d4b52e5319e212c2ea96d80a93b52 (diff) | |
download | libguestfs-aa0efa9eb496d20993a4b2326912562abb843719.tar.gz libguestfs-aa0efa9eb496d20993a4b2326912562abb843719.tar.xz libguestfs-aa0efa9eb496d20993a4b2326912562abb843719.zip |
launch: Add libvirt backend.
Complete the attach-method libvirt backend.
This backend uses libvirt to create a transient KVM domain to run the
appliance.
Note that this still will only work with local libvirt URIs since the
<kernel>, <initrd> and appliance links in the libvirt XML refer to
local files, and virtio serial only works locally (limitation of
libvirt). Remote support will be added later.
Diffstat (limited to 'src/launch.c')
-rw-r--r-- | src/launch.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/launch.c b/src/launch.c index 7c403ab8..02441db1 100644 --- a/src/launch.c +++ b/src/launch.c @@ -326,8 +326,8 @@ guestfs__launch (guestfs_h *g) break; case ATTACH_METHOD_LIBVIRT: - error (g, _("libvirt attach method is not yet supported")); - return -1; + g->attach_ops = &attach_ops_libvirt; + break; case ATTACH_METHOD_UNIX: g->attach_ops = &attach_ops_unix; |