search for: guestfs_inspect_o

Displaying 20 results from an estimated 98 matches for "guestfs_inspect_o".

Did you mean: guestfs_inspect_os
2012 Dec 14
3
inspect_os error with Win7 image
...ssage: hivex_close: do_hivex_close: you must call 'hivex-open' first to initialize the hivex handle This is the process flow: g = guestfs_create (); guestfs_add_drive_opts (g, diskFile,GUESTFS_ADD_DRIVE_OPTS_FORMAT, "raw",-1); guestfs_launch (g) char **roots = guestfs_inspect_os (g); guestfs_inspect_os returns NULL, guestfs_last_error(g) returns message above. And guestfs_last_errno(g) returns 0. However this same code works fine with a Server2008 image and an XP image. I copied the verbose output to pastebin: http://pastebin.com/U9Jb6JwH Suggestions?
2014 Mar 14
5
Re: --rbd volume access--
...-1.raw.img : run : > inspect-os > /dev/ubuntu-1204-vg/root > [root@EQkvm0101 ~]# guestfish -- add /dev/null : config -set > drive.hd0.file=rbd:ssd-clonetest-rule5/ubuntu-12.04--1.raw.img : > inspect-get-distro /dev/ubuntu-1204-vg/root > libguestfs: error: no inspection data: call guestfs_inspect_os first You have to call inspect-os, and pass the returned value back to inspect-get-distro. This is (to say the least) awkward in guestfish, but much easier if you use a real programming language (libguestfs has many language bindings, see http://libguestfs.org). Also you are missing a call to &...
2010 Aug 02
5
[PATCH v3 0/5] Inspection code in C
The first three patches were posted previously: https://www.redhat.com/archives/libguestfs/2010-July/msg00082.html The last two patches in this series change guestfish -i to use this new code. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming blog: http://rwmj.wordpress.com Fedora now supports 80 OCaml packages (the OPEN alternative to
2010 Jul 29
4
[PATCH 0/3] Inspection code in C
These three patches (two were previously posted) can do simple operating system inspection in C. Example of use: ><fs> add-ro rhel55.img ><fs> run ><fs> inspect-os /dev/VolGroup00/LogVol00 ><fs> inspect-get-type /dev/VolGroup00/LogVol00 linux ><fs> inspect-get-distro /dev/VolGroup00/LogVol00 rhel ><fs> inspect-get-arch
2010 Aug 17
8
[PATCH v4 0/8] Inspection code in C
Previously discussed here: https://www.redhat.com/archives/libguestfs/2010-August/msg00002.html -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones virt-df lists disk usage of guests without needing to install any software inside the virtual machine. Supports Linux and Windows. http://et.redhat.com/~rjones/virt-df/
2015 Nov 06
2
Re: [PATCH 2/2] actions: refactor available & feature_available
...5== by 0x4EA4B21: guestfs_feature_available (actions-5.c:1131) ==25905== by 0x4EF9FDF: guestfs_impl_list_filesystems (listfs.c:49) ==25905== by 0x4E7EDF2: guestfs_list_filesystems (actions-3.c:419) ==25905== by 0x4EE0FD2: guestfs_impl_inspect_os (inspect.c:62) ==25905== by 0x4E50E12: guestfs_inspect_os (actions-0.c:500) ==25905== by 0x4E3292: ocaml_guestfs_inspect_os (guestfs-c-actions.c:9385) ==25905== by 0x4696C8: camlGuestfs__fun_16039 (guestfs.ml:1242) ==25905== by 0x423224: camlV2v__inspect_source_1085 (v2v.ml:306) I've been staring at the code for a long while, and I cannot s...
2014 Mar 13
2
Re: --rbd volume access--
i will test it out and will update you.. Thankyou so much for your reply kind regards Shumaila Naeem Software Engineer , Ovex Technologies On Thu, Mar 13, 2014 at 5:15 PM, Richard W.M. Jones <rjones@redhat.com>wrote: > On Thu, Mar 13, 2014 at 03:06:17PM +0500, Shumaila Naeem wrote: > > >
2017 Jul 29
5
[PATCH 1/1] New partition API: part_resize
...a/generator/actions_core.ml b/generator/actions_core.ml index ea0735676..939aec7ee 100644 --- a/generator/actions_core.ml +++ b/generator/actions_core.ml @@ -9646,4 +9646,26 @@ be mountable but require special options. Filesystems may not all belong to a single logical operating system (use C<guestfs_inspect_os> to look for OSes)." }; + { defaults with + name = "part_resize"; added = (1, 37, 20); + style = RErr, [String (Device, "device"); Int "partnum"; Int64 "endsect"], []; + tests = [ + InitEmpty, Always, TestRun ( + [["part_...
2015 Jun 27
1
The usage if libguestfs
..., after that I run make , it happend: /usr/nitro/libvmi-master/libvmi/.libs/libvmi.so: undefined reference to `guestfs_launch' /usr/nitro/libvmi-master/libvmi/.libs/libvmi.so: undefined reference to `guestfs_close' /usr/nitro/libvmi-master/libvmi/.libs/libvmi.so: undefined reference to `guestfs_inspect_os' /usr/nitro/libvmi-master/libvmi/.libs/libvmi.so: undefined reference to `guestfs_ls' /usr/nitro/libvmi-master/libvmi/.libs/libvmi.so: undefined reference to `guestfs_inspect_get_type' /usr/nitro/libvmi-master/libvmi/.libs/libvmi.so: undefined reference to `guestfs_inspect_get_mountpoi...
2013 May 30
0
Re: ATTN: Denial of service attack possible on libguestfs 1.21.x, libguestfs.1.22.0
...ptimized out>, g=<optimized out>) at inspect-fs.c:238 #6 guestfs___check_for_filesystem_on (g=0x65da50, device=0x617930 "/dev/sda2", is_block=0, is_partnum=2) at inspect-fs.c:152 #7 0x00007ffff7b86980 in guestfs__inspect_os (g=0x65da50) at inspect.c:86 #8 0x00007ffff7b1c91b in guestfs_inspect_os (g=0x65da50) at actions-1.c:397 #9 0x0000000000406ba9 in main (argc=3, argv=<optimized out>) at virt-inspector.c:273 Looks like parse_lsb_release and parse_suse_release needs a similar change. I will test a patch. Olaf
2017 Jul 30
0
Re: [PATCH 1/1] New partition API: part_resize
...generator/actions_core.ml > index ea0735676..939aec7ee 100644 > --- a/generator/actions_core.ml > +++ b/generator/actions_core.ml > @@ -9646,4 +9646,26 @@ be mountable but require special options. Filesystems may > not all belong to a single logical operating system > (use C<guestfs_inspect_os> to look for OSes)." }; > > + { defaults with > + name = "part_resize"; added = (1, 37, 20); > + style = RErr, [String (Device, "device"); Int "partnum"; Int64 "endsect"], []; > + tests = [ > + InitEmpty, Always, Te...
2010 Jul 27
0
Inspection code in C
...----------------------------------------------------- /* Inspect and return list of operating systems found. * Returned list empty => no operating systems found. * 1 element => single operating system found. * > 1 element => multi-boot image. */ char ** /* list of root devices */ guestfs_inspect_os (guestfs_h *g); /* Pass in a root device of one of the operating systems. These * functions return ancillary information such as the name of the * OS, version numbers, etc. If it could not be determined, these * return an error. */ char * guestfs_inspect_get_name (guestfs_h *g, const char...
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.
2020 Jan 22
0
[PATCH] mltools, options: support --allow-discards when decrypting LUKS devices
...ns/inspect.c +++ b/options/inspect.c @@ -70,7 +70,7 @@ inspect_mount_handle (guestfs_h *g, struct key_store *ks) if (live) error (EXIT_FAILURE, 0, _("don’t use --live and -i options together")); - inspect_do_decrypt (g, ks); + inspect_do_decrypt (g, ks, 0); char **roots = guestfs_inspect_os (g); if (roots == NULL) diff --git a/options/options.h b/options/options.h index 9b78302..a63b468 100644 --- a/options/options.h +++ b/options/options.h @@ -137,7 +137,7 @@ struct key_store { extern void parse_config (void); /* in decrypt.c */ -extern void inspect_do_decrypt (guestfs_h *g,...
2013 May 28
6
ATTN: Denial of service attack possible on libguestfs 1.21.x, libguestfs.1.22.0
There's a denial of service attack possible from guests on any program that does inspection (eg. virt-inspector, many other virt-* tools, virt-v2v, OpenStack). The attack causes the host process to crash because of a double free. It's probably not exploitable (definitely not on Fedora because of the default memory hardening settings). This patch contains the fix and a reproducer:
2017 Jul 14
0
[PATCH 19/27] daemon: Reimplement ‘list_filesystems’ API in the daemon, in OCaml.
...e. In -particular, swap partitions are returned in the list. Also -this command does not check that each filesystem -found is valid and mountable, and some filesystems might -be mountable but require special options. Filesystems may -not all belong to a single logical operating system -(use C<guestfs_inspect_os> to look for OSes)." }; - - { defaults with name = "add_drive"; added = (0, 0, 3); style = RErr, [String (PlainString, "filename")], [OBool "readonly"; OString "format"; OString "iface"; OString "name"; OString "la...
2012 Mar 09
1
[PATCH 1/2] Close all file descriptors in the recovery process.
From: "Richard W.M. Jones" <rjones at redhat.com> If the parent process uses a pipe (or any fd, but pipes are a particular problem), then the recovery process would hold open the file descriptor(s) of the pipe, meaning that it could not be fully closed in the parent. Because the recovery process doesn't use exec(2), this wasn't avoidable even using FD_CLOEXEC. Avoid this
2012 Feb 23
1
[PATCH v2] Add a flag to make some functions called only at CONFIG state(RHBZ796520)
...ot;, (RErr, [Bool "network"], []), -1, [FishAlias "network"; ConfigOnly], [], "set enable network flag", "\ @@ -1020,7 +1020,7 @@ be mountable but require special options. Filesystems may not all belong to a single logical operating system (use C<guestfs_inspect_os> to look for OSes)."); - ("add_drive_opts", (RErr, [String "filename"], [OBool "readonly"; OString "format"; OString "iface"; OString "name"]), -1, [FishAlias "add"], + ("add_drive_opts", (RErr, [String &qu...
2012 Aug 06
1
[PATCH V2] virt-diff: add new virt-diff tool
...fprintf (stderr, _("%s: some filesystems could not be mounted (ignored)\n"), + program_name); +} + +/* This function implements the -i option. */ +static void +diff_inspect_mount (guestfs_h *g) +{ + const char *root = NULL; + diff_inspect_do_decrypt (g); + + char **roots = guestfs_inspect_os (g); + if (roots == NULL) + exit (EXIT_FAILURE); + + if (roots[0] == NULL) { + fprintf (stderr, + _("%s: no operating system was found on this disk\n" + "\n" + "If using guestfish '-i' option, remove this option and instead\n" +...
2015 May 05
3
libguestfs init problem
Hi ,all : thanks for helping me ! I am using libguestfs-1.28.1 on ubuntu 12.04 to manage vm disk created by KVM. I downloaded libguestfs-1.28.1.tar.gz ,and then executed (1) ./autogen.sh (2) ./configure (3) make (4) make check .there is the error. /usr/Libvmi/libguestfs-1.28.1/run --test guest-aux/make-fedora-img.pl md_create: feature 'mdadm' is not available in this