How to detach disk from KVM virtual machine with virsh

Previously we have familiar to attach disk image to KVM virtual machine in the post "".

Here its explaining the command to detach disk from KVM virtual machine with virsh.

To achieve this we can use the following command.

#virsh detach-disk /dev/vdb --persistent (or --config)

Note to replace "" and "/dev/vdb" with appropriate values.


Leave a Reply

Your email address will not be published. Required fields are marked *