我从CentOS和Ubuntu官方下载了qcow2的镜像,大家应该知道,这些镜像并不会告知密码。所以在Openstack使用访问&安全--密钥对,下载了密钥对后使用ssh -i的方式登录。 ssh -i soshare.pem root@192.168.131.217 登录虚拟机,还会提示输入密码。创建虚拟机时候选择了soshare这个密钥对。
现在存在问题是,虚拟机启动慢,貌似在等待什么。然后就是所有的官方镜像都无法通过ssh 注入方式,然后终端无密码登录。
在Dashboard中日志如下
[ 256.794792] cloud-init[747]: 2016-04-01 07:37:02,953 - url_helper.py[WARNING]: Calling 'http://192.168.134.200/latest/meta-data/instance-id' failed [119/120s]: request error [('Connection aborted.', BlockingIOError(115, 'Operation now in progress'))]
[ 67.751296] cloud-init[745]: 2016-04-01 08:07:19,022 - url_helper.py[WARNING]: Calling 'http://169.254.169.254/2009-04-04/meta-data/instance-id' failed [51/120s]: request error [HTTPConnectionPool(host='169.254.169.254', port=80): Max retries exceeded with url: /2009-04-04/meta-data/instance-id (Caused by ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0x7fe99c7e7940>, 'Connection to 169.254.169.254 timed out. (connect timeout=50.0)'))]
[ 263.196095] cloud-init[745]: 2016-04-01 08:10:34,474 - DataSourceCloudStack.py[CRITICAL]: Giving up on waiting for the metadata from ['http://192.168.134.200/latest/meta-data/instance-id'] after 126 seconds
[ 271.405827] cloud-init[789]: 2016-04-01 09:27:11,630 - url_helper.py[WARNING]: Calling 'http://192.168.134.200//latest/meta-data/instance-id' failed [87/120s]: unexpected error ['NoneType' object has no attribute 'status_code']
[ 298.998119] cloud-init[2088]: ci-info: no authorized ssh keys fingerprints found for user centos.
操作方面我对比了下论坛老帖子,感觉操作上面应该没有问题。毕竟K版我就是这么用的。妥妥的无密码登录,这回不知道怎么了。http://www.aboutyun.com/thread-6499-1-1.html
还麻烦高手帮忙看下。
|
|