Can I restore an instance with a ssh key thanks to freezer-agent ?

asked 2017-07-27 10:03:17 -0600

mikael1006 gravatar image

Hello,

I'm a user of OVH Public Cloud which is based on OpenStack. I wanted to backup my instance into a swift container so I have installed Freezer-agent (ocata).

I have backed up an instance with the command below.

freezer-agent --action backup --nova-inst-id xxxxxxxxxx

Now I can restore it with this command :

freezer-agent --action restore --nova-inst-id xxxxxxxxxx

It works well but I did not find how to add a ssh key to the new instance. With the nova command it's something like that "nova boot --key_name SSHKEY".

I tried to add the "--ssh-key SSH_KEY" option but it didn't work.

edit retag flag offensive close merge delete

Comments

hopefully, your ssh key which was working on backed up instance will still work on restored instance. are you asking about how to add a new ssh key to the instance?

TijoV gravatar imageTijoV ( 2017-07-28 03:52:40 -0600 )edit