LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Virtualization and Cloud (https://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/)
-   -   How can I create a VM with virt-install that will not restart on boot? (https://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/how-can-i-create-a-vm-with-virt-install-that-will-not-restart-on-boot-4175435805/)

PeterSteele 11-05-2012 05:27 PM

How can I create a VM with virt-install that will not restart on boot?
 
I use virt-install to create KVM-based VMs under a CentOS 6.3 system. Everything works fine accept that I want the VMs I create to not automatically start running when I reboot the hypervisor. From what I can tell the virt-install command does not have an option specifically for this, at least that I can tell. I can use virsh after a VM is created and say

virsh autostart <domain-name> --disable

and doing this reports that "Domain <domain-name> unmarked as autostarted", but this doesn't seem to have any impact--the VM autostarts after a hypervisor reboot even after I've done this.

I assume there must be a way to control this autostart setting. What's the trick?


All times are GMT -5. The time now is 01:26 AM.