Displaying 20 results from an estimated 254 matches for "guestfs_launch".
2016 Aug 29
0
Re: guestfs_launch gets stuck
On Mon, Aug 29, 2016 at 08:24:43PM +0800, Baochuan Wu wrote:
> Hello everyone,
>
> I am using libguestfs on CentOS 7.2. I am trying to modify Red Hat 5.4
> disks. I am using C/C++. I found the process gets stuck
> inside guestfs_launch:
>
> Thread 1 (Thread 0x7fe3aa6148c0 (LWP 1265)):
> #0 0x00007fe3a9032c20 in __poll_nocancel () from /lib64/libc.so.6
> #1 0x00007fe3aa1e5ea4 in read_data () from /lib64/libguestfs.so.0
> #2 0x00007fe3aa20af0c in guestfs_int_recv_from_daemon () from
> /lib64/libguestfs.so.0
&g...
2009 Aug 19
1
[PATCH] Correct checks for dup failure in guestfs_launch
...p://fedoraproject.org/wiki/MinGW http://www.annexia.org/fedora_mingw
-------------- next part --------------
>From 8f1b06f64807239d4b4c923af4db8626a866ff6f Mon Sep 17 00:00:00 2001
From: Richard Jones <rjones at trick.home.annexia.org>
Date: Wed, 19 Aug 2009 09:37:44 +0100
Subject: [PATCH] guestfs_launch: Correct checks for dup failure.
---
src/guestfs.c | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/src/guestfs.c b/src/guestfs.c
index 58a0354..04bd4e8 100644
--- a/src/guestfs.c
+++ b/src/guestfs.c
@@ -1165,16 +1165,16 @@ guestfs_launch (guestfs_h *g)
c...
2018 Apr 05
2
[nbdkit PATCH] tests: Skip guestfs tests on CentOS 6
...uot;",
GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,
GUESTFS_ADD_DRIVE_OPTS_FORMAT, "raw",
@@ -70,6 +74,7 @@ main (int argc, char *argv[])
-1);
if (r == -1)
exit (EXIT_FAILURE);
+#endif
if (guestfs_launch (g) == -1)
exit (EXIT_FAILURE);
diff --git a/tests/test-delay.c b/tests/test-delay.c
index 47bf380..f037097 100644
--- a/tests/test-delay.c
+++ b/tests/test-delay.c
@@ -63,6 +63,10 @@ main (int argc, char *argv[])
exit (EXIT_FAILURE);
}
+#ifndef GUESTFS_ADD_DRIVE_OPTS_PROTOCOL
+ prin...
2016 Sep 05
0
Re: guestfs_launch gets stuck
...run
| 75%
[#####################################################################################################################################################################--------------------------------------------------------]
00:15
It has been stuck for about 10 minutes. I can see if is in guestfs_launch():
-bash-4.2# gdb -p `pidof guestfish` -ex "set confirm off" -ex "bt" -ex "q"
0x00007fe6f6b5a680 in __poll_nocancel () at
../sysdeps/unix/syscall-template.S:81
81 T_PSEUDO (SYSCALL_SYMBOL, SYSCALL_NAME, SYSCALL_NARGS)
#0 0x00007fe6f6b5a680 in __poll_nocancel () at
../...
2012 Dec 31
1
err from guestfs_launch
This error is with libguestfs 1.20.
Calling guestfs_launch() with tracing on:
supermin helper [00065ms] finished creating appliance
libguestfs: checksum of existing appliance:
2bd6811426e14b6fb661b4d52cebd6c21a41df1a068e8acf6a7a08e3b3bd4ada
libguestfs: trace: get_cachedir
libguestfs: trace: get_cachedir = "/var/tmp"
libguestfs: [00071ms] begin b...
2016 Aug 29
2
Re: guestfs_launch gets stuck
...t.so.0
> > #7 0x00007fac56d82151 in virDomainCreateXML () from /lib64/libvirt.so.0
> > #8 0x00007fac58acca50 in launch_libvirt () from /lib64/libguestfs.so.0
> > #9 0x00007fac58ac2b2b in guestfs_impl_launch () from
> /lib64/libguestfs.so.0
> > #10 0x00007fac58a5eba5 in guestfs_launch () from /lib64/libguestfs.so.0
> > #11 0x00000000004117ca in main ()
> ...
> > libguestfs: [62900ms] launch libvirt guest
>
> The error is happening in libvirt's virDomainCreateXML call, called
> from libguestfs here:
>
> https://github.com/libguestfs/libguestfs/bl...
2016 Aug 29
0
Re: guestfs_launch gets stuck
...XML () from /lib64/libvirt.so.0
> #7 0x00007fac56d82151 in virDomainCreateXML () from /lib64/libvirt.so.0
> #8 0x00007fac58acca50 in launch_libvirt () from /lib64/libguestfs.so.0
> #9 0x00007fac58ac2b2b in guestfs_impl_launch () from /lib64/libguestfs.so.0
> #10 0x00007fac58a5eba5 in guestfs_launch () from /lib64/libguestfs.so.0
> #11 0x00000000004117ca in main ()
...
> libguestfs: [62900ms] launch libvirt guest
The error is happening in libvirt's virDomainCreateXML call, called
from libguestfs here:
https://github.com/libguestfs/libguestfs/blob/master/src/launch-libvirt.c#L600
U...
2011 Apr 01
4
[PATCH 0/4] Add progress messages to guestfs_launch function.
These four commits add approximate progress messages to the
guestfs_launch function.
Rich.
--
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
virt-top is 'top' for virtual machines. Tiny program with many
powerful monitoring features, net stats, disk stats, logging, etc.
http://et.redhat.com/~rjones/virt-top
2009 Nov 10
3
[PATCH 0/3] Timestamp messages during guestfs_launch
I found this useful when looking at where the time goes
during guestfs_launch, and in fact using this I've reduced
the launch time from around 12 seconds on my machine to
7 or 8 seconds.
Rich.
--
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
New in Fedora 11: Fedora Windows cross-compiler. Compile Windows
programs, test, and build Windo...
2017 Apr 28
2
[PATCH] common/options: Change drv struct to store drive index instead of device name.
.../scan.c
@@ -236,7 +236,7 @@ main (int argc, char *argv[])
error (EXIT_FAILURE, 0, _("--uuid option cannot be used with -a or -d"));
/* Add domains/drives from the command line (for a single guest). */
- add_drives (drvs, 'a');
+ add_drives (drvs, 0);
if (guestfs_launch (g) == -1)
exit (EXIT_FAILURE);
diff --git a/cat/cat.c b/cat/cat.c
index 9fa8b4f..990fc90 100644
--- a/cat/cat.c
+++ b/cat/cat.c
@@ -236,7 +236,7 @@ main (int argc, char *argv[])
}
/* Add drives, inspect and mount. */
- add_drives (drvs, 'a');
+ add_drives (drvs, 0);
i...
2014 Sep 18
2
Re: Need Help
Hello Richard,
One more question, you mentioned that "hot plugging" is supported from *CentOS
7 *and gave me a link. That link says
"In libguestfs ≥ 1.20, you may add drives and remove after calling
"guestfs_launch" <http://libguestfs.org/guestfs.3.html#guestfs_launch>.
There are some restrictions, see below. This is called*hotplugging*."
When I executed "sudo yum install libguestfs-tools" on CentOS 6.5, it
installed libguestfs 1.20.11. So if we fix the current qemu issue then can...
2018 Nov 02
0
Re: guestfs_launch() fails when C application is started as a systemd service
On Fri, Nov 02, 2018 at 06:04:08PM +0200, Peter Dimitrov wrote:
> Hello,
>
> I have a simple C program that uses libguestfs to extract info about disk
> usage from a libvirt domain. It works when ran manually as root, but fails
> when started as a systemd service.
>
> I'm attaching the service file, source code and verbose logs from both the
> successful manual run
2018 Nov 08
0
Re: guestfs_launch() fails when C application is started as a systemd service
On Thu, Nov 08, 2018 at 04:51:31PM +0200, Peter Dimitrov wrote:
> Here are strace outputs per process.
>
> strace_output.22076 is the plugin's pid. (A little before forking)
Ah ha.
Close reading of the waitpid(2) man page says:
ECHILD (for waitpid() or waitid()) The process specified by pid (wait‐
pid()) or idtype and id (waitid()) does not exist or is not
2018 Nov 07
0
Re: guestfs_launch() fails when C application is started as a systemd service
On Wed, Nov 07, 2018 at 01:37:03PM +0200, Peter Dimitrov wrote:
> > That makes no sense because we are supposed to have just forked
> successfully
>
> I just realized libguestfs uses fork. Now we know why qemu-img worked - I
> launched it with popen.
>
> > So it must be something to do with collectd and how it runs programs.
> > Is it using LD_PRELOAD trickery,
2018 Nov 07
0
Re: guestfs_launch() fails when C application is started as a systemd service
On Wed, Nov 07, 2018 at 12:32:48PM +0200, Peter Dimitrov wrote:
> Thank you, Rich,
> This was the issue indeed. export LIBGUESTFS_BACKEND=direct fixed it.
>
> The next step I tried was to integrate libguestfs in collectd virt plugin
> to collect this data automatically.
> In this case I'm having an unknown error in add_libvirt_dom() (same with
> add_domain) when it's
2020 Oct 14
3
Re: virt-sparsify failed (was: [oVirt Jenkins] ovirt-system-tests_basic-suite-master_nightly - Build # 479 - Failure!)
...if the exit code == 0, discard it (or keep it if you like)
> >
> > This is what we already do, and the result is not helpful. If you look
> > at the log message in the previous message, basically the only
> > info about the error is:
> >
> > libguestfs error: guestfs_launch failed
> >
> > I don't see what we can do with this error message.
>
> Right, so in this particular instance the error message would tell us
> that you should run libguestfs-test-tool because your qemu/kernel/etc
> is broken in some way :-/
>
> There's not a pa...
2016 Aug 29
2
Re: guestfs_launch gets stuck
...n remoteDomainCreateXML () from /lib64/libvirt.so.0
#7 0x00007fac56d82151 in virDomainCreateXML () from /lib64/libvirt.so.0
#8 0x00007fac58acca50 in launch_libvirt () from /lib64/libguestfs.so.0
#9 0x00007fac58ac2b2b in guestfs_impl_launch () from /lib64/libguestfs.so.0
#10 0x00007fac58a5eba5 in guestfs_launch () from /lib64/libguestfs.so.0
#11 0x00000000004117ca in main ()
Log:
2016-Aug-29 15:02:07 main:1385 Entering main()
2016-Aug-29 15:02:07 main:1393 guestfs_create succeeded
2016-Aug-29 15:02:07 main:1398 guestfs_set_network ok
2016-Aug-29 15:02:07 main:1406 Trying to add drive /dev/xvdc
libguestf...
2012 Oct 10
0
NOTE: Relaunching handles (don't do it!)
It's possible through the API to do a sequence of calls like this:
g = guestfs_create ();
guestfs_add_drive (g, "foo");
guestfs_launch (g);
guestfs_shutdown (g);
guestfs_launch (g); # relaunch the handle
The question is, what should be the state of the handle at the second
launch? Would the verbose flag still be set if it had been set
earlier? (I think fairly obviously yes). Would drives added the
first time be automatic...
2013 Mar 04
1
guestfs-examples
Hi,
I tried to run the guestfs-examples from
http://libguestfs.org/guestfs-examples.3.html, but they gave the following
warnings and errors-
#warning: Unable to get device geometry for /var/tmp/guestfs.JVxEUn/root
#libguestfs: error: guestfs_launch failed, see earlier error messages
What I did from the beginning- I boot my debian linux (2.6.32-5-686) inside
VirtualBox and then install following packages there-
#apt-get install qemu libguestfs-dev libguestfs-tools
Then I created an image and install debian using qemu (inside my linux in
Virt...
2018 Nov 08
2
Re: guestfs_launch() fails when C application is started as a systemd service
Here are strace outputs per process.
strace_output.22076 is the plugin's pid. (A little before forking)
strace_output.22077 runs qemu-img
strace_output.22078 is a mystery to me
strace_output.22079 is rm -rf to the overlay image and its temporary dir.
Best Regards,
Peter
On Wed, Nov 7, 2018 at 4:38 PM Richard W.M. Jones <rjones@redhat.com> wrote:
> On Wed, Nov 07, 2018 at