[GH-ISSUE #298] How to attach (expose/passtrough) phisical disk device from host to guest instance? #194

Closed
opened 2026-02-27 15:57:42 +03:00 by kerem · 4 comments
Owner

Originally created by @lord-kyron on GitHub (Feb 21, 2020).
Original GitHub issue: https://github.com/retspen/webvirtcloud/issues/298

Hi @catborise
how can I attach physical disks from the host to the instance guest from the UI?
I know I can edit the XML, but is there legitimate way to do it from the UI?
Am I right that first I need to expose the disk from the compute host as LVM storage and then attach it to the VM or?
Please, explain!
Thanks!

Originally created by @lord-kyron on GitHub (Feb 21, 2020). Original GitHub issue: https://github.com/retspen/webvirtcloud/issues/298 Hi @catborise how can I attach physical disks from the host to the instance guest from the UI? I know I can edit the XML, but is there legitimate way to do it from the UI? Am I right that first I need to expose the disk from the compute host as LVM storage and then attach it to the VM or? Please, explain! Thanks!
kerem closed this issue 2026-02-27 15:57:42 +03:00
Author
Owner

@catborise commented on GitHub (Feb 21, 2020):

@lord-kyron hi. i want to ask why do you wan to do this?
what is the situation. may be there are other choices...

you can add block or lvm disk to the guest. it is your choice, but redhat suggests lvm disk.

and also there are two choices while adding host devices to guest.

  • normal disk
  • hostdev disk

hostdev not implemented with webvirtcloud but it is planned.
for now two methods require xml editing.

<!-- gh-comment-id:589713150 --> @catborise commented on GitHub (Feb 21, 2020): @lord-kyron hi. i want to ask why do you wan to do this? what is the situation. may be there are other choices... you can add block or lvm disk to the guest. it is your choice, but redhat suggests lvm disk. and also there are two choices while adding host devices to [guest.](https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/virtualization_deployment_and_administration_guide/sect-manipulating_the_domain_xml-devices) * normal disk * hostdev disk hostdev not implemented with webvirtcloud but it is planned. for now two methods require xml editing.
Author
Owner

@lord-kyron commented on GitHub (Feb 21, 2020):

@catborise I want to use ZFS RaidZ inside a VM, so my idea is to attach two disks as block devices directly passtrough from the host and setup zfs on top of them but from the VM they are attached to.
What do you suggest to use? Block or LVM? Previously I used block every time. And I've edited the XML. I just tought that tere is maybe more refined way to do this from the UI.

<!-- gh-comment-id:589761403 --> @lord-kyron commented on GitHub (Feb 21, 2020): @catborise I want to use ZFS RaidZ inside a VM, so my idea is to attach two disks as block devices directly passtrough from the host and setup zfs on top of them but from the VM they are attached to. What do you suggest to use? Block or LVM? Previously I used block every time. And I've edited the XML. I just tought that tere is maybe more refined way to do this from the UI.
Author
Owner

@lord-kyron commented on GitHub (Feb 24, 2020):

@catborise ?

<!-- gh-comment-id:590408675 --> @lord-kyron commented on GitHub (Feb 24, 2020): @catborise ?
Author
Owner

@catborise commented on GitHub (Feb 24, 2020):

it is a complex action, brcause of that we did not implement it. you can use virt-manager for more complex additions. virt-manager supports hostdev and blockdevice additions.

<!-- gh-comment-id:590412345 --> @catborise commented on GitHub (Feb 24, 2020): it is a complex action, brcause of that we did not implement it. you can use virt-manager for more complex additions. virt-manager supports hostdev and blockdevice additions.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/webvirtcloud#194
No description provided.