0

How do you give arguments to multipass --network?

It says in the doc;

These properties can be specified in the format <key>=<value>,…. but a simpler form with only is available for the most common use-case. Here is an example:

I my case I am trying to give the following arguments to multipass command:

  declare -A KV
  KV[name]=en0
  KV[mac]=52:54:00:5d:f6:20
  NET='--network name=en0,mac=52:54:00:5d:f6:20'
  multipass launch --name slet --cpus 2 --mem 4G --disk 80G --network ${KV[name]} --network ${KV[mac]}

But it keeps complaining:

multipass launch --name slet --cpus 2 --mem 4G --disk 80G --network ${KV[name]} --network ${KV[mac]}

launch failed: Invalid arguments supplied                                       
Invalid network options supplied
Chris G.
  • 23,930
  • 48
  • 177
  • 302

0 Answers0