Disabling 'autorestart' via CLI?

Solved3 replies
cristian.x.ruvalcaba
5 posts

One of my antsles is having issues and has been having issues for a while... I have about 20 machines running on it and am about to tie it down to the bare minimum (maybe about 5 or 6) but I believe the amount of machines running are causing the issues and I am unable to disable the auto-restart feature via the GUI because it becomes unresponsive.

virsh list --all DOES NOT list all of the virtual machines, only a total of 4, only two of which are active.

I'm looking for a way to disable the auto-restart feature on all of my machines so that I can validate if it's an underlying OS/Console issue or if it's tied to the amount of machines running. I can't seem to find the XML files associated with each  antlet I'm running, my guess is that this is where that feature is located.

lancemAnswerPicked by the antsle Team
210 postsedited

That virsh command will list all the KVM antlets.

This one will list the LXCs:

virsh -c lxc:/// list --all

To set an antlet to autostart:

For KVMs:

virsh autostart {antletname)

For LXCs:

virsh -c lxc:/// autostart {antletname}

And to disable autostart:

virsh autostart {antletname} --disable

or

virsh -c lxc:/// autostart {antletname} --disable

I've made an alias on my antsle:

alias vc='virsh -c lxc:///'

so I can just type things like:

virsh edit {kvmantlet}

or

vc edit {lxcantlet}

Former member

@cristian-x-ruvalcaba, how did that work?

cristian.x.ruvalcaba
5 posts

Thanks for the guidance on this! It worked well... now to undefine them and then flush my DHCP to get my network working again. Thanks again!

Log in to reply. New here? It takes a minute.