openstack team mailing list archive
-
openstack team
-
Mailing list archive
-
Message #17018
Re: openstack -- xcp - devstack
Hello,
Thanks a lot for you answer.
The problem has been fixed. I had to set the HOST_IP_IFACE flag to "eth3"
instead of "eth0" in the localrc file. DomU is now created and running.
Actually, the script finishes its execution while showing this message:
-------------------------------------------------------------------------------------------------------------------------------------
+ echo
'################################################################################'
################################################################################
+ echo ''
+ echo 'All Finished!'
All Finished!
+ echo 'Now, you can monitor the progress of the stack.sh installation by '
Now, you can monitor the progress of the stack.sh installation by
+ echo 'tailing /opt/stack/run.sh.log from within your domU.'
tailing /opt/stack/run.sh.log from within your domU.
+ echo ''
+ echo 'ssh into your domU now: '\''ssh stack@192.168.1.55'\'' using your
password'
ssh into your domU now: 'ssh stack@ip' using your password
+ echo 'and then do: '\''tail -f /opt/stack/run.sh.log'\'''
and then do: 'tail -f /opt/stack/run.sh.log'
+ echo ''
+ echo 'When the script completes, you can then visit the OpenStack
Dashboard'
When the script completes, you can then visit the OpenStack Dashboard
+ echo 'at http://ip, and contact other services at the usual ports.'
at http://ip, and contact other services at the usual ports.
----------------------------------------------------------------------------------------------------------------------------------------------------------
Unfortunately, I was unable to ssh the new domU. It shows this error
"*ssh_exchange_identification:
Connection closed by remote host*" . So, I tried to log into DomU via "xe
console", then I noticed that the created domU does not have an internet
connection. That's why (i think) the script run.sh was not successful.
How can I solve this problem?
Thank you,
Afef
2012/9/28 John Garbutt <John.Garbutt@xxxxxxxxxx>
> Not sure that is your XCP version, but I don’t think that is important.***
> *
>
> ** **
>
> localrc is all you need to change.****
>
> ** **
>
> This is the code you are having trouble with:****
>
>
> https://github.com/openstack-dev/devstack/blob/master/tools/xen/install_os_domU.sh#L246
> ****
>
> ** **
>
> The easiest way to work around this is to get this file:****
>
>
> https://github.com/openstack-dev/devstack/blob/master/tools/xen/devstackubuntupreseed.cfg
> ****
>
> Put the above on a webserver, and set the following flag, to something
> like:****
>
> PRESEED_URL=192.168.0.1/devstackubuntupreseed.cfg****
>
> ** **
>
> You need to ensure that PRESEED_URL is accessible to the VM on the
> interface specified by HOST_IP_IFACE.****
>
> ** **
>
> Often that would be the management network, so the devstack scripts, by
> default, upload the preseed file to the built-in webserver on your XCP
> server. ****
>
> ** **
>
> I hope that helps,****
>
> John****
>
> ** **
>
> *From:* Afef MDHAFFAR [mailto:afef.mdhaffar@xxxxxxxxx]
> *Sent:* Friday, September 28, 2012 8:05 AM
> *To:* John Garbutt
>
> *Subject:* Re: [Openstack] openstack -- xcp - devstack****
>
> ** **
>
> Hi,****
>
> ** **
>
> Yes, you are right!****
>
> When I tried to connect to the created domU via "xe console", I found that
> the installation of this domU is hanging in "the network configuration
> step". It seems that it was unable to configure the network. I tried to
> give a static ip address, but I hangs in downloading
> "devstackubuntupreseed.cfg" from Dom0.****
>
> I use XCP 4.13. I have configured only the localrc file. Do I have to
> configure other files?****
>
> ** **
>
> Thank yoy,****
>
> Afef****
>
> 2012/9/27 John Garbutt <John.Garbutt@xxxxxxxxxx>****
>
> Hi,****
>
> ****
>
> I suspect the problem is that your VM was unable to access the internet on
> the VM’s interface specified by: HOST_IP_IFACE****
>
> ****
>
> You can see how the Ubuntu install parameters are specified here:****
>
>
> https://github.com/openstack-dev/devstack/blob/master/tools/xen/scripts/install_ubuntu_template.sh#L53
> ****
>
> ****
>
> What version of XCP are you running? Are you using any tools to connect to
> the console of the VM?****
>
> ****
>
> I hope that helps,****
>
> John****
>
> ****
>
> *From:* openstack-bounces+john.garbutt=citrix.com@xxxxxxxxxxxxxxxxxxx[mailto:
> openstack-bounces+john.garbutt=citrix.com@xxxxxxxxxxxxxxxxxxx] *On Behalf
> Of *Afef MDHAFFAR
> *Sent:* Wednesday, September 26, 2012 9:39 AM
> *To:* openstack@xxxxxxxxxxxxxxxxxxx
> *Subject:* Re: [Openstack] openstack -- xcp - devstack****
>
> ****
>
> Actually, when I deeply looked on the problem, I found that there is no
> partition in the device that could be mapped by the kpartx command.****
>
> ****
>
> Any ideas how to solve it?****
>
> ****
>
> Thank you,****
>
> Afef****
>
> 2012/9/26 Afef MDHAFFAR <afef.mdhaffar@xxxxxxxxx>****
>
> Hi all,****
>
> ****
>
> I am trying to install openstack via devstack.****
>
> I use Ubuntu Server 12.04 and XCP.****
>
> I mainly followed this link :
> https://github.com/openstack-dev/devstack/blob/master/tools/xen/README.md.
> ****
>
> The execution of the script hangs in this state: ****
>
> ****************************
>
> + echo 'Waiting for DevStackOSDomU to finish installation...'****
>
> Waiting for DevStackOSDomU to finish installation...****
>
> + sleep 20****
>
> + true****
>
> ++ xe_min vm-list name-label=DevStackOSDomU power-state=halted****
>
> ++ local cmd=vm-list****
>
> ++ shift****
>
> ++ xe vm-list --minimal name-label=DevStackOSDomU power-state=halted****
>
> + state=****
>
> + '[' -n '' ']' ****
>
> ***************************
>
> I thought that installing DomU from the scratch could take time, and I
> waited more 1H and 30 min. Unfortunately, nothing happened.****
>
> ****
>
> Then, I tried to shutdown the machine manually via :* xe vm-shutdown
> name-label=DevStackOSDomU force=true.* The script continues working, but
> it then exits while showing a mapping error : *Failed to find mapping*****
>
> ****
>
> Would you please help to fix this problem?****
>
> ****
>
> Thank you****
>
> ****
>
> Best regards,****
>
> Afef****
>
>
>
> ****
>
> ****
>
> --
> Afef MDHAFFAR
> http://www.redcad.org/members/mdhaffar/
>
> ****
>
>
>
> ****
>
> ** **
>
> --
> Afef MDHAFFAR
> http://www.redcad.org/members/mdhaffar/
>
>
> ****
>
--
Afef MDHAFFAR
http://www.redcad.org/members/mdhaffar/
Follow ups
References