Linux KVM: Delete virtual machine client
Posted: Mon Mar 23, 2015 9:48 am
HowTo remove a VM-client from a libvirt KVM host, using "virsh"
1) Start the "virsh" shell:
As root (or using "sudo"), run the following command on the KVM host:
2) Shutdown the client:
You can get a list of all clients on that KVM host:
It'll return something like this:
Use the "Name" to address the VM-client and shut it down:
If successful, "list --all" will show the machine as "shut off":
3) Undefine the client's domain:
That's it.
Links:
1) Start the "virsh" shell:
As root (or using "sudo"), run the following command on the KVM host:
Code: Select all
$ virsh
You can get a list of all clients on that KVM host:
Code: Select all
list --all
Code: Select all
Id Name State
----------------------------------------------------
2 my-kvmclient running
Code: Select all
shutdown my-kvmclient
Code: Select all
Id Name State
----------------------------------------------------
- my-kvmclient shut off
3) Undefine the client's domain:
Code: Select all
undefine my-kvmclient
That's it.
Links: