RSS

Anka Build Cloud Controller & Registry Version 1.30.1

Ability to set --local and --no-local

In this version, you can now set --local and --no-local when starting VMs. This will stop the VM before performing the modify command, if not already stopped. You can read more in the Working with the Controller and API guide

> anka modify null network --help
usage: network [options]

   Modify network card settings

options:
  -t,--mode <val>          network mode: shared/host/bridge/disconnected
  -b,--bridge <val>        host interface name to bridge with in the bridge mode, or "auto"
  -m,--mac <val>           specify fixed MAC address, or "auto"
  -n,--bond <val>          use bonding of [2-4] interfaces
  -v,--vlan <val>          assign VLAN ID, 0 to deassign
  -c,--controller <val>    set controller: anet, virtio-net
  --local                  allow vm-host connections (default)
  --no-local               prevent any vm-host connections
  -f,--filter <val>        filtering rules file, embed it into VM configuration with '-f- < rules.conf'), or use '-f off' to disable
 curl -X POST "http://anka.controller/api/v1/vm" -H "Content-Type: application/json" \
  -d '{"vmid": "6b135004-0c89-43bb-b892-74796b8d266c", "count": 2, "network_local": "forceOn" }'

{
  "status": "OK",
  "message": "",
  "body": [
    "c983c3bf-a0c0-43dc-54dc-2fd9f7d62fce",
    "e74dfc0e-dc94-4ca2-575e-3219ac08ffa2"
  ]
}