Hello,<br><br>===> problem SOLVED <===<br><br>>Can you try --apt_proxy=<a href="http://88.191.190.70:3142/" target="_blank">http://88.191.190.70:3142/</a> instead?<br>
>"=url" implies (admittedly not very clearly) that a protocol needs to<br>
>be included.<br><br>Thanks you very much, that's the error.<br>Nota: tested and OK, with and without the ending slash on proxy url:<br><a href="http://AA.BB.CC.DD:3142">http://AA.BB.CC.DD:3142</a><br><a href="http://AA.BB.CC.DD:3142/">http://AA.BB.CC.DD:3142/</a><br>
<br><br>RESUME: Use of apt-cacher-ng during xen-create-image :<br><br>use the option --apt_proxy like this:<br>  --apt_proxy=<a href="http://AA.BB.CC.DD:3142/">http://AA.BB.CC.DD:3142/</a><br><br>Or set it in /etc/xen-tools/xen-tools.conf like that:<br>
  mirror = <a href="http://ftp.fr.debian.org/debian/">http://ftp.fr.debian.org/debian/</a><br>  apt_proxy = <a href="http://AA.BB.CC.DD:3142/">http://AA.BB.CC.DD:3142/</a><br><br><br>Sorry for not finding this easy solving myself...<br>
I was not sure if it was a bug or not, that's why a bug report was not created.<br><br>Thanks you very much, Kevin.<br><br><br><div class="gmail_quote">2013/7/9 Axel Beckert <span dir="ltr"><<a href="mailto:abe@deuxchevaux.org" target="_blank">abe@deuxchevaux.org</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Control: found 623443 0.9.8.2<br>
Control: found 623443 0.9.9<br>
<br>
Hi Kevin,<br>
<div class="im"><br>
On Tue, Jul 09, 2013 at 01:53:31PM +0200, Kevin FAUCHON wrote:<br>
> The actual manpage of debian wheezy say:<br>
> "--apt_proxy=url  Specify a proxy to be used by debootstrap, and within<br>
> the guest."<br>
><br>
> So i launch this command:<br>
> xen-create-image --apt_proxy=<a href="http://88.191.190.70:3142" target="_blank">88.191.190.70:3142</a> --hostname=test2<br>
> --size=2048Mb \<br>
> --memory=128Mb --swap=32Mb --ip=192.168.254.98 --role=udev<br>
<br>
</div>Can you try --apt_proxy=<a href="http://88.191.190.70:3142/" target="_blank">http://88.191.190.70:3142/</a> instead?<br>
<br>
"=url" implies (admittedly not very clearly) that a protocol needs to<br>
be included.<br>
<div class="im"><br>
> And near the end of the logfile, these errors:<br>
> W: Failed to fetch<br>
> <a href="http://ftp.fr.debian.org/debian/dists/wheezy/main/binary-amd64/Packages" target="_blank">http://ftp.fr.debian.org/debian/dists/wheezy/main/binary-amd64/Packages</a><br>
> Cannot initiate the connection to <a href="tel:3142" value="+333142">3142</a>:80 (0.0.12.70). - connect (22:<br>
> Invalid argument)<br>
<br>
</div>Fits: It took 88.191.190.70 as protocol (i.e. before the colon) and<br>
<a href="tel:3142" value="+333142">3142</a> as hostname (behind the colon). But it's strange that it was able<br>
to look up <a href="tel:3142" value="+333142">3142</a> as hostname (or use it aas IP). But then again<br>
0.0.12.70 is not a valid IP address anyway and hence it fails.<br>
<br>
On a first glance I'd say that this is an APT bug because it doesn't<br>
parse the setting properly before using it. Digging a little deeper my<br>
suspicion got confirmed as the issue already has been reported at<br>
<a href="http://bugs.debian.org/623443" target="_blank">http://bugs.debian.org/623443</a> (Cc'ed) and I could reproduce the issue<br>
on Debian Testing with apt 0.9.8.2 as well as on Debian Unstable with<br>
apt 0.9.9:<br>
<div class="im"><br>
  Cannot initiate the connection to <a href="tel:3142" value="+333142">3142</a>:80 (0.0.12.70). - connect (22: Invalid argument)<br>
<br>
</div>I'll update the xen-tools documentation with regards to that and may<br>
even add such a check to xen-create-image so that it fails earlier in<br>
cases like your's. So thanks for the report despite the bug sits<br>
elsewhere than you suspected.<br>
<br>
                Kind regards, Axel<br>
<span class="HOEnZb"><font color="#888888">--<br>
/~\  Plain Text Ribbon Campaign                   | Axel Beckert<br>
\ /  Say No to HTML in E-Mail and News            | <a href="mailto:abe@deuxchevaux.org">abe@deuxchevaux.org</a>  (Mail)<br>
 X   See <a href="http://www.asciiribbon.org/" target="_blank">http://www.asciiribbon.org/</a>              | <a href="mailto:abe@noone.org">abe@noone.org</a> (Mail+Jabber)<br>
/ \  I love long mails: <a href="http://email.is-not-s.ms/" target="_blank">http://email.is-not-s.ms/</a> | <a href="http://noone.org/abe/" target="_blank">http://noone.org/abe/</a> (Web)<br>
_______________________________________________<br>
xen-tools-discuss mailing list<br>
<a href="mailto:xen-tools-discuss@xen-tools.org">xen-tools-discuss@xen-tools.org</a><br>
<a href="https://xen-tools.org/mailman/listinfo/xen-tools-discuss" target="_blank">https://xen-tools.org/mailman/listinfo/xen-tools-discuss</a><br>
</font></span></blockquote></div><br>