Re: Deleting a KVM virtual machine from the command line

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Monday, July 11, 2011 04:50:47 PM Sean Carolan wrote:
> I am working on a sandbox machine that will allow users to play around
> with building virtual machines, then blow them all away each night
> with a cron job.  I wrote a small script that uses the virsh command
> to destroy the VMs, then remove the storage.  For some reason the vm
> name still shows up in the virt-manager GUI.  Anyone have an idea how
> you delete it from there as well, without using the GUI?
> 
> thanks
> 
> Sean
> _______________________________________________
> CentOS mailing list
> CentOS@xxxxxxxxxx
> http://lists.centos.org/mailman/listinfo/centos
Hi Sean

Did you try:

virsh undefine  domain-id

where domain-id is your vm name

earl
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos


[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux