[Openstack] some newbie questions

Rafael Durán Castañeda rafadurancastaneda at gmail.com
Wed Aug 3 23:42:57 UTC 2011


Sending back to Openstack list since other people might help you better 
than me, anyway:

Can you post result from:

$ virsh net-dumpxml default

I'm not sure about this, but It seems host is trying wrong bridge when 
connecting your vms, I had similar problem installing from source, since 
I was trying old instructions and openstack networks default had 
changed. Script you are using might be not updated too.
> Andi and Rafael,
>
> Thanks a lot for your replies!
>
> Here is my /etc/network/interfaces :
>
> auto lo
> iface lo inet loopback
> auto eth0
> iface eth0 inet static
>   address 172.241.0.101
>   network 172.241.0.0
>   netmask 255.255.255.128
>
> Here are all the relevant commands from `history`:
>
>    14  sudo apt-get -y install openssh-server
>    15  cd /etc/network/
>    18  sudo apt-get install emacs
>    21  sudo cp interfaces interfaces.bak
>    22  sudo emacs interfaces
>    23  sudo apt-get update
>    24  sudo apt-get upgrade
>    31  sudo init 0
>    72  wget --no-check-certificate 
> https://github.com/uksysadmin/OpenStackInstaller/raw/master/OSinstall.sh
>    74  cd ..
>    76  mkdir openstack
>    77  mv shared/OSinstall.sh openstack/
>    78  cd openstack/
>    81  sudo bash ./OSinstall.sh -A $(whoami)
>    85  sudo nova-manage user admin aron
>    88  sudo nova-manage project create myproject aron
>    90  sudo nova-manage project zipfile myproject aron
>    91  mkdir -p cloud/creds
>    93  cd ..
>    95  cd ..
>    98  cd cloud/
>   100  cd creds
>   102  unzip /home/aron/openstack/nova.zip
>   107  . novarc
>   110  cd
>   111  cd openstack/
>   113  euca-add-keypair openstack > ~/cloud/creds/openstack.pem
>   114  euca-add-keypair openstack > cloud/creds/openstack.pem
>   115  chmod 0600 cloud/creds/*
>   117  cd cloud/
>   119  cd creds/
>   122  euca-authorize default -P tcp -p 22 -s 0.0.0.0/0 <http://0.0.0.0/0>
>   123  euca-authorize default -P tcp -p 80 -s 0.0.0.0/0 <http://0.0.0.0/0>
>   124  euca-authorize default -P tcp -p 8080 -s 0.0.0.0/0 
> <http://0.0.0.0/0>
>   125  euca-authorize default -P icmp -t -1:-1
>   126  image="ttylinux-uec-amd64-12.1_2.6.35-22_1.tar.gz"
>   127  wget http://smoser.brickies.net/ubuntu/ttylinux-uec/$image
>   128  uec-publish-tarball $image mybucket
>   129  emi="ami-0a892947"; eri="ari-2e76fb01"; eki="aki-78fdf924";
>   130  euca-run-instances $emi -k openstack -t m1.tiny
>   131  euca-describe-instances
>   132  sudo nova-manage floating create cloud1 172.241.0.0/25 
> <http://172.241.0.0/25>
>   133  euca-allocate-address
>   134  euca-allocate-address
>   136  euca-associate-address -i i-00000001 172.141.0.1
>   140  ssh -i openstack.pem root at 10.0.0.3 <mailto:root at 10.0.0.3>
>
>
>
>
>
>     On 03/08/11 13:33, Aron Matskin wrote:
>>     Hi all!
>>
>>     Just joined the mailing list. I'd like to do some development on
>>     the project (probably Nova).  Some questions regarding how to start:
>>
>>     Q1. I'm trying to setup Nova in a virtual environment -
>>     http://uksysadmin.wordpress.com/2011/02/17/running-openstack-under-virtualbox-a-complete-guide/ -
>>     on a Windows host. I've successfully started an instance and
>>     assigned it a network address:
>>
>>     aron at cloud1:~/openstack/cloud/creds$ euca-describe-instances
>>     RESERVATIONr-k6e14a5wmyprojectdefault
>>     INSTANCEi-00000001ami-0a892947172.241.0.110.0.0.3runningopenstack
>>     (myproject, cloud1)0m1.tiny2011-08-02T20:28:46Znova
>>
>>     but I'm unable to connect to the address (neither from the guest
>>     nor from the host):
>>
>>     From the guest:
>>
>>     aron at cloud1:~/openstack/cloud/creds$ ping 172.241.0.1
>>     PING 172.241.0.1 (172.241.0.1) 56(84) bytes of data.
>>     From 172.241.0.1 icmp_seq=2 Destination Host Unreachable
>>
>>     aron at cloud1:~/openstack/cloud/creds$ ping 10.0.0.3
>>     PING 10.0.0.3 (10.0.0.3) 56(84) bytes of data.
>>     From 10.0.0.1 icmp_seq=1 Destination Host Unreachable
>>
>>     From the host:
>>
>>     C:\>ping 172.241.0.1
>>
>>     Pinging 172.241.0.1 with 32 bytes of data:
>>     Reply from 172.241.0.1 <http://172.241.0.1>: Destination host
>>     unreachable.
>>
>>     Pinging the guest from the host and vice versa is ok, e.g.:
>>
>>     C:\>ping 172.241.0.101
>>
>>     Pinging 172.241.0.101 with 32 bytes of data:
>>     Reply from 172.241.0.101 <http://172.241.0.101>: bytes=32
>>     time=1ms TTL=64
>>
>>     What may be wrong?
>>
>>     Q2. When I do succeed to setup the environment, can anybody to
>>     point me to documentation on how to write simple code for
>>     OpenStack? Something along the lines of "Hello, world!",
>>     but using some features peculiar to cloud applications.
>>
>>     Q3. I have no technical knowledge about the cloud at all. Can
>>     anybody suggest a learning path so that I quickly can gain the
>>     basic necessary general and specific knowledge to start coding
>>     (i.e. first read the code and know what's flying, then fix some
>>     bugs, etc.)?
>>
>>     Thanks in advance, -Aron
>>
>>
>>
>>
>>
>>     _______________________________________________
>>     Mailing list:https://launchpad.net/~openstack  <https://launchpad.net/%7Eopenstack>
>>     Post to : openstack at lists.launchpad.net
>>     <mailto:openstack at lists.launchpad.net> Unsubscribe :
>>     https://launchpad.net/~openstack
>>     <https://launchpad.net/%7Eopenstack> More help :
>>     https://help.launchpad.net/ListHelp
>
>
>     _______________________________________________
>     Mailing list: https://launchpad.net/~openstack
>     <https://launchpad.net/%7Eopenstack>
>     Post to     : openstack at lists.launchpad.net
>     <mailto:openstack at lists.launchpad.net>
>     Unsubscribe : https://launchpad.net/~openstack
>     <https://launchpad.net/%7Eopenstack>
>     More help   : https://help.launchpad.net/ListHelp
>
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20110804/44f46a07/attachment.html>


More information about the Openstack mailing list