Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Ubuntu image in openstack

I have an ubuntu image that i wish to upload to glance. i downloaded the image and uploaded it.

openstack image create --disk-format qcow2 --container-format bare --public --file ./xenial-server-cloudimg-amd64-disk1.img

The details for the image is as below: sanjana@sanjana-ProLiant-DL120-G7:~$ openstack image show ubuntu +------------------+------------------------------------------------------+ | Field | Value | +------------------+------------------------------------------------------+ | checksum | f803093406007766e86f4e9185cd652b | | container_format | bare | | created_at | 2017-05-09T10:12:10Z | | disk_format | qcow2 | | file | /v2/images/119e4fc1-75e2-46e3-8251-9ce3f19ab908/file | | id | 119e4fc1-75e2-46e3-8251-9ce3f19ab908 | | min_disk | 0 | | min_ram | 0 | | name | ubuntu | | owner | 07b11f80bfb24a7e9993e93b634c298c | | protected | False | | schema | /v2/schemas/image | | size | 287047680 | | status | active | | tags | | | updated_at | 2017-05-09T10:12:11Z | | virtual_size | None | | visibility | public | +------------------+------------------------------------------------------+

I launched an instance using this image through horizon.However when i log into console it prompts for both user and password. What is the default value? i read a few posts that asked me to associate key with it. When i try to import public key in horizon it gives me cannot import key error.

Ubuntu image in openstack

I have an ubuntu image that i wish to upload to glance. i downloaded the image and uploaded it.

openstack image create --disk-format qcow2 --container-format bare --public --file ./xenial-server-cloudimg-amd64-disk1.img

The details for the image is as below: sanjana@sanjana-ProLiant-DL120-G7:~$ openstack image show ubuntu +------------------+------------------------------------------------------+ | Field | Value | +------------------+------------------------------------------------------+ | checksum | f803093406007766e86f4e9185cd652b | | container_format | bare | | created_at | 2017-05-09T10:12:10Z | | disk_format | qcow2 | | file | /v2/images/119e4fc1-75e2-46e3-8251-9ce3f19ab908/file | | id | 119e4fc1-75e2-46e3-8251-9ce3f19ab908 | | min_disk | 0 | | min_ram | 0 | | name | ubuntu | | owner | 07b11f80bfb24a7e9993e93b634c298c | | protected | False | | schema | /v2/schemas/image | | size | 287047680 | | status | active | | tags | | | updated_at | 2017-05-09T10:12:11Z | | virtual_size | None | | visibility | public | +------------------+------------------------------------------------------+

I launched an instance using this image through horizon.However when i log into console it prompts for both user and password. What is the default value? i read a few posts that asked me to associate key with it. When i try I have tried to import public key in horizon it and use it, also tried to use .pem file to ssh into the vm from out but both give me the same issue. It prompts for login and password. ssh -i xxx.pem ubuntu@10.x.x.x gives me cannot import key error.connection refused error