Displaying 11 results from an estimated 11 matches for "guestfs__launch".
Did you mean:
guestfs_launch
2009 Sep 21
2
[PATCH 00/10] Remove the need for vmchannel
This set of 10 patches removes the need for any vmchannel implementation,
although we can still choose to use vmchannel if we want.
In this so-called "null vmchannel" configuration, the appliance
connects directly to a port on the library. The exact method is
described in patch 9/10.
This method still requires SLIRP (user mode networking) so it is
not a panacea, because recent
2010 Jul 05
5
[PATCH 0/3] RFC: Allow use of external QEMU process with libguestfs
This attempts to implement the idea proposed in
https://www.redhat.com/archives/libguestfs/2010-April/msg00087.html
The idea is that an externally managed QEMU (manual, or via libvirt)
can boot the appliance kernel/initrd. libguestfs can then be just told
of the UNIX domain socket associated with the guest daemon.
An example based on guestfish.
1. Step one, find the appliance kernel/initrd
2009 Sep 18
1
[PATCH] Enable new-style -chardev ... guestfwd command line
...static void close_handles (void);
/* Also in guestfsd.c */
#define GUESTFWD_PORT 6666
-//#define GUESTFWD_ADDR "10.0.2.4"
+#define GUESTFWD_ADDR "10.0.2.4"
/* GuestFS handle and connection. */
enum state { CONFIG, LAUNCHING, READY, BUSY, NO_HANDLE };
@@ -983,7 +983,7 @@ guestfs__launch (guestfs_h *g)
}
if (r == 0) { /* Child (qemu). */
- char vmchannel[256];
+ char buf[256];
char append[256];
char memsize_str[256];
@@ -1025,37 +1025,43 @@ guestfs__launch (guestfs_h *g)
add_cmdline (g, "-serial");
add_cmdline (g, "stdio");...
2009 Oct 21
1
[PATCH] Set LC_ALL=C before running qemu.
..., 21 Oct 2009 16:31:26 +0100
Subject: [PATCH] Set LC_ALL=C before running qemu.
---
src/guestfs.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/guestfs.c b/src/guestfs.c
index e49f57a..a25e9e7 100644
--- a/src/guestfs.c
+++ b/src/guestfs.c
@@ -1195,6 +1195,8 @@ guestfs__launch (guestfs_h *g)
setpgid (0, 0);
#endif
+ setenv ("LC_ALL", "C", 1);
+
execv (g->qemu, g->cmdline); /* Run qemu. */
perror (g->qemu);
_exit (1);
@@ -1486,7 +1488,7 @@ test_qemu (guestfs_h *g)
g->qemu_help = NULL;
g->qemu_version = NUL...
2010 Oct 27
1
[PATCH] Fix networking in the appliance
Change 4963be85 re-introduced networking to the appliance, but didn't configure
the custom network the appliance expects since we switched to link local
addressing. This patch configures QEMU to use the custom network again.
---
src/launch.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name:
2010 Aug 24
1
[PATCH] New APIs: set-network and get-network to enable network support.
...+The network may not be available unless you enable it
+(see L</guestfs_set_network>).
+
+=item *
+
Only supports Linux guests (not Windows, BSD, etc).
=item *
diff --git a/src/launch.c b/src/launch.c
index 1e1ea8e..df78b1a 100644
--- a/src/launch.c
+++ b/src/launch.c
@@ -410,6 +410,14 @@ guestfs__launch (guestfs_h *g)
add_cmdline (g, "-device");
add_cmdline (g, "virtserialport,chardev=channel0,name=org.libguestfs.channel.0");
+ /* Enable user networking. */
+ if (g->enable_network) {
+ add_cmdline (g, "-net");
+ add_cmdline (g, "use...
2012 Feb 15
2
[PATCH 0/2] Make appliance building thread-safe (RHBZ#790721).
These two patches make appliance building thread-safe. The first adds
a test which easily demonstrates the problem. The second fixes the
issue.
For more information see Ian McLeod's analysis of the bug here:
https://bugzilla.redhat.com/show_bug.cgi?id=790528#c5
Rich.
2012 Jul 21
8
[PATCH libguestfs 0/4] Add a libvirt backend to libguestfs.
This preliminary patch series adds a libvirt backend to libguestfs.
It's for review only because although it launches the guest OK, there
are some missing features that need to be implemented.
The meat of the patch is in part 4/4.
To save you the trouble of interpreting libxml2 fragments, an example
of the generated XML and the corresponding qemu command line are
attached below. Note the
2013 Feb 18
4
[PATCH for discussion only 0/3] Implement mutexes to limit number of concurrent instances of libguestfs.
These three patches (for discussion only, NOT to be applied) implement
a mutex system that lets the user limit the number of libguestfs
instances that can be launched per host. There are two uses that I
have identified for this: firstly so we can enable parallel-tests (the
default in automake >= 1.13) without blowing up the host. Secondly
oVirt has raised concerns about how to limit the
2013 Mar 07
3
[PATCH 0/3] protocol: Abstract out socket operations.
I've been taking a long hard look at the protocol layer. It has
evolved over a long time without any particular direction, and the
result is, to say the least, not very organized.
These patches take a first step at cleaning up the mess by abstracting
out socket operations from the rest of the code. The purpose of this
is to allow us to slot in a different connection layer under the
2015 Feb 14
2
[PATCH 0/2] Change guestfs__*
libguestfs has used double and triple underscores in identifiers.
These aren't valid for global names in C++.
(http://stackoverflow.com/a/228797)
These large but completely mechanical patches change the illegal
identifiers to legal ones.
Rich.