How to persistently connect the disk to the VM
Issue
How to connect the fiber channel (multhipath) disk to the VM?
During runtime attaching the disk works with the following command:
virsh# attach-disk <domain> /path/to/disk/ vdX
The guest sees the storage as /dev/vdX but if I reboot the host, the configuration is lost and the storage did not remain attached to the guest.
When trying to add the command attach-disk parameter --persistent, I get an error:
On the server host:
virsh # attach-disk <domain> /path/to/disk/ vdX --persistent
error: Failed to attach disk
error:
Requested operation is not valid: cannot modify the persistent configuration of a domain
Environment
- Red Hat Enterprise Linux 5
- KVM
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.