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/guestfs-internal.h | |
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/guestfs-internal.h')
-rw-r--r-- | src/guestfs-internal.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/guestfs-internal.h b/src/guestfs-internal.h index 8fbe2ec6..fe275f05 100644 --- a/src/guestfs-internal.h +++ b/src/guestfs-internal.h @@ -167,6 +167,7 @@ struct attach_ops { int (*shutdown) (guestfs_h *g); /* Shutdown and cleanup. */ }; extern struct attach_ops attach_ops_appliance; +extern struct attach_ops attach_ops_libvirt; extern struct attach_ops attach_ops_unix; struct guestfs_h @@ -272,6 +273,11 @@ struct guestfs_h bool virtio_scsi; /* See function qemu_supports_virtio_scsi */ } app; + + struct { /* Used only by src/launch-libvirt.c. */ + void *connv; /* libvirt connection (really virConnectPtr) */ + void *domv; /* libvirt domain (really virDomainPtr) */ + } virt; }; /* Per-filesystem data stored for inspect_os. */ |