all lists on lists.proxmox.com
 help / color / mirror / Atom feed
* [pve-devel] Migration of VM/Container on custom storage type
@ 2025-04-15  9:55 Max Schettler via pve-devel
  2025-04-16  8:46 ` Fabian Grünbichler
  0 siblings, 1 reply; 2+ messages in thread
From: Max Schettler via pve-devel @ 2025-04-15  9:55 UTC (permalink / raw)
  To: Proxmox VE development discussion; +Cc: Max Schettler

[-- Attachment #1: Type: message/rfc822, Size: 6088 bytes --]

From: Max Schettler <max@simplyblock.io>
To: Proxmox VE development discussion <pve-devel@lists.proxmox.com>
Subject: Migration of VM/Container on custom storage type
Date: Tue, 15 Apr 2025 11:55:28 +0200
Message-ID: <48b4f31c-c8dd-44bf-9dc3-3dd478b3bb08@simplyblock.io>

Hi,

I'm developing a Proxmox storage plugin. Trying to use the 
high-availability features or migrating VMs/Containers to another 
hypervisor in the cluster I get error messages about the storage type 
I'm providing not being supported.

Looking at the source, it seems like there is a whitelist of 
storagetypes, and no feature check like e.g. for snapshotting. Am I 
right to assume there is currently no way of providing a storage backend 
that can use this functionality? Are there details beyond this check 
that prevent this possibility?

If I am reading the code correctly, are there plans to extend the Plugin 
API s.t. it becomes an option? Providing this feature would be an 
important addition to our plugin.

Thanks in advance &
kind regards
Max



[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [pve-devel] Migration of VM/Container on custom storage type
  2025-04-15  9:55 [pve-devel] Migration of VM/Container on custom storage type Max Schettler via pve-devel
@ 2025-04-16  8:46 ` Fabian Grünbichler
  0 siblings, 0 replies; 2+ messages in thread
From: Fabian Grünbichler @ 2025-04-16  8:46 UTC (permalink / raw)
  To: Proxmox VE development discussion; +Cc: Max Schettler


> Max Schettler via pve-devel <pve-devel@lists.proxmox.com> hat am 15.04.2025 11:55 CEST geschrieben:
> Hi,
> 
> I'm developing a Proxmox storage plugin. Trying to use the 
> high-availability features or migrating VMs/Containers to another 
> hypervisor in the cluster I get error messages about the storage type 
> I'm providing not being supported.

Hi! thanks for reaching out!

out of interest, what is the storage plugin for?

in general it always helps to provide a bit of detail and to include all
error messages. I made an educated guess below what your issue is, if it
is not correct, please just add more details and I am sure we can figure
it out.

> Looking at the source, it seems like there is a whitelist of 
> storagetypes, and no feature check like e.g. for snapshotting. Am I 
> right to assume there is currently no way of providing a storage backend 
> that can use this functionality? Are there details beyond this check 
> that prevent this possibility?

at the moment there is a list of shared storage types in PVE::Storage::Plugin
that is used to set the shared flag on the storage instance (which in turn
makes migrations ignore volumes there since a storage being shared means its
volumes have identical content on all nodes where the storage is available).

the only option at the moment is to add your type to that list (it is shared
state across all plugins, so any plugin can do so).

> If I am reading the code correctly, are there plans to extend the Plugin 
> API s.t. it becomes an option? Providing this feature would be an 
> important addition to our plugin.

I think we will switch to just making this a property of the plugin in a
declarative fashion as part of revamping the plugin interface, but that has
not happened yet, so for now the only option to add a new shared plugin is
to push to that list.

you might be interested Max (still open/iterated upon) series documenting
and improving the plugin interface:

https://lore.proxmox.com/pve-devel/20250326142059.261938-1-m.carrara@proxmox.com/

while some parts are still in flux there, it should give some missing details!

Fabian


_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2025-04-16  8:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-04-15  9:55 [pve-devel] Migration of VM/Container on custom storage type Max Schettler via pve-devel
2025-04-16  8:46 ` Fabian Grünbichler

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal