Azure Site Recovery - after failback, linux vm returns with walinuxagent giving error

EA 16 Reputation points
2022-05-31T20:18:51.817+00:00

Hello.

I'm running some tests with ASR integrated with vmware environment.
My configuration server and process server are at 5.1.7295.0 version and the agent installed in my vm ubuntu 16.04 - Kernel-4.4.0-210 is the Microsoft-ASR_UA_9.48.0.0_UBUNTU-16.04-64_GA_10Apr2022_Release.tar.gz

We are performing tests on OLR (Original Location Recovery) mode and when we re-protect our linux vm that is running on azure, the vm returns with the service walinuxagent installed, although, everthing is alright, I know this service is installed by azure to run many programs in its environment.

But, when the vm return for our environment on-prem it keeps generating errors on the screen, because we don't use dhcp and other things.

I'm trying to uninstall this program walinuxagent using this commands below, that I found on the web:

  • systemctl stop walinuxagent # Or service walinuxagent stop
  • waagent -deprovision -force
  • rm -rf /var/lib/waagent
  • reboot

But whenever I restart the vm, it's back with the program UP and Running again.

See the images:

207214-screenshot-from-2022-05-31-15-20-03.png
207080-screenshot-from-2022-05-31-15-20-22.png

207215-screenshot-from-2022-05-31-17-08-18.png

207235-screenshot-from-2022-05-31-17-11-56.png

Anyone have this problem also ?

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

8 answers

Sort by: Most helpful
  1. Jackson Martins 10,621 Reputation points MVP Volunteer Moderator
    2022-06-03T14:12:49.063+00:00

    Hi @EA
    There is a issue on GH closed for Ubuntu 18.05 and a bug reported.

    You can install manually the latest version on https://github.com/Azure/WALinuxAgent

    The bug reported question is
    https://github.com/Azure/WALinuxAgent/issues/1671

    Get in touch if you need more help with this issue.

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

    0 comments No comments

  2. EA 16 Reputation points
    2022-06-03T20:13:53.78+00:00

    Hello @Jackson Martins

    I took a look in the documentation you are sended of GH and I achieved install with archive .deb (https://launchpad.net/ubuntu/+archive/primary/+files/walinuxagent_2.2.45-0ubuntu1~16.04.1_amd64.deb) I downloaded the version corresponding of mine ubuntu 16.04

    After reboot, I tried uninstall the service walinuxagent, where I was successful, but after the new reboot of the vm the service returned UP and Running, see the images below:
    208316-screenshot-from-2022-06-03-17-05-31.png
    208324-screenshot-from-2022-06-03-16-48-00.png
    208325-screenshot-from-2022-06-03-16-48-18.png
    208362-screenshot-from-2022-06-03-16-44-41.png

    What i want to do is uninstall this service (walinuxagent) of my vm !!


  3. EA 16 Reputation points
    2022-06-06T12:35:20.897+00:00

    @Jackson Martins I'm protecting this linux vm with ASR, I installed the agent and realized the protection with Azure Vault.

    In the sequence I realized a Failover where the linux vm stayed running in the environment azure.

    Reprotected the linux vm again in my environment on-prem.

    I realized the Failback, linux vm running again in my environment on-prem, at this moment the vm returns with this service installed walinuxagent installed by Azure.
    I'm at this point where I want to remove this service walinuxagent, because this stays generating errors of DHCP between others (The Microsoft Azure Linux Agent (waagent) manages Linux & FreeBSD provisioning, and VM interaction with the Azure Fabric Controller.).

    I verified the official documentation in the microsoft (https://learn.microsoft.com/en-us/azure/virtual-machines/extensions/agent-linux) and in the GH (https://github.com/Azure/WALinuxAgent), but i can't remove this service because why every time i try to remove it, when reboot the vm the service returns Up and Running.

    Estou protegendo essa vm linux via asr, instalei o agent e fiz a proteção na azure.

    Na sequencia realizei um failover, aonde a vm linux ficou rodando no ambiente azure.

    Reprotegi a vm linux novamente no meu ambiente on-prem.

    Realizei o failback, vm linux rodando novamente no meu ambiente on-prem, nesse momento a vm retorna com o serviço walinuxagent instalado pela Azure, estou nesse ponto aonde quero remover esse serviço walinuxagent, pois ele fica gerando erros de dhcp entre outros, (The Microsoft Azure Linux Agent (waagent) manages Linux & FreeBSD provisioning, and VM interaction with the Azure Fabric Controller.).

    já verifiquei a documentação oficial da microsoft (https://learn.microsoft.com/en-us/azure/virtual-machines/extensions/agent-linux) e já tentei ver no GH (https://github.com/Azure/WALinuxAgent) mais não consigo remover esse serviço, pois toda vez que tento remove-lo, ao dar um reboot na vm o serviço volta ativo e rodando.


  4. EA 16 Reputation points
    2022-06-06T18:43:16.37+00:00

    @Jackson Martins that's exactly what I did following the official documentation, but it did not work out, whenever restarted the vm the service walinuxagent returns up and running.
    I have no idea, it's very crazy, looks like the vm is in "freeze state".


  5. EA 16 Reputation points
    2022-06-07T20:32:46.303+00:00

    Doesn't work @Jackson Martins . I don't have more idea.

    The only way it's, after vm boot, login in the cli and stop the service with the command: systemctl stop walinuxagent


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.