Score:0

How do you log in to an OpenStack VM during rescue operation?

sa flag

I have a CentOS 8 VM with a corrupt filesystem and I want to recover data by rescuing it. I ran openstack server rescue --password somestring myserver. However, when I tried to log in to the VM by providing the somestring password, I can't log in (it says login incorrect). The username I used was centos.

I also tried running the rescue using an Ubuntu image by doing openstack server rescue --image UbuntuImage --password somestring myserver, and I can't log in through that either with username ubuntu and password somestring. How do I log in to the VM during the rescue process?

us flag
I have never had to use the `--password` option. If I execute `openstack server rescue --image <IMAGE>` I have a root environment where I don't need a login. Have you tried it without specifying a password?
Score:0
us flag

The safest option is to use a special rescue image like SystemRescueCd[1] or Finnix[2] which does not prompt for password, I believe you can also use Ubuntu Server or CentOS install ISO since it can act as a rescue livemedia.

It could be that the images you are using are locked down and can only be accessible via ssh-keys, during the rescue mode the original disk will be attached a 2nd disk, and new image is started instead of the old disk, so you should try to ssh to it via the key.

[1] https://www.system-rescue.org/ [2] https://www.finnix.org/

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.