KVM - How to delete VM

Discussion in 'Server Operation' started by satimis, Jul 23, 2009.

  1. satimis

    satimis New Member

    Hi folks,

    Debian 5.0
    KVM

    How to remove/delete VM (client) on command line instead of on Virt-manager.

    Ex.
    $ sudo virsh --connect qemu:///system

    virsh # list --all
    Code:
     Id Name                 State
    ----------------------------------
      - vm10                 shut off
      - vm11                 shut off
      - vm13                 shut off
    
    I expect to remove vm10 and vm11. The later was cloned on the former.

    Furthermore;

    $ apt-cache policy uml-utilities
    Code:
    uml-utilities:
      Installed: (none)
      Candidate: 20070815-1.1
      Version table:
         20070815-1.1 0
            500 http://ftp.hk.debian.org lenny/main Packages
    
    Do I need uml-utilities ? What will be its use?

    TIA


    B.R.
    satimis
     
  2. topdog

    topdog New Member HowtoForge Supporter

    This is the command to run

    Code:
    sudo virsh --connect qemu:///system undefine vm10
     
  3. satimis

    satimis New Member

    Hi,

    Thanks for your advice.

    After running above command vm10 disappears on;
    Code:
    virsh # list --all
    
    However its image is still on ~/vm10.qcow2

    Whether I have to remove it manually? Thanks

    B.R.
    satimis
     
  4. topdog

    topdog New Member HowtoForge Supporter

    yes you have to remove the storage devices manually.
     

Share This Page