search for: libguestfs_backend

Displaying 20 results from an estimated 165 matches for "libguestfs_backend".

2018 Oct 09
2
virt-builder fail with "bridge ‘virbr0’ not found" (fixed by LIBGUESTFS_BACKEND=direct ?!)
...onnect to using: export _SETTINGS=network_bridge=<bridge name> I don't want to add bridges to my new fresh oVirt test host, and remember that this used to work previously without the bridge. So I tried the usual "fix" (I know it should not be used in production): $ export LIBGUESTFS_BACKEND=direct And for some reason this works now: $ virt-builder fedora-27 -o /var/tmp/fedora-27.img ... [ 41.2] Finishing off Output file: /var/tmp/fedora-27.img Output size: 6.0G Output format: raw Total usable space: 5.3G...
2016 Aug 24
1
[PATCH] v2v: Allow libvirt >= 2.1.0 to be used for Xen and vCenter conversions.
...ou to open files which have a "json:" QEMU pseudo-URL as backingfile, whereas previously it would fail hard in this case (RHBZ#1134878). When virt-v2v performs conversions from Xen (over SSH) or vCenter (over HTTPS) it uses these pseudo-URLs as backingfiles. We had to tell people to use LIBGUESTFS_BACKEND=direct to avoid libvirt in this situation. This commit narrows the check so it will now only print the error if libvirt < 2.1.0 and LIBGUESTFS_BACKEND=direct is not set. Also the error is modified to tell users they can either upgrade libvirt or set LIBGUESTFS_BACKEND=direct to work around the...
2016 Nov 17
2
Re: [ovirt-users] OVA import of FC21 VM hangs during virt-v2v conversion?
[This email is either empty or too large to be displayed at this time]
2018 Oct 10
0
Re: virt-builder fail with "bridge ‘virbr0’ not found" (fixed by LIBGUESTFS_BACKEND=direct ?!)
On Tuesday, 9 October 2018 20:16:04 CEST Nir Soffer wrote: > I'm trying to build fedora-27 image for testing uploads: > > $ virt-builder fedora-27 -o /var/tmp/fedora-27.img > ... > [ 25.2] Opening the new disk > virt-builder: error: libguestfs error: bridge ‘virbr0’ not found. Try > running: > > brctl show > > to get a list of bridges on the host, and
2018 Oct 10
0
Re: virt-builder fail with "bridge ‘virbr0’ not found" (fixed by LIBGUESTFS_BACKEND=direct ?!)
On Wed, Oct 10, 2018 at 02:27:44PM +0300, Nir Soffer wrote: > On Wed, Oct 10, 2018 at 10:18 AM Pino Toscano <ptoscano@redhat.com> wrote: > > > On Tuesday, 9 October 2018 20:16:04 CEST Nir Soffer wrote: > > > I'm trying to build fedora-27 image for testing uploads: > > > > > > $ virt-builder fedora-27 -o /var/tmp/fedora-27.img > > > ...
2016 Sep 12
2
[PATCH] v2v: ova: Make OVA directory public readable to work around libvirt bug (RHBZ#1375157).
...ed = absolute_path exploded in + (* If virt-v2v is running as root, and the backend is libvirt, then + * we have to chmod the directory to 0755 and files to 0644 + * so it is readable by qemu.qemu. This is libvirt bug RHBZ#890291. + *) + if Unix.geteuid () = 0 then ( + let libguestfs_backend = (open_guestfs ())#get_backend () in + if libguestfs_backend = "libvirt" then ( + warning (f_"making OVA directory public readable to workaround libvirt bug https://bugzilla.redhat.com/890291"); + let cmd = [ "chmod"; "-R"; "go=u,go-w...
2016 Nov 17
2
Re: [ovirt-users] OVA import of FC21 VM hangs during virt-v2v conversion?
...n Wed, Nov 16, 2016 at 05:09:56PM -0500, Derek Atkins wrote: >> > >> > I'll try to reproduce the issue here, but you can also do >> > the following command directly on the guest disk image if you >> > want to test something: >> > >> > time LIBGUESTFS_BACKEND=direct guestfish --ro -a fc21-64.qcow2 -i >> > selinux-relabel /etc/selinux/targeted/contexts/files/file_contexts / >> > force:true >> > >> > As long as you make sure you use the '--ro' flag, this will not make >> > any changes to the disk image....
2023 Mar 17
1
[V2V PATCH v3 5/6] v2v, in-place: introduce --block-driver command line option
...he terms here. I meant the > libguestfs backend, which of course has nothing to do with v2v's input > method. > >> >> But even in that case, I don't understand. The default libguestfs >> backend is supposed to be "direct". >> >> If you have LIBGUESTFS_BACKEND permanently set to libvirt in your >> environment, for various reasons, I'd suggest simply unsetting >> LIBGUESTFS_BACKEND before running "make check". > > No, I don't have this set in my environment. But here's the thing: in > RHEL, CentOS (and in other...
2018 Oct 10
1
Re: virt-builder fail with "bridge ‘virbr0’ not found" (fixed by LIBGUESTFS_BACKEND=direct ?!)
On Wed, Oct 10, 2018 at 2:49 PM Daniel P. Berrangé <berrange@redhat.com> wrote: > On Wed, Oct 10, 2018 at 02:27:44PM +0300, Nir Soffer wrote: > > On Wed, Oct 10, 2018 at 10:18 AM Pino Toscano <ptoscano@redhat.com> > wrote: > > > > > On Tuesday, 9 October 2018 20:16:04 CEST Nir Soffer wrote: > > > > I'm trying to build fedora-27 image for
2017 Oct 17
1
[PATCH] v2v: -i libvirt: use precheck also for xen+ssh sources
...word libvirt_uri parsed_uri scheme server guest object inherit input_libvirt password libvirt_uri guest + method precheck () = + if backend_is_libvirt () then + error (f_"because of libvirt bug https://bugzilla.redhat.com/1140166 you must set this environment variable:\n\nexport LIBGUESTFS_BACKEND=direct\n\nand then rerun the virt-v2v command."); + error_if_libvirt_does_not_support_json_backingfile (); + error_if_no_ssh_agent () + method source () = debug "input_libvirt_xen_ssh: source: scheme %s server %s" scheme server; - if backend_is_libvirt (...
2018 Oct 10
2
Re: virt-builder fail with "bridge ‘virbr0’ not found" (fixed by LIBGUESTFS_BACKEND=direct ?!)
On Wed, Oct 10, 2018 at 10:18 AM Pino Toscano <ptoscano@redhat.com> wrote: > On Tuesday, 9 October 2018 20:16:04 CEST Nir Soffer wrote: > > I'm trying to build fedora-27 image for testing uploads: > > > > $ virt-builder fedora-27 -o /var/tmp/fedora-27.img > > ... > > [ 25.2] Opening the new disk > > virt-builder: error: libguestfs error: bridge
2015 Oct 21
2
[PATCH] v2v: use open_guestfs everywhere
...v2v/input_libvirt_other.ml b/v2v/input_libvirt_other.ml index 0a137c1..bb97bc6 100644 --- a/v2v/input_libvirt_other.ml +++ b/v2v/input_libvirt_other.ml @@ -28,7 +28,7 @@ open Utils * (RHBZ#1134592). This can be removed once the libvirt bug is fixed. *) let error_if_libvirt_backend () = - let libguestfs_backend = (new Guestfs.guestfs ())#get_backend () in + let libguestfs_backend = (open_guestfs ())#get_backend () in if libguestfs_backend = "libvirt" then ( error (f_"because of libvirt bug https://bugzilla.redhat.com/show_bug.cgi?id=1134592 you must set this environment variable:\n...
2016 Jan 12
3
What are the advantages and disadvantages of running with or without libvirt?
I didn't see what are the main differences in http://libguestfs.org/guestfs.3.html#backend Specifically, I'm interested in what is faster (direct sounds faster to me), and if there are any major restrictions (networking?) Here's an example command we are running (sorry, Python'ish, but you'll get it): ['virt-sysprep', '--connect', 'qemu:///system',
2016 Nov 17
0
Re: [ovirt-users] OVA import of FC21 VM hangs during virt-v2v conversion?
On Wed, Nov 16, 2016 at 08:07:15PM -0500, Derek Atkins wrote: > I found the disk image for the running VM, created a symlink, and then ran > the command above. It took a while: > > # time LIBGUESTFS_BACKEND=direct guestfish --ro -a fc21-64.qcow2 -i > selinux-relabel /etc/selinux/targeted/contexts/files/file_contexts / > force:true > > real 114m17.757s > user 114m16.476s > sys 0m6.042s That certainly demonstrates the bug. I'm unclear why it would be happening, but perhaps you c...
2016 Nov 17
0
Re: [ovirt-users] OVA import of FC21 VM hangs during virt-v2v conversion?
...016 4:11 am, Richard W.M. Jones wrote: > > On Wed, Nov 16, 2016 at 08:07:15PM -0500, Derek Atkins wrote: > >> I found the disk image for the running VM, created a symlink, and then > >> ran > >> the command above. It took a while: > >> > >> # time LIBGUESTFS_BACKEND=direct guestfish --ro -a fc21-64.qcow2 -i > >> selinux-relabel /etc/selinux/targeted/contexts/files/file_contexts / > >> force:true > >> > >> real 114m17.757s > >> user 114m16.476s > >> sys 0m6.042s > > > > That certainly demonstrate...
2016 Apr 07
2
Help: Is it possible to use libguestfs in Xen guest OS
...test-tool * ************************************************************ * IMPORTANT NOTICE * * When reporting bugs, include the COMPLETE, UNEDITED * output below in your bug report. * ************************************************************ 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_g...
2014 Nov 19
2
Re: virt-v2v: Died at /usr/bin/virt-p2v-server line 411
....M. Jones a écrit : > On Wed, Nov 19, 2014 at 09:08:36AM +0100, Nicolas Ecarnot wrote: >> I tried to use the virt-p2v-make-disk, but it failed to connect to a >> libvirt socket (obviously, there is none running in this VM.) > > To avoid libvirt problems, do: > > export LIBGUESTFS_BACKEND=direct > > Why don't you use the ISO? Burn it onto a CD and boot it. > > Rich. > OK Richard, I promised I would wait a day before getting back to this issue, but you know how to tease a sysadmin ;) Well, I did boot your iso file as a CD, and now it is booting and I get the...
2014 Sep 21
2
Re: virt-v2v -ic question
...edora Rawhide. > > Build the latest qemu, set the PATH and LIBGUESTFS_HV variables and still got > > the error, any idea? > > > > --------------------------------------------------------------------------------------------- > > shahar@shaharh ~/git/libguestfs (master) LIBGUESTFS_BACKEND=direct ./run ./v2v/virt-v2v -ic "esx://10.35.5.45/?no_verify=1" -o local -of raw -os /tmp/v2v RHEL > > I see - the esx:// URL won't work (I guess virt-v2v should explicitly > reject these). > > Anyway for new virt-v2v you have to have vCenter installed. It's >...
2015 Oct 21
0
Re: [PATCH] v2v: use open_guestfs everywhere
...ibvirt_other.ml > index 0a137c1..bb97bc6 100644 > --- a/v2v/input_libvirt_other.ml > +++ b/v2v/input_libvirt_other.ml > @@ -28,7 +28,7 @@ open Utils > * (RHBZ#1134592). This can be removed once the libvirt bug is fixed. > *) > let error_if_libvirt_backend () = > - let libguestfs_backend = (new Guestfs.guestfs ())#get_backend () in > + let libguestfs_backend = (open_guestfs ())#get_backend () in > if libguestfs_backend = "libvirt" then ( > error (f_"because of libvirt bug https://bugzilla.redhat.com/show_bug.cgi?id=1134592 you must set this environm...
2016 Nov 16
2
Re: [ovirt-users] OVA import of FC21 VM hangs during virt-v2v conversion?
...ber 16, 2016 5:15 pm, Richard W.M. Jones wrote: > On Wed, Nov 16, 2016 at 05:09:56PM -0500, Derek Atkins wrote: > > I'll try to reproduce the issue here, but you can also do > the following command directly on the guest disk image if you > want to test something: > > time LIBGUESTFS_BACKEND=direct guestfish --ro -a fc21-64.qcow2 -i > selinux-relabel /etc/selinux/targeted/contexts/files/file_contexts / > force:true > > As long as you make sure you use the '--ro' flag, this will not make > any changes to the disk image. The OVA has a .vmdk file inside it. I have...