<div dir="auto">Richard,<div dir="auto"><br></div><div dir="auto">Thank you for the lightning fast reply! I will check out both methods. <br><br><div data-smartmail="gmail_signature" dir="auto">Donny Davis<br>c: 805 814 6800</div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Aug 27, 2020, 8:36 AM Richard W.M. Jones <<a href="mailto:rjones@redhat.com">rjones@redhat.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Thu, Aug 27, 2020 at 08:32:35AM -0400, Donny Davis wrote:<br>
> Hey Richard,<br>
> <br>
> I have been playing around with guestfs-python.3 and I am curious if there<br>
> is a method to call virt-customize like functions from python. Specifically<br>
> I need to install a package into the guest image.<br>
<br>
There isn't directly, you'd have to either run virt-customize as an<br>
external command, or emulate what virt-customize does using guestfs<br>
python calls:<br>
<br>
<a href="https://github.com/libguestfs/libguestfs/blob/fce82fe55a2b64a1a7e494858aa272d608e5e54e/customize/customize_run.ml#L70" rel="noreferrer noreferrer" target="_blank">https://github.com/libguestfs/libguestfs/blob/fce82fe55a2b64a1a7e494858aa272d608e5e54e/customize/customize_run.ml#L70</a><br>
<a href="https://github.com/libguestfs/libguestfs/blob/fce82fe55a2b64a1a7e494858aa272d608e5e54e/customize/customize_run.ml#L272" rel="noreferrer noreferrer" target="_blank">https://github.com/libguestfs/libguestfs/blob/fce82fe55a2b64a1a7e494858aa272d608e5e54e/customize/customize_run.ml#L272</a><br>
<br>
Rich.<br>
<br>
-- <br>
Richard Jones, Virtualization Group, Red Hat <a href="http://people.redhat.com/~rjones" rel="noreferrer noreferrer" target="_blank">http://people.redhat.com/~rjones</a><br>
Read my programming and virtualization blog: <a href="http://rwmj.wordpress.com" rel="noreferrer noreferrer" target="_blank">http://rwmj.wordpress.com</a><br>
virt-builder quickly builds VMs from scratch<br>
<a href="http://libguestfs.org/virt-builder.1.html" rel="noreferrer noreferrer" target="_blank">http://libguestfs.org/virt-builder.1.html</a><br>
<br>
</blockquote></div>