mirror of
https://github.com/retspen/webvirtcloud.git
synced 2026-04-25 23:45:56 +03:00
[GH-ISSUE #588] Adding logical volume results in "500 Internal Server Error" #344
Labels
No labels
bug
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/webvirtcloud#344
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @silch on GitHub (May 18, 2023).
Original GitHub issue: https://github.com/retspen/webvirtcloud/issues/588
Host OS: Debian 11
Host kernel: 6.2.15-1-liquorix-amd64
Qemu version: 5.2.0
Libvirt version: 7.0.0
My steps:
This returns an "500 Internal Server Error". Same thing happens if the volume is created beforehand in storage pool settings, or even manually with pvcreate/vgcreate/lvcreate.
guest xml:
With debugging enabled it says "Exception at /instances/15/add_new_vol/":
Any ideas what's wrong?
@catborise commented on GitHub (May 18, 2023):
Reason:
"Exception Type: Exception at /instances/15/add_new_vol/
Exception Value: Not implemented disk type"
adding lvm volume to instances is a complicated operation. because of that we have not implement it yet. you should add this type disk to instance with virt-manager for now.
we will try to implement it later.
@silch commented on GitHub (May 18, 2023):
That was fast and helpful, thanks. My host is headless, so virt-manager is not an option. In case someone's wondering, here's how I added the disk in the command line:
virsh attach-disk <vm name> <disk source> <disk target> --cache noneIn my case:
virsh attach-disk files /dev/raid/test vdb --cache none@catborise commented on GitHub (May 18, 2023):
u can connect to your remote host with your local virt-manager installation. there is no need to install on your headless host.
@silch commented on GitHub (May 18, 2023):
That's pretty neat, worked out of the box. Thanks again!