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. EA 16 Reputation points
    2022-06-08T11:07:54.437+00:00

    Yes @Jackson Martins , it will be the way.

    Tks for the help and informations !!


  2. EA 16 Reputation points
    2022-06-08T19:12:09.333+00:00

    @Jackson Martins one last doubt, is it possible the problem to be in the ASR application ?

    I say this, because in the moment of the return (failback) the application ASR shoulded uninstall the service walinuxagent or not ?


  3. Jackson Martins 10,621 Reputation points MVP Volunteer Moderator
    2022-06-09T12:49:54.173+00:00

    Hi @EA

    I did the test in a similar environment, I disabled the service:

    systemctl list-unit-files | grep agent
    walinuxagent.service enabled

    systemctl stop walinuxagent
    systemctl disable walinuxagent

    after that i blocked it in the firewall/proxy access to url:

    https://github.com/Azure/WALinuxAgent/

    and then after restarting walinux it stopped - I recommend stopping here and leaving the agent stopped.
    If you don`t have a proxy, you can put github on resolv.conf to resolve 127.0.0.1.

    So, I removed all the packet

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

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


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.