Displaying 20 results from an estimated 87 matches for "guestfs_get_cachedir".
2016 May 12
0
[PATCH 3/4] appliance: Move code for creating supermin appliance directory to tmpdirs.c.
...*path, void *data)
static int
build_supermin_appliance (guestfs_h *g,
const char *supermin_path,
- uid_t uid,
char **kernel, char **initrd,
char **appliance)
{
- CLEANUP_FREE char *tmpdir = guestfs_get_cachedir (g);
CLEANUP_FREE char *cachedir = NULL, *lockfile = NULL, *appliancedir = NULL;
- struct stat statbuf;
- cachedir = safe_asprintf (g, "%s/.guestfs-%ju", tmpdir, (uintmax_t) uid);
- lockfile = safe_asprintf (g, "%s/lock", cachedir);
+ cachedir = guestfs_int_lazy_make_su...
2018 May 16
3
[PATCH] tests: Increase appliance memory when testing 256+ disks.
Currently the tests fail on x86 with recent kernels:
FAIL: test-255-disks.sh
This confused me for a while because our other test program
(utils/max-disks/max-disks.pl) reports that it should be possible to
add 255 disks.
Well it turns out that the default amount of appliance memory is
sufficient if you're just adding disks, but if you try to add _and_
partition those disks there's
2017 Jul 29
2
Re: cannot find any suitable libguestfs supermin
...e: get_backend
libguestfs: trace: get_backend = "direct"
guestfs_get_backend: direct
libguestfs: trace: get_backend_settings
libguestfs: trace: get_backend_settings = []
guestfs_get_backend_settings: []
libguestfs: trace: get_cachedir
libguestfs: trace: get_cachedir = "/var/tmp"
guestfs_get_cachedir: /var/tmp
libguestfs: trace: get_hv
libguestfs: trace: get_hv = "/usr/bin/qemu-system-x86_64"
guestfs_get_hv: /usr/bin/qemu-system-x86_64
libguestfs: trace: get_memsize
libguestfs: trace: get_memsize = 500
guestfs_get_memsize: 500
libguestfs: trace: get_network
libguestfs: trace: get_netw...
2019 Jan 22
4
Fedora 29 guestfish not working
...*****************************************
PATH=/usr/share/Modules/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/us
r/sbin:/home/romain/bin
XDG_RUNTIME_DIR=/run/user/1000
SELinux: Disabled
guestfs_get_append: (null)
guestfs_get_autosync: 1
guestfs_get_backend: libvirt
guestfs_get_backend_settings: []
guestfs_get_cachedir: /var/tmp
guestfs_get_hv: /usr/bin/qemu-kvm
guestfs_get_memsize: 500
guestfs_get_network: 0
guestfs_get_path: /usr/lib64/guestfs
guestfs_get_pgroup: 0
guestfs_get_program: libguestfs-test-tool
guestfs_get_recovery_proc: 1
guestfs_get_smp: 1
guestfs_get_sockdir: /run/user/1000
guestfs_get_tmpdir: /t...
2014 Jan 23
2
Errors Running on Ubuntu 13.10
...in your bug report.
*
************************************************************
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
SELinux: sh: 1: getenforce: not found
library version: 1.22.4
guestfs_get_append: (null)
guestfs_get_backend: direct
guestfs_get_autosync: 1
guestfs_get_cachedir: /var/tmp
guestfs_get_direct: 0
guestfs_get_memsize: 500
guestfs_get_network: 0
guestfs_get_path: /usr/lib/guestfs
guestfs_get_pgroup: 0
guestfs_get_program: libguestfs-test-tool
guestfs_get_qemu: /usr/bin/qemu-system-x86_64
guestfs_get_recovery_proc: 1
guestfs_get_selinux: 0
guestfs_get_smp: 1
gue...
2016 Jan 29
1
Re: [PATCH 6/6] launch: avoid too long paths for sockets
...behaviour certainly needs to be documented, eg. in
guestfs(3), because it changes an assumption that setting TMPDIR will
move every temporary file that libguestfs creates.
Are there machines where /tmp is unusable?
Should we provide an API to read the sockname, analogous to
guestfs_get_tmpdir and guestfs_get_cachedir?
Should we use /run or /dev/shm instead? I would say, not /run/user
because systemd doesn't reliably create it, unfortunately, but maybe
somewhere else in /run would be acceptable.
How does libvirt handle socket paths? Does it put them in /run, and
can we emulate its behaviour?
Are there i...
2014 Jan 23
3
Re: Errors Running on Ubuntu 13.10
...*****************************
>> PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
>> SELinux: sh: 1: getenforce: not found
>> library version: 1.22.4
>> guestfs_get_append: (null)
>> guestfs_get_backend: direct
>> guestfs_get_autosync: 1
>> guestfs_get_cachedir: /var/tmp
>> guestfs_get_direct: 0
>> guestfs_get_memsize: 500
>> guestfs_get_network: 0
>> guestfs_get_path: /usr/lib/guestfs
>> guestfs_get_pgroup: 0
>> guestfs_get_program: libguestfs-test-tool
>> guestfs_get_qemu: /usr/bin/qemu-system-x86_64
>> gu...
2018 May 16
0
[PATCH] tests: Increase appliance memory when testing 256+ disks.
...y available to the appliance. On x86 the default
+ * is not enough to both detect and partition 256 disks.
+ */
+ m = guestfs_get_memsize (g);
+ if (m == -1 ||
+ guestfs_set_memsize (g, m * 20 / 5) == -1)
+ error (EXIT_FAILURE, 0, "get or set memsize failed");
+
tmpdir = guestfs_get_cachedir (g);
if (tmpdir == NULL)
exit (EXIT_FAILURE);
diff --git a/utils/max-disks/max-disks.pl b/utils/max-disks/max-disks.pl
index f7fe5bca2..714357fbb 100755
--- a/utils/max-disks/max-disks.pl
+++ b/utils/max-disks/max-disks.pl
@@ -41,6 +41,7 @@ my $mid = 1024;
# Get the kernel under test.
m...
2018 May 16
1
Re: [PATCH] tests: Increase appliance memory when testing 256+ disks.
...e default
> + * is not enough to both detect and partition 256 disks.
> + */
> + m = guestfs_get_memsize (g);
> + if (m == -1 ||
> + guestfs_set_memsize (g, m * 20 / 5) == -1)
> + error (EXIT_FAILURE, 0, "get or set memsize failed");
> +
> tmpdir = guestfs_get_cachedir (g);
> if (tmpdir == NULL)
> exit (EXIT_FAILURE);
This is OK.
> diff --git a/utils/max-disks/max-disks.pl b/utils/max-disks/max-disks.pl
> index f7fe5bca2..714357fbb 100755
> --- a/utils/max-disks/max-disks.pl
> +++ b/utils/max-disks/max-disks.pl
> @@ -41,6 +41,7 @@ m...
2016 May 12
0
[PATCH 2/4] src/tmpdirs.c: Add internal documentation.
...guestfs_impl_get_tmpdir (guestfs_h *g)
{
@@ -110,7 +120,11 @@ guestfs_impl_set_cachedir (guestfs_h *g, const char *cachedir)
return set_abs_path (g, cachedir, &g->int_cachedir);
}
-/* Note this actually calculates the cachedir, so it never returns NULL. */
+/**
+ * Implements the C<guestfs_get_cachedir> API.
+ *
+ * Note this actually calculates the cachedir, so it never returns C<NULL>.
+ */
char *
guestfs_impl_get_cachedir (guestfs_h *g)
{
@@ -126,7 +140,12 @@ guestfs_impl_get_cachedir (guestfs_h *g)
return safe_strdup (g, str);
}
-/* Note this actually calculates the sockdir,...
2020 Aug 24
0
Re: Running libguestfs-test-tool problem
...l/sbin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/var/lib/snapd/snap/bin
> SELinux: sh: getenforce: command not found
> guestfs_get_append: (null)
> guestfs_get_autosync: 1
> guestfs_get_backend: direct
> guestfs_get_backend_settings: []
> guestfs_get_cachedir: /var/tmp
> guestfs_get_hv: /usr/bin/qemu-system-x86_64
> guestfs_get_memsize: 768
> guestfs_get_network: 0
> guestfs_get_path: /usr/lib/guestfs
> guestfs_get_pgroup: 0
> guestfs_get_program: libguestfs-test-tool
> guestfs_get_recovery_proc: 1
> guestfs_get_smp: 1
> guest...
2019 Nov 02
4
supermin: failed to find a suitable kernel
...e: get_backend
libguestfs: trace: get_backend = "direct"
guestfs_get_backend: direct
libguestfs: trace: get_backend_settings
libguestfs: trace: get_backend_settings = []
guestfs_get_backend_settings: []
libguestfs: trace: get_cachedir
libguestfs: trace: get_cachedir = "/var/tmp"
guestfs_get_cachedir: /var/tmp
libguestfs: trace: get_direct
libguestfs: trace: get_direct = 0
guestfs_get_direct: 0
libguestfs: trace: get_hv
libguestfs: trace: get_hv = "/usr/bin/qemu-system-x86_64"
guestfs_get_hv: /usr/bin/qemu-system-x86_64
libguestfs: trace: get_memsize
libguestfs: trace: get_memsize = 5...
2016 Apr 07
2
Help: Is it possible to use libguestfs in Xen guest OS
...*******************************************
LIBGUESTFS_BACKEND=libvirt
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/opt/vpxxcm/conversion
SELinux: sh: getenforce: command not found
guestfs_get_append: (null)
guestfs_get_autosync: 1
guestfs_get_backend: libvirt
guestfs_get_backend_settings: []
guestfs_get_cachedir: /var/tmp
guestfs_get_direct: 0
guestfs_get_hv: /usr/libexec/qemu-kvm
guestfs_get_memsize: 500
guestfs_get_network: 0
guestfs_get_path: /usr/lib64/guestfs
guestfs_get_pgroup: 0
guestfs_get_program: libguestfs-test-tool
guestfs_get_recovery_proc: 1
guestfs_get_selinux: 0
guestfs_get_smp: 1
guestfs_g...
2017 Jul 28
2
cannot find any suitable libguestfs supermin
I download libguestfs from github and fetch to the *origin master*.
I tried to build libguestfs in my own linux distro and I followd the
http://libguestfs.org/guestfs-building.1.html#using-a-prebuilt-binary-appliance
to replace with supermin
I download the appliance-1.30.1.tar.xz and appliance-1.30.1.tar.xz.sig
and extract the tarball to /home/user/appliance
and export
2014 Jun 04
2
Re: libguestfs supermin error
...*
************************************************************
PATH=/bin:/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/sbin:/usr/local/bin
SELinux: sh: getenforce: command not found
guestfs_get_append: (null)
guestfs_get_autosync: 1
guestfs_get_backend: direct
guestfs_get_backend_settings: []
guestfs_get_cachedir: /var/tmp
guestfs_get_direct: 0
guestfs_get_hv: /usr/bin/kvm
guestfs_get_memsize: 768
guestfs_get_network: 0
guestfs_get_path: /usr/local/lib/guestfs
guestfs_get_pgroup: 0
guestfs_get_program: libguestfs-test-tool
guestfs_get_recovery_proc: 1
guestfs_get_selinux: 0
guestfs_get_smp: 1
guestfs_get_tm...
2019 Jan 22
0
Re: Fedora 29 guestfish not working
...; PATH=/usr/share/Modules/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/us
> r/sbin:/home/romain/bin
> XDG_RUNTIME_DIR=/run/user/1000
> SELinux: Disabled
> guestfs_get_append: (null)
> guestfs_get_autosync: 1
> guestfs_get_backend: libvirt
> guestfs_get_backend_settings: []
> guestfs_get_cachedir: /var/tmp
> guestfs_get_hv: /usr/bin/qemu-kvm
> guestfs_get_memsize: 500
> guestfs_get_network: 0
> guestfs_get_path: /usr/lib64/guestfs
> guestfs_get_pgroup: 0
> guestfs_get_program: libguestfs-test-tool
> guestfs_get_recovery_proc: 1
> guestfs_get_smp: 1
> guestfs_get_s...
2015 May 26
6
[PATCH 0/6] Update the way that API versions are generated for the man page.
The existing mechanism was clunky, slow and used ~ 10 MB of
local disk.
Rich.
2015 Oct 13
1
Help, it's not working!
...our bug report.
*
************************************************************
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
SELinux: sh: 1: getenforce: not found
guestfs_get_append: (null)
guestfs_get_backend: direct
guestfs_get_autosync: 1
guestfs_get_cachedir: /var/tmp
guestfs_get_direct: 0
guestfs_get_hv: /usr/bin/qemu-system-x86_64
guestfs_get_memsize: 500
guestfs_get_network: 0
guestfs_get_path: /usr/lib/guestfs
guestfs_get_pgroup: 0
guestfs_get_program: libguestfs-test-tool
guestfs_get_recovery_proc: 1
guestfs_get_selinux: 0
guestfs_get_smp: 1
guest...
2018 Jun 08
1
Bug report.
SELinux: sh: 1: getenforce: not found
guestfs_get_append: (null)
guestfs_get_autosync: 1
guestfs_get_backend: direct
guestfs_get_backend_settings: []
guestfs_get_cachedir: /var/tmp
guestfs_get_direct: 0
guestfs_get_hv: /usr/bin/qemu-system-x86_64
guestfs_get_memsize: 500
guestfs_get_network: 0
guestfs_get_path: /usr/lib/x86_64-linux-gnu/guestfs
guestfs_get_pgroup: 0
guestfs_get_program: libguestfs-test-tool
guestfs_get_recovery_proc: 1
guestfs_get_selinux: 0
guestfs...
2014 Jan 23
0
Re: Errors Running on Ubuntu 13.10
...*********************************************************
> PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
> SELinux: sh: 1: getenforce: not found
> library version: 1.22.4
> guestfs_get_append: (null)
> guestfs_get_backend: direct
> guestfs_get_autosync: 1
> guestfs_get_cachedir: /var/tmp
> guestfs_get_direct: 0
> guestfs_get_memsize: 500
> guestfs_get_network: 0
> guestfs_get_path: /usr/lib/guestfs
> guestfs_get_pgroup: 0
> guestfs_get_program: libguestfs-test-tool
> guestfs_get_qemu: /usr/bin/qemu-system-x86_64
> guestfs_get_recovery_proc: 1
>...