libvirt: can't install OpenSSH using vmbuilder.

Nick Barcet nick.barcet at
Thu Jun 25 09:28:40 UTC 2009

On 06/25/2009 10:07 AM, Jarl Friis wrote:
> I have confirmed that ifconfig actually shows that an IP address is
> assigned at the time is executed. However when I have a
> that contains
> apt-get update >> /var/aptget_update.out 2>> /var/aptget_update.err
> then aptget_update.out contains:
> Err jaunty Release.gpg
>   Could not resolve ''
> Err jaunty-updates Release.gpg
>   Could not resolve ''
> Err jaunty-security Release.gpg
>   Could not resolve ''
> Reading package lists...
> and aptget_update.err contains:
> W: Failed to fetch  Could not resolve ''
> W: Failed to fetch  Could not resolve ''
> W: Failed to fetch  Could not resolve ''
> W: Some index files failed to download, they have been ignored, or old ones used instead.
> W: You may want to run apt-get update to correct these problems
> But If I have a that contains:
> nslookup >> /var/nslookup1.out 2>> /var/nslookup1.err
> apt-get update >> /var/aptget_update.out 2>> /var/aptget_update.err
> No problems are seen in any of the output files.

Ok, looks like your DHCP request is taking a bit more time to be served
than in setups I have used.  I guess starting your script with a wait
loop such as:

   while (! ping -c 1; do sleep 1; done

will make sure DHCP has finished its job before going any further.

> I do have a workaround (introducing a sleep 1 in start of,
> but I would like an explanation and solution. My biggest concern
> however is that following the official documentation:
> does not work out of the box.

Well, it clearly does not in your case. Once you have verified that the
above solution does work, if you can let us know or update the wiki page
[1] which serves as a source for the documentation, it will definitely help.

> For now I have create a bug:

The wait loop could indeed be put in the calling script that vmbuilder
installs...  Let's discuss that in your bug.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 835 bytes
Desc: OpenPGP digital signature
URL: <>

More information about the ubuntu-server mailing list