panel icon indicating copy to clipboard operation
panel copied to clipboard

IPAM + VM Configuration

Open wajwuz opened this issue 1 year ago • 9 comments

Is there an existing feature request for this?

  • [X] I have searched the existing issues before opening this feature request.

Describe the feature you would like to see.

Support for IP's over DHCP (MAC address), MTU setting for VM's.

Describe the solution you'd like.

Convoy doesn't support IP's over MAC address from DHCP network also if someone is tunnelling his IP's he might have lower MTU than 1500 but Convoy overwrites this even VM template has all this setup correctly.

Additional context to this request.

No response

wajwuz avatar Aug 16 '24 21:08 wajwuz

I can make it so that Convoy doesn't override configuration, but you're going to have to elaborate about support for IPs over DHCP. It's not clear whether it is possible through Proxmox's API to do this.

ericwang401 avatar Oct 10 '24 16:10 ericwang401

I think adding option MTU while adding node would be great and when it's empty it will use default value 1500.

And here's the option I talked about:

  • First is "Bandwidth limit" which is rate in PVE Screenshot 2024-10-10 at 9 53 57 PM

  • Second is "MTU" which convoy overwrite by default and I had to manually change the code. ^ Screenshot above

  • Third is "Setting only MAC address on IPAM". Currently we need to provide: IP, GW, CIDR which we can replace by MAC addresses with DHCP. And this is because Netplan on Ubuntu doesn't like gateways outside the subnet of allocated IP, for example: 1.2.3.4/32 and gw: 4.3.2.1. Maybe there should be and DHCP option with -- input MAC address Screenshot 2024-10-10 at 9 51 48 PM

Also I found this: Screenshot 2024-10-10 at 9 52 02 PM

Which can be located at PVE API: https://pve.proxmox.com/pve-docs/api-viewer/index.html#/nodes/{node}/qemu POST

wajwuz avatar Oct 10 '24 19:10 wajwuz

Should MTU be set depending on the network interface or should all VMs in a node have the same MTU? I'm looking for what's the best way to implement this.

ericwang401 avatar Nov 17 '24 20:11 ericwang401

Yes, MTU should be inherited from network interface.

wajwuz avatar Nov 18 '24 04:11 wajwuz

But convoy should not override if something custom is set already in proxmox.

staalexa avatar Nov 18 '24 14:11 staalexa

But convoy should not override if something custom is set already in proxmox.

Well that would be a bit hard to tell if a value was set by a user or was supposed to be overridden.

ericwang401 avatar Nov 18 '24 14:11 ericwang401

You could set it during installation, and not override every few seconds (not like the network speed thing)

staalexa avatar Nov 18 '24 14:11 staalexa

You could set it during installation, and not override every few seconds (not like the network speed thing)

The rate limiter currently only sets the network speed in the latest release.

ericwang401 avatar Nov 18 '24 15:11 ericwang401

I don't think my question about the technical implementation of DHCP was clarified. Please provide this information for discussion to continue

ericwang401 avatar Apr 03 '25 03:04 ericwang401

I'm not sure what needs to be implemented, so I'm closing this issue for now.

ericwang401 avatar Jul 22 '25 04:07 ericwang401

I'm not sure what needs to be implemented, so I'm closing this issue for now.

I have an use-case for this with the OVH Virtual Mac adresses. Basically, a mac address needs to be supplied for the VM network interface for the VM to be able to acquire the public IP address.

Can you check if that would be possible @ericwang401 ?

JiveOff avatar Nov 03 '25 10:11 JiveOff

I'm not sure what needs to be implemented, so I'm closing this issue for now.

I have an use-case for this with the OVH Virtual Mac adresses. Basically, a mac address needs to be supplied for the VM network interface for the VM to be able to acquire the public IP address.

Can you check if that would be possible @ericwang401 ?

Sorry but I do not understand you problem. As far as I can see, in ovh you assign a Mac to an ip wich then can only be used on a vm having this Mac address.

And you goal is to have the ip address assigned via dhcp.

This seems redundant. Since you want to thinks, The user seeing their ip in the dashboard, and the server having the proper Mac therefore being able to use the assigned ip.

The first option is not possible if you use dhcp. The second option you can already do.

Let's say you have ip 1.1.1.1 and assigned Mac 70:2f:4c:c2:49:e5 in ovh. So what you do is, create in convoys IPAM an ip 1.1.1.1 and give it a Mac 70:2f:4c:c2:49:e5.

Image

Regarding MTU, currently convoy only overrides the mtu on creation and sets it empty. meaning the mtg form the bridge is being used:

Force MTU of network device (VirtIO only). Setting to 1 or empty will use the bridge MTU https://pve.proxmox.com/wiki/Manual:_qm.conf

GunniBusch avatar Nov 04 '25 10:11 GunniBusch

The first option is not possible if you use dhcp. The second option you can already do.

Let's say you have ip 1.1.1.1 and assigned Mac 70:2f:4c:c2:49:e5 in ovh. So what you do is, create in convoys IPAM an ip 1.1.1.1 and give it a Mac 70:2f:4c:c2:49:e5.

Glad to see that is already possible, thanks. I'm still pondering and wanted to check if it is already possible. "acquire" wasn't the correct word here as OVH doesn't provide DHCP anyways.

Thanks for clearing that up!

JiveOff avatar Nov 05 '25 16:11 JiveOff