XCP-ng
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Option to Create Host only Private Network

    Scheduled Pinned Locked Moved Xen Orchestra
    4 Posts 2 Posters 776 Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • escape222E Offline
      escape222
      last edited by

      Is there an option exposed in XOA/XO for creation of a host only network which is not exposed via a physical NIC. I am able to do this via the CLI but I do not seem to be able to do it via XOA as it errors out if I try to create a network without a NIC assigned to it. Once it is created via the CLI then it appears in the Private networks section Screenshot from 2023-05-11 09-17-37.png

      Thanks

      1 Reply Last reply Reply Quote 0
      • olivierlambertO Offline
        olivierlambert Vates 🪐 Co-Founder CEO
        last edited by

        New/Network/don't select any PIF/create

        And you are set 🙂

        escape222E 1 Reply Last reply Reply Quote 0
        • escape222E Offline
          escape222 @olivierlambert
          last edited by olivierlambert

          @olivierlambert

          Thanks

          It does not work. I get the error illegal Parameter

          Screenshot from 2023-05-11 10-20-30.png

          This is what is logged (Seems it is expecting a VLAN !!)

          network.create
          {
            "description": "Test To create a Host Only Network ",
            "name": "Test",
            "pool": "562febd7-1094-c282-3364-ab0d5534333e",
            "vlan": ""
          }
          {
            "code": 10,
            "data": {
              "errors": [
                {
                  "instancePath": "/vlan",
                  "schemaPath": "#/properties/vlan/minLength",
                  "keyword": "minLength",
                  "params": {
                    "limit": 1
                  },
                  "message": "must NOT have fewer than 1 characters"
                }
              ]
            },
            "message": "invalid parameters",
            "name": "XoError",
            "stack": "XoError: invalid parameters
              at Module.invalidParameters (/usr/local/lib/node_modules/xo-server/node_modules/xo-common/src/api-errors.js:21:32)
              at Xo.call (file:///usr/local/lib/node_modules/xo-server/src/xo-mixins/api.mjs:65:20)
              at Api.#callApiMethod (file:///usr/local/lib/node_modules/xo-server/src/xo-mixins/api.mjs:397:19)"
          
          1 Reply Last reply Reply Quote 0
          • olivierlambertO Offline
            olivierlambert Vates 🪐 Co-Founder CEO
            last edited by

            Then it's a bug 🙂 Pinging @pdonias or @julien-f

            1 Reply Last reply Reply Quote 0
            • H ha_tu_su referenced this topic on
            • First post
              Last post