Saturday, July 5, 2014

Unable to resolve host address 'cdn.download.cirros-cloud.net' while installing OpenStack on Virtual Box

If you are installing OpenStack on a machine, running on Virtual Box, which is connected to a private network (lets say, to company wifi), you might get the following error.

Resolving cdn.download.cirros-cloud.net (cdn.download.cirros-cloud.net)... failed: Name or service not known.
wget: unable to resolve host address 'cdn.download.cirros-cloud.net'
+ exit_trap
+ local r=4
++ jobs -p
+ jobs=
+ [[ -n '' ]]
+ kill_spinner
+ '[' '!' -z '' ']'
+ [[ 4 -ne 0 ]]
+ echo 'Error on exit'
Error on exit
+ ./tools/worlddump.py -d
usage: worlddump.py [-h] [-d DIR]
worlddump.py: error: argument -d/--dir: expected one argument

It is trying to download Cirros OS image. As you can see in the error message, reason might be either the server is down or you are not allowed to access the server.

I tried to install OpenStack on a virtual machine running on virtual box using my company wifi. Installation failed several times with above message. PING is also not working.

Solution - 1

Edit stackrc file and give a download url that can be reached.

 

Solution -2 

Simple solution would be to use your dongle to install it. All the modules are downloaded already. Do not worry about data :)

1 comment:

  1. OR... SOLUTION 3:
    Add following to your /etc/hosts file:
    124.124.201.153 cdn.download.cirros-cloud.net

    ReplyDelete