vatesfr / xen-orchestra

The global orchestration solution to manage and backup XCP-ng and XenServer.
https://xen-orchestra.com
Other
750 stars 261 forks source link

Specify 'default' network(s) to be assigned to a VM on creation #3916

Closed adhawkins closed 5 years ago

adhawkins commented 5 years ago

Context

Expected behavior

Be able to specify which network(s) are connected to a VM by default when one is created

Current behavior

No option exists. I seem to remember the option being available in XenCenter

olivierlambert commented 5 years ago

I can't find any XAPI call for this. I wonder if it's not an extra value somewhere that XenCenter fetches.

adhawkins commented 5 years ago

I found the option for which networks to add to VMs in XenCenter. In my old copy (v6.5.1.1922) in the properties of the network, on the 'Network Settings - Physical Device' page (where the MTU is) is a checkbox: 'Automatically add this network to new virtual machines'.

Is the source for XenCenter available? Perhaps that would tell you what this setting actually does?

Ultra2D commented 5 years ago

It would be nice to be able to view/set this.

It's this one:

xe network-param-list uuid=\<uuid> other-config (MRW): automatic: false

Toggle it in XCP-ng center:

other-config (MRW): automatic: true

olivierlambert commented 5 years ago

@Ultra2D thank you!

Now I wonder if it's a parameter that trigger something only in XenCenter UI (putting the default network) or if it's more generic. Anyway, we'll implement that :)

olivierlambert commented 5 years ago

@julien-f I just put this in triage, IDK who's the best person in XO team to check this :)

julien-f commented 5 years ago
Ultra2D commented 5 years ago

As @adhawkins already mentioned, you can set 'Automatically add this network to new virtual machines' for multiple networks. I guess "default network" should be changed to "default networks"?

pdonias commented 5 years ago
julien-f commented 5 years ago

This has been fixed, please comment if you encounter any issues :slightly_smiling_face: