search for: guestfish

Displaying 20 results from an estimated 1498 matches for "guestfish".

2014 Sep 16
5
[PATCH 0/3] tests: Introduce test harness for running tests.
...talled copy of libguestfs. Another aim is to allow us to work around all the limitations and problems of automake. The first patch makes an observation that since the ./run script sets up $PATH to contain all the directories containing binaries, we can change all the test scripts to use (eg) 'guestfish' instead of '../fish/guestfish'. This allows the test scripts to be reused to test the installed binary, simply by not invoking the ./run script. Note this change is completely compatible with the current test system. The second patch is just preparation. The third patch adds (or rat...
2015 Nov 22
2
Re: installation error
Thank you, The apt was set to look in the wheezy instead of the jessie one. > On 22 Nov 2015, at 13:30, Richard W.M. Jones <rjones@redhat.com> wrote: > > On Sat, Nov 21, 2015 at 05:12:19AM +0200, Keresztes Péter-Zoltán wrote: >> Hello, >> >> I am trying to install libguestfs on a proxmox (debian jessie with some custom packages) and when I run make at a certain
2015 Nov 22
0
Re: installation error
Hello, I have got into a different issue while trying to compile the latest version of libguestfs: CC guestfish-edit.o CC guestfish-events.o CC guestfish-file-edit.o CC guestfish-fish.o fish.c: In function 'main': fish.c:173:3: warning: implicit declaration of function 'time' [-Wimplicit-function-declaration] srandom (time (NULL)); ^ fish.c:173:3: warning: nested...
2013 Dec 09
3
[PATCH 1/3] Fix manpage generation in out-of-tree builds
...\ - --insert guestfs-availability.pod:__AVAILABILITY__ \ - --insert guestfs-structs.pod:__STRUCTS__ \ + --insert $(srcdir)/guestfs-actions.pod:__ACTIONS__ \ + --insert $(srcdir)/guestfs-availability.pod:__AVAILABILITY__ \ + --insert $(srcdir)/guestfs-structs.pod:__STRUCTS__ \ $< guestfish.1: guestfish.pod guestfish-actions.pod guestfish-commands.pod guestfish-prepopts.pod @@ -102,9 +102,9 @@ guestfish.1: guestfish.pod guestfish-actions.pod guestfish-commands.pod guestfis --no-strict-checks \ --man $@ \ --license GPLv2+ \ - --insert guestfish-actions.pod:__ACTIONS__ \ -...
2009 Aug 24
5
[0/5] guestfish: detect stdout-write failure
Nearly any program that writes to standard output can benefit from this sort of fix. Without it, running e.g., ./guestfish --version > /dev/full would exit successfully, even though it got ENOSPC when writing to the full device. That means regular output redirected to a file on a full partition may also fail to be written, and the error ignored. Before: $ guestfish --version > /dev/full After: $...
2015 Jul 29
2
Re: \n didn't lead to a new line while using remote model
On Wed, Jul 29, 2015 at 04:18:02PM +0800, Yu Liu wrote: [...] > Let's make an example: > > #guestfish -a disk.img > >run > >mount /dev/sda1 / > >write-append /a.txt "Hello\n" > >write-append /a.txt "World\n" > >cat /a.txt > Hello > World > > >quit > > Another try: > eval `guestfish --listen` > guestfish --remote add disk...
2014 Sep 23
0
[PATCH 11/13] syntax-check: fix prohibit_undesirable_word_seq check
...0140 NEW https://bugzilla.redhat.com/show_bug.cgi?id=1100140 - some operation cause "lvremove" can not find the object + some operation cause "lvremove" cannot find the object 1100528 NEW https://bugzilla.redhat.com/show_bug.cgi?id=1100528 These APIs also need to add to `guestfish -h` command list @@ -513,7 +513,7 @@ You can help by testing the fixes. Disable libguestfs UML backend mode in RHEL7 1144201 ON_QA https://bugzilla.redhat.com/show_bug.cgi?id=1144201 - guestfish can not restore terminal's output colour when exit guestfish, if the terminal's backgroun...
2015 Nov 22
1
Re: installation error
...he configure script since it creates error in compilation Regards, Peter > On 22 Nov 2015, at 20:06, Keresztes Péter-Zoltán <zozo@z0z0.tk> wrote: > > Hello, > > I have got into a different issue while trying to compile the latest version of libguestfs: > > CC guestfish-edit.o > CC guestfish-events.o > CC guestfish-file-edit.o > CC guestfish-fish.o > fish.c: In function 'main': > fish.c:173:3: warning: implicit declaration of function 'time' [-Wimplicit-function-declaration] > srandom (time (NULL)); > ^...
2010 Mar 31
1
How can I change exit on error behaviour in remote control mode ?
Hi, all: In remote control mode of guestfish, the server will normally exit if there is an error in a command. guestfish man page said if we prefix a command with a - character, then that command will not cause guestfish to exit, but this doesn't work in remote control mode, seems the prefixal '-' in sub-command won't be hand...
2016 Feb 25
1
[PATCH] fish: Set program name correctly for virt-{copy, tar}-{in, out} programs.
Set the (libguestfs handle) program name correctly when running programs like virt-copy-in, so the program name is not "guestfish" but "virt-copy-in". Note this feature cannot be tested using the ./run script, since libtool (buggily) resets the program name to "lt-guestfish". However I tested it on the installed copy and it worked there. --- fish/virt-copy-in | 2 +- fish/virt-copy-out | 2 +- fis...
2014 Jan 05
2
Build libguestfs error with undefined reference to `tgetnum'
Hi I want to build libguestfs on my laptop. I run Centos 6.4, libguestfs libguestfs-1.24.3. I get this error: Wide character in print at /root/libguestfs-1.24.3/podwrapper.pl line 418. podwrapper.pl: wrote guestfish.1 podwrapper.pl: wrote ../html/guestfish.1.html touch stamp-guestfish.pod CCLD guestfish guestfish-progress.o: In function `progress_bar_set': /root/libguestfs-1.24.3/fish/progress.c:282: undefined reference to `tgetnum' guestfish-progress.o: In function `fprintf': /usr/include/bi...
2018 Feb 07
1
[PATCH] fish: add a small doc note about -- for args (RHBZ#1536603)
This will hint what to do when any argument of a command starts with a dash. --- fish/guestfish.pod | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/fish/guestfish.pod b/fish/guestfish.pod index ad98e975e..bbf43aad5 100644 --- a/fish/guestfish.pod +++ b/fish/guestfish.pod @@ -458,6 +458,13 @@ command that gives an error causes the whole shell to exit. In interactive mode (with a p...
2011 Nov 24
1
[PATCH] New API: md-stop for stopping MD devices
...not remove or zeroed it."); + ] let all_functions = non_daemon_functions @ daemon_functions diff --git a/regressions/test-mdadm.sh b/regressions/test-mdadm.sh index 8119561..66d3a9d 100755 --- a/regressions/test-mdadm.sh +++ b/regressions/test-mdadm.sh @@ -150,4 +150,18 @@ done ../fish/guestfish --remote exit +eval `../fish/guestfish --listen` +../fish/guestfish --remote add-ro md-test1.img +../fish/guestfish --remote add-ro md-test2.img +../fish/guestfish --remote add-ro md-test3.img +../fish/guestfish --remote add-ro md-test4.img +../fish/guestfish --remote run + +for md in `../fish/gu...
2014 Jan 20
2
guestfish and luks-format
Is "luks-format" supposed to work with guestfish? Like guestfish <<EOF luks-format /dev/sda4 0 EOF Appearently it lacks an option to give the passphrase programmatically. Was this option skipped on purpose? Olaf
2011 Nov 23
2
[PATCH] New API: mdadm-stop for stopping MD devices.
...not remove or zeroed it."); + ] let all_functions = non_daemon_functions @ daemon_functions diff --git a/regressions/test-mdadm.sh b/regressions/test-mdadm.sh index 8119561..017341a 100755 --- a/regressions/test-mdadm.sh +++ b/regressions/test-mdadm.sh @@ -150,4 +150,18 @@ done ../fish/guestfish --remote exit +eval `../fish/guestfish --listen` +../fish/guestfish --remote add-ro md-test1.img +../fish/guestfish --remote add-ro md-test2.img +../fish/guestfish --remote add-ro md-test3.img +../fish/guestfish --remote add-ro md-test4.img +../fish/guestfish --remote run + +for md in `../fish/gu...
2010 Jul 08
0
[ANNOUNCE] libguestfs 1.4.0 - tools for accessing and modifying disk images and virtual machines
...;O=D Release notes for libguestfs 1.4.0 ---------------------------------- These release notes only cover the differences from the previous stable/dev branch split (1.2.0). For detailed changelogs, please see the git repository, or the ChangeLog file distributed in the tarball. New features - guestfish lets you choose a prepared disk image, eg: guestfish -N fs:ext4 - Add write support to guestmount (FUSE) module. - virt-resize can now resize the content of partitions and logical volumes in the guest, and we have better support for shrinking guests. - Bash tab-completion script for g...
2013 Aug 18
2
missing mount cmd confuses guestfish
I think calling "sh" before "mount" should not confuse guestfish like that: # guestfish (1.20.4 on sles11sp3) Welcome to guestfish, the libguestfs filesystem interactive shell for editing virtual machine filesystems. Type: 'help' for help on commands 'man' to read the manual 'quit' to quit the shell ><fs> add-dri...
2016 May 19
0
[PATCH 1/3] tests: specify the image format when possible
...nspecified format for the image, and also makes qemu slightly faster (skipping the disk image probing). Tests checking the image probing are not touched. This changes also: - old-style invocations of tools (`$tool $filename`) into new style (`$tool -a $filename`) - add-drive-ro/add-drive-with-if guestfish commands into add/add-drive with explicit readonly/iface arguments There should be no change in the tests results. --- align/test-virt-alignment-scan.sh | 2 +- cat/test-virt-cat.sh | 4 ++-- cat/test-virt-filesystems.sh | 4 ++-- cat/test-virt-log.sh...
2015 Jun 24
1
Conditional statements in libguestfs
Hi Experts, I am writing a guestfish script . I want to implement conditional logic inside guestfish script. For example , if state.tgz exists in image do something else if onetime.tgz exists in the image do someotherthing . Is it possible to do this within guestfish script. I tried to search a solution for this in guestfish doucment...
2013 Oct 17
0
ANNOUNCE: CVE-2013-4419: insecure temporary directory handling for guestfish's network socket
This issue has been assigned CVE-2013-4419. https://bugzilla.redhat.com/show_bug.cgi?id=1016960 (Note this bug is private, but will be made public shortly) ---------------------------------------------------------------------- When using the guestfish --remote or guestfish --listen options, guestfish would create a socket in a known location (/tmp/.guestfish-$UID/socket-$PID). The location has to be a known one in order for both ends to communicate. However no checking was done that the containing directory (/tmp/.guestfish-$UID) is owned by t...