Why on kvm guest there is not file /sys/block/vdX/device/delete? maybe is like that because i can remove the drive from physical host?
I know i can attach and detach virtual disk to kvm guest using virtio driver disk in this following way, without reboot the vm
virsh attach-disk 3 /home/user01/vmdisk/LunMirror.img vde
virsh detach-disk 3 vde
How can i remove the virtual disk from the kvm guest?
Best Answer
To remove a disk from a guest, you issue a detach command on the host. The guest doesn't control which hardware it gets, the admin of the host does.