<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Rich,<div class=""><br class=""></div><div class="">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.</div><div class=""><br class=""></div><div class="">Thanks again! </div><div class=""><br class=""><div class="">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;">---</div><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;">Richard Maloley II</div><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><a href="mailto:richard.maloley@gmail.com" class="">richard.maloley@gmail.com</a></div><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">616-745-6914</div><br class="Apple-interchange-newline"></div><br class="Apple-interchange-newline">
</div>
<br class=""><div><blockquote type="cite" class=""><div class="">On Jun 10, 2017, at 2:33 AM, Richard W.M. Jones <<a href="mailto:rjones@redhat.com" class="">rjones@redhat.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">On Fri, Jun 09, 2017 at 08:07:57PM -0400, Richard Maloley II wrote:<br class=""><blockquote type="cite" class="">Richard,<br class=""><br class="">Hello - I am hoping that you can shed some light on an issue I am<br class="">encountering. This could be due to my inexperience with KVM/Libvirtd<br class="">and the associated tools.<br class=""><br class="">Scenario: I am writing a VM deployment script for my home lab. From<br class="">my admin workstation I can connect to my KVM host and execute a<br class="">virt-clone operation without issue. I then want to virt-customize<br class="">the new VM. This ends up in an error.<br class=""><br class="">Essentially I believe it is telling me that it can’t find the disk<br class="">file.  However I can validate that the file exists on my KVM Host:<br class=""></blockquote><br class="">[list of images]<br class=""><br class=""><blockquote type="cite" class="">My question: Is virt-customize attempting to look at my local system<br class="">(admin jump box) instead of the libvirtd connection to KVM02? Or is<br class="">this a bug? Or did I simply miss an option that I need to include?<br class=""></blockquote><br class="">When connected to a remote libvirtd, virt-customize simply asks<br class="">libvirt for a list of the domains, but then it tries to open the disk<br class="">images returned as regular files.  The libvirt XML doesn't contain any<br class="">information that disk images are remote nor how to connect to remote<br class="">files.<br class=""><br class="">There are however several ways to edit remote files, although none of<br class="">them are completely transparent.  Probably the simplest method is to<br class="">share /var/lib/libvirt/images over NFS so it appears at the same path<br class="">on every machine.<br class=""><br class="">More complex methods include NBD, iSCSI, ssh:// URLs, etc.  See:<br class=""><br class="">  <a href="http://libguestfs.org/guestfish.1.html#adding-remote-storage" class="">http://libguestfs.org/guestfish.1.html#adding-remote-storage</a><br class=""><br class="">These URLs should work with virt-customize too if you use a recent<br class="">enough version.<br class=""><br class="">You might also find my minimal cloud software useful, although this<br class="">does not use remote storage, but relies on the controller being able<br class="">to use passwordless ssh to connect to each cloud node:<br class=""><br class="">  <a href="http://git.annexia.org/?p=mclu.git;a=summary" class="">http://git.annexia.org/?p=mclu.git;a=summary</a><br class="">  <a href="https://rwmj.wordpress.com/2015/03/23/mini-cloudcluster-v2-0/" class="">https://rwmj.wordpress.com/2015/03/23/mini-cloudcluster-v2-0/</a><br class=""><br class="">Rich.<br class=""><br class="">-- <br class="">Richard Jones, Virtualization Group, Red Hat <a href="http://people.redhat.com/~rjones" class="">http://people.redhat.com/~rjones</a><br class="">Read my programming and virtualization blog: <a href="http://rwmj.wordpress.com" class="">http://rwmj.wordpress.com</a><br class="">libguestfs lets you edit virtual machines.  Supports shell scripting,<br class="">bindings from many languages.  <a href="http://libguestfs.org" class="">http://libguestfs.org</a><br class=""></div></div></blockquote></div><br class=""></div></body></html>