Re: [Libguestfs] virt-customize

2022-02-20 Thread Lukáš Doktor
That was quick, thank you Rich. Temporarily I used the "cp" approach, but escaping possibility would be IMO useful, especially for automated setups where "--upload" args are generated automatically (my case). Regards, Lukáš Dne 18. 02. 22 v 20:00 Richard W.M. Jones napsal(a): > On Fri, Feb 18,

Re: [Libguestfs] virt-customize

2022-02-18 Thread Richard W.M. Jones
On Fri, Feb 18, 2022 at 07:01:22PM +0100, Lukáš Doktor wrote: > Hello Rich, > > by any chance do you know whether it's possible to escape ':' in > "virt-customize" command? I'm trying to upload a file: > > --upload > '/etc/yum.repos.d/_copr\:copr.devel.redhat.com\:ndokos\:pbench.repo:/etc/y

Re: [Libguestfs] virt-customize options that should work with Windows

2021-04-01 Thread Yongkui Guo
Hi rjones, Many thanks for the info. - Original Message - > > These are the virt-customize operations that should work on Windows > guests. All others likely do not work. > >--copy SOURCE:DEST >--copy-in LOCALPATH:REMOTEDIR >--delete PATH > >--edit FIL

[Libguestfs] virt-customize options that should work with Windows

2021-04-01 Thread Richard W.M. Jones
These are the virt-customize operations that should work on Windows guests. All others likely do not work. --copy SOURCE:DEST --copy-in LOCALPATH:REMOTEDIR --delete PATH --edit FILE:EXPR This should work, although there may be problems

Re: [Libguestfs] Virt Customize features from python

2020-08-27 Thread Donny Davis
Richard, Thank you for the lightning fast reply! I will check out both methods. Donny Davis c: 805 814 6800 On Thu, Aug 27, 2020, 8:36 AM Richard W.M. Jones wrote: > On Thu, Aug 27, 2020 at 08:32:35AM -0400, Donny Davis wrote: > > Hey Richard, > > > > I have been playing around with guestfs-py

Re: [Libguestfs] Virt Customize features from python

2020-08-27 Thread Richard W.M. Jones
On Thu, Aug 27, 2020 at 08:32:35AM -0400, Donny Davis wrote: > Hey Richard, > > I have been playing around with guestfs-python.3 and I am curious if there > is a method to call virt-customize like functions from python. Specifically > I need to install a package into the guest image. There isn't

Re: [Libguestfs] virt-customize --selinux-relabel

2020-06-22 Thread Richard W.M. Jones
On Mon, Jun 22, 2020 at 06:23:12PM +0100, Nicholas Hardiman wrote: > I'm setting up a test VM network for myself. > > Is this a good forum for questions? > > For instance, I've just stumbled over SElinux type of /etc/machine-info. > Type was unlabeled_t, not hostname_etc_t. > I probably broke it

[Libguestfs] virt-customize --selinux-relabel

2020-06-22 Thread Nicholas Hardiman
I'm setting up a test VM network for myself. Is this a good forum for questions? For instance, I've just stumbled over SElinux type of /etc/machine-info. Type was unlabeled_t, not hostname_etc_t. I probably broke it by running virt-customize --hostname myhost.example.com without adding the option

Re: [Libguestfs] virt-customize is very slow in ubuntu 18.04/centos 7.5

2018-09-20 Thread Gabriele Baldoni
Thanks Rich for the fast response. I think I will add some comment also to the ubuntu bug tracker. In the mean while I will try to build from source. Thanks, Gabriele On Wed, Sep 19, 2018 at 9:00 PM Richard W.M. Jones wrote: > On Wed, Sep 19, 2018 at 10:32:24AM +0200, Gabriele Baldoni wrote: >

Re: [Libguestfs] virt-customize is very slow in ubuntu 18.04/centos 7.5

2018-09-19 Thread Richard W.M. Jones
On Wed, Sep 19, 2018 at 10:32:24AM +0200, Gabriele Baldoni wrote: > Sorry for bothering you in this dev mailing list, I'm using libguestfs to > customize some vm using as bases the ubuntu cloud images. > But I noticed that it takes a lot and then fails when trying to install a > packet. > Same beha

Re: [Libguestfs] virt-customize error

2018-01-04 Thread EMILIO ABRAHAM GARRIDO GARCIA
Hi I haven´t got much detail it´s the image of AltaVault Software. Is possible to specify the boot partition in the virt-customize command? Os it´s possible to merge the partitions? BR. El 20/12/17 13:35, "Pino Toscano" escribió: Hi, please keep the

Re: [Libguestfs] virt-customize error

2017-12-22 Thread Richard W.M. Jones
On Wed, Dec 20, 2017 at 11:30:23AM +, EMILIO ABRAHAM GARRIDO GARCIA wrote: > Hi, > > I´m need to customize a debian qcow image, but I have this error > virt-customize: error: no operating systems were found in the guest image The basic reason for this error is described in the FAQ here: h

Re: [Libguestfs] virt-customize error

2017-12-20 Thread EMILIO ABRAHAM GARRIDO GARCIA
Hi Sorry. I will send the mails to the list. I haven´t got much detail it´s the image of AltaVault Software. Is possible to specify the boot partition in the virt-customize command? Os it´s possible to merge the partitions? BR. El 20/12/17 13:35, "Pino Toscano" escribió: Hi, please

Re: [Libguestfs] virt-customize error

2017-12-20 Thread Pino Toscano
Hi, please keep the replies on the list ... On Wednesday, 20 December 2017 13:17:43 CET EMILIO ABRAHAM GARRIDO GARCIA wrote: > The image is a debian image, with two boot images. I can execute this: > > # virt-filesystems --long -h --all -a kvm_av_4_4_n0.qcow2 > Name TypeVFS La

Re: [Libguestfs] virt-customize error

2017-12-20 Thread Pino Toscano
Hi, On Wednesday, 20 December 2017 12:30:23 CET EMILIO ABRAHAM GARRIDO GARCIA wrote: > I´m need to customize a debian qcow image, but I have this error > virt-customize: error: no operating systems were found in the guest image > > The command that I´m trying is: > virt-customize -v -x -a ./kvm_a

Re: [Libguestfs] virt-customize kernel question

2017-11-29 Thread Richard W.M. Jones
. > When the image is booted, the default kernel used is the host’s? ... no. When the libguestfs / virt-customize appliance is running it uses the host's highest numbered kernel. Refer to the architecture diagram here: http://libguestfs.org/guestfs-internals.1.html#architecture

[Libguestfs] virt-customize kernel question

2017-11-29 Thread ANDRES POZO MUNOZ
Hi, I’m facing some problem trying to install some software in an image with virt-customize. The package I’m trying to install uses some script to check dependencies and verifies the linux-headers-4.x are installed in the guest system. The problem is that it uses the ‘uname –r’ command to

Re: [Libguestfs] virt-customize networking question

2017-11-24 Thread Richard W.M. Jones
On Fri, Nov 24, 2017 at 01:29:19PM +, ANDRES POZO MUNOZ wrote: > Hi Richard, > > Appreciate your help! Thank you very much! > > With that option, the booted image is able to download some packages from > internet and install them. > > If you need any detail about our setup to investigate th

Re: [Libguestfs] virt-customize networking question

2017-11-24 Thread ANDRES POZO MUNOZ
Hi Richard, Appreciate your help! Thank you very much! With that option, the booted image is able to download some packages from internet and install them. If you need any detail about our setup to investigate the bug, just let me know. Regards, Andrés El 24/11/17 11:01, "Richard W.M. Jones"

Re: [Libguestfs] virt-customize networking question

2017-11-24 Thread Richard W.M. Jones
On Fri, Nov 24, 2017 at 08:23:46AM +, ANDRES POZO MUNOZ wrote: > Hi Richard, > > Thank you very much for your response. > > Here’s the output of the guestfish command. This does look a lot like https://bugzilla.redhat.com/show_bug.cgi?id=1503507 I'm afraid I haven't had time to really analy

Re: [Libguestfs] virt-customize networking question

2017-11-24 Thread ANDRES POZO MUNOZ
Hi Richard, Thank you very much for your response. Here’s the output of the guestfish command. [sysadmin@image-repo ~]$ guestfish -a /dev/null --network run -v -x libguestfs: trace: set_pgroup true libguestfs: trace: set_pgroup = 0 libguestfs: trace: add_drive "/dev/null" libguestfs: trace: get

Re: [Libguestfs] virt-customize networking question

2017-11-23 Thread Richard W.M. Jones
On Thu, Nov 23, 2017 at 06:26:37PM +, ANDRES POZO MUNOZ wrote: > Hi, > > A quick question about a problem I’m facing. > > I want to customize some image running a customization script with > virt-customize. > > Everything works fine, except the fact that I don’t have a DHCP > server in the net

[Libguestfs] virt-customize networking question

2017-11-23 Thread ANDRES POZO MUNOZ
Hi, A quick question about a problem I’m facing. I want to customize some image running a customization script with virt-customize. Everything works fine, except the fact that I don’t have a DHCP server in the network (virt-customize relies on DHCP to assign the IP when it boots the image, ri

Re: [Libguestfs] virt-customize issue/question

2017-06-12 Thread Richard Maloley II
Rich, Thanks for answering my email! I actually went about solving this by using ssh to issue remote commands to the hypervisor to run the virt-customize command. For my small setup this will work without issue. Thanks again! --- Richard Maloley II richard.malo...@gmail.com 616-745-6914 >

Re: [Libguestfs] virt-customize issue/question

2017-06-09 Thread Richard W.M. Jones
On Fri, Jun 09, 2017 at 08:07:57PM -0400, Richard Maloley II wrote: > Richard, > > Hello - I am hoping that you can shed some light on an issue I am > encountering. This could be due to my inexperience with KVM/Libvirtd > and the associated tools. > > Scenario: I am writing a VM deployment script f

Re: [Libguestfs] virt-customize fail to inject firstboot script when running it from script.

2017-03-14 Thread Keresztes Péter-Zoltán
Unless you can ignore different line terminations I don’t think so. Regards, Peter > On 14 Mar 2017, at 20:23, Richard W.M. Jones wrote: > > On Tue, Mar 14, 2017 at 05:58:53PM +0200, Keresztes Péter-Zoltán wrote: >> Figured it out. >> >> The generated script had CRLF line termination. When we

Re: [Libguestfs] virt-customize fail to inject firstboot script when running it from script.

2017-03-14 Thread Richard W.M. Jones
On Tue, Mar 14, 2017 at 05:58:53PM +0200, Keresztes Péter-Zoltán wrote: > Figured it out. > > The generated script had CRLF line termination. When we have removed the \r > from the end if line everything started to work. That's good that you worked this out. Is this something that can be helped

Re: [Libguestfs] virt-customize fail to inject firstboot script when running it from script.

2017-03-14 Thread Keresztes Péter-Zoltán
Figured it out. The generated script had CRLF line termination. When we have removed the \r from the end if line everything started to work. Thanks for the help. Regards, Peter > On 14 Mar 2017, at 17:00, Richard W.M. Jones wrote: > > On Tue, Mar 14, 2017 at 04:46:41PM +0200, Keresztes Péter-

Re: [Libguestfs] virt-customize fail to inject firstboot script when running it from script.

2017-03-14 Thread Richard W.M. Jones
On Tue, Mar 14, 2017 at 04:46:41PM +0200, Keresztes Péter-Zoltán wrote: > We are enforcing #!/bin/bash at the beginning of the scripts and bash is > installed in every guest. No idea in that case. Suggest using guestfish on the guest after virt-customize has run to check that the files are real

Re: [Libguestfs] virt-customize fail to inject firstboot script when running it from script.

2017-03-14 Thread Keresztes Péter-Zoltán
We are enforcing #!/bin/bash at the beginning of the scripts and bash is installed in every guest. Regards, Peter 2017. márc. 14. dátummal, 16:14 időpontban Richard W.M. Jones írta: >> On Tue, Mar 14, 2017 at 03:45:34PM +0200, Keresztes Péter-Zoltán wrote: >> I am running libguestfs versio

Re: [Libguestfs] virt-customize fail to inject firstboot script when running it from script.

2017-03-14 Thread Richard W.M. Jones
On Tue, Mar 14, 2017 at 03:45:34PM +0200, Keresztes Péter-Zoltán wrote: > I am running libguestfs version 1.34.2 As far as I know, this version should contain all the fixes for Debian firstboot issues, in particular the ones related to https://bugzilla.redhat.com/1019388 > The issue is the follow

Re: [Libguestfs] virt-customize fail to inject firstboot script when running it from script.

2017-03-14 Thread Keresztes Péter-Zoltán
I am running libguestfs version 1.34.2 The issue is the following. When I start the vm with virt-log I see this: Mar 13 17:33:30 multi6 firstboot.sh[358]: /usr/lib/virt-sysprep/firstboot.sh start Mar 13 17:33:30 multi6 cron[359]: (CRON) INFO (Running @reboot jobs) Mar 13 17:33:30 multi6 firstboo

Re: [Libguestfs] virt-customize fail to inject firstboot script when running it from script.

2017-03-14 Thread Richard W.M. Jones
On Mon, Mar 13, 2017 at 11:48:05PM +0200, Keresztes Péter-Zoltán wrote: > Hello, > > We have a nodejs app which is injecting first boot scripts using > virt-customize however the exact same commands are working when triggered > manually. > > Here is the debug output of the commands Which versi

[Libguestfs] virt-customize fail to inject firstboot script when running it from script.

2017-03-13 Thread Keresztes Péter-Zoltán
Hello, We have a nodejs app which is injecting first boot scripts using virt-customize however the exact same commands are working when triggered manually. Here is the debug output of the commands Regards, Peter [ 0.0] Examining the guest ... libguestfs: trace: set_network true libguestfs:

Re: [Libguestfs] virt-customize network issue

2016-02-24 Thread Richard W.M. Jones
[Please send all questions to the mailing list] On Tue, Feb 23, 2016 at 08:48:50PM -0600, Brendan Hoffmann wrote: > Hello there, > > I seem to be having some issue using virt-customize to update a virtual > machine. Im using CentOS 7 on the host and guest with the latest packages. Which version