question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How do you uninstall or remove WALinuxAgent from custom installation

See original GitHub issue

I used sudo python setup.py install --register-service to install WALinuxAgent. how would I remove or uninstall it?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
vrdmrcommented, Feb 21, 2019

The following steps remove the agent from the box.

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

I’ve added them to the FAQs. Let me know if you face any issues.

1reaction
vrdmrcommented, Oct 19, 2019

The VM without agents section is now moved from FAQ to VMs-without-WALinuxAgent.

systemctl stop walinuxagent # Or service walinuxagent stop should stop the WALinuxAgent service and waagent -deprovision -force should remove the daemon’s (The version which comes installed in the box) operation.

And once it is stopped, it is safe to do rm -rf /var/lib/waagent as all the dependencies downloaded in /var/lib/waagent are not needed anymore.

@oviliz Could you please paste the output of service walinuxagent status?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Removing WALinuxAgent from your Azure instance
With the culprit identified, the following steps would allow you to disable and uninstall WALinuxAgent . sudo systemctl stop walinuxagent sudo ...
Read more >
Disable or remove the Linux Agent from VMs and images
Learn how to disable or remove the provisioning agent in Linux VMs and images.
Read more >
How to uninstall or remove walinuxagent software package ...
sudo apt-get remove walinuxagent. Uninstall walinuxagent including dependent package. If you would like to remove walinuxagent and it's dependent packages ...
Read more >
Linux on Microsoft Azure? Disable this built-in root-access ...
Removing the agent/backdoor. The agent is just a package, so using your package manager you can remove it: # dpkg -l | grep...
Read more >
Deploying Red Hat Enterprise Linux 8 on public cloud platforms
Remove swap space. Swap space is configured on the physical blade server in Azure by the WALinuxAgent. On the Installation Summary screen, select...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found