#1  
Old 23rd July 2009, 17:56
satimis satimis is offline
Senior Member
 
Join Date: Oct 2006
Posts: 533
Thanks: 4
Thanked 2 Times in 2 Posts
Default KVM - How to delete VM

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
Reply With Quote
Sponsored Links
  #2  
Old 24th July 2009, 19:32
topdog topdog is offline
Senior Member
 
Join Date: Jan 2008
Location: South Africa
Posts: 1,352
Thanks: 0
Thanked 154 Times in 151 Posts
Default

This is the command to run

Code:
sudo virsh --connect qemu:///system undefine vm10
__________________
----
http://www.topdog.za.net - Got Linux problems ? - I can help.
http://www.baruwa.org - Try it.
Reply With Quote
  #3  
Old 25th July 2009, 10:55
satimis satimis is offline
Senior Member
 
Join Date: Oct 2006
Posts: 533
Thanks: 4
Thanked 2 Times in 2 Posts
Default

Quote:
Originally Posted by topdog View Post
This is the command to run

Code:
sudo virsh --connect qemu:///system undefine vm10
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
Reply With Quote
  #4  
Old 25th July 2009, 12:21
topdog topdog is offline
Senior Member
 
Join Date: Jan 2008
Location: South Africa
Posts: 1,352
Thanks: 0
Thanked 154 Times in 151 Posts
 
Default

yes you have to remove the storage devices manually.
__________________
----
http://www.topdog.za.net - Got Linux problems ? - I can help.
http://www.baruwa.org - Try it.
Reply With Quote
The Following 2 Users Say Thank You to topdog For This Useful Post:
matey (29th July 2009), satimis (25th July 2009)
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot delete domain, Recycle Bin Won't Empty crypted Installation/Configuration 3 30th December 2010 19:26
That EASY to DELETE Domains??? angry Feature Requests 3 17th November 2008 21:55
Domain won't delete, New Domain Won't Add crypted General 3 26th October 2008 01:09
Cannot delete co-domain (recycle bins are empty) SupuS Installation/Configuration 3 16th October 2008 18:48
Problem using remoting for Client delete krakoukas General 2 6th July 2008 17:31


All times are GMT +2. The time now is 12:06.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.