How to install software on Linux VM in Cloud Shell

Anonymous
2022-11-06T13:02:50.927+00:00

I am trying to install perf on a CentOS VM.

When I try to install using yum install perf I get an error saying Error(1601) : Operation not permitted. You have to be root.
When I SSH into the VM using PuTTY and the admin account I have set on the VM that works but then the installed software is not "visible" to me using the Cloud Shell.

I have set a password for my Cloud Shell user using the "reset password" functionality on the VM but when I try to sudo in the Clould Shell, that password is not accepted.

Any suggestions how to handle this situation?

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,409 questions
0 comments No comments
{count} votes

Accepted answer
  1. Manu Philip 17,031 Reputation points MVP
    2022-11-06T15:14:34.893+00:00

    The behavior is expected when you open the ssh session in Cloud Shell
    The machine that provides your Cloud Shell session is temporary, and it is recycled after your session is inactive for 20 minutes. Permissions are set as regular users without sudo access. Any installation outside your $Home directory is not persisted.
    For more reading: Cloud Shell Limitations

    ----------

    --please don't forget to upvote and Accept as answer if the reply is helpful--

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful