XCP-ng
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login
    1. Home
    2. Byte0
    B
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 5
    • Posts 22
    • Groups 0

    Byte0

    @Byte0

    2
    Reputation
    2
    Profile views
    22
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online

    Byte0 Unfollow Follow

    Best posts made by Byte0

    • RE: XCP-ng firewall

      @BenjiReis The xapi is written in OCaml? That is pretty cool. I would love to learn OCaml one day.

      Anyways, doesn't seem intuitive to design it this way:
      334b8d7a-6f7e-4796-97c2-3c1fe4144fb6-Screenshot from 2024-10-22 08-02-03.png

      Going to file an issue in that repo to see what happens. I suppose they would have to fix the OCaml code you linked as well.

      posted in Compute
      B
      Byte0

    Latest posts made by Byte0

    • RE: Location of xo-cli reference

      @olivierlambert I stumbled across this here while searching for something else: https://xcp-ng.org/forum/topic/3671/xo-cli-help/5

      I need to specify "json:8" to set the CPUs to 8. I did see the use of the "json:" prefix here (https://docs.xen-orchestra.com/architecture#xo-cli-cli), but the example shows using that prefix for a list rather than a single value. Not to mention that when setting the memory with vm.set, using "json:" is not required, so I didn't think to try that. I figured it out eventually though.

      posted in Management
      B
      Byte0
    • RE: Location of xo-cli reference

      Also more details regarding how vm.createCloudInitConfigDrive works would be good.

      The help information from xo-cli list-commands has the following

      vm.createCloudInitConfigDrive vm=<string> sr=<string> config=<string> [networkConfig=<string>]

      Is the string for config and networkConfig supposed to be the id of objects created using cloudConfig.create?

      Does the template= parameter for cloudConfig.create accept the yaml string for cloud-init?

      posted in Management
      B
      Byte0
    • Location of xo-cli reference

      Is there an online reference for xo-cli with examples? I can't find it. I know that xo-cli has help output, but it isn't detailed enough for me to understand fully how to use it.

      Here's my specific example:

      xo-cli vm.set auto_poweron=true id="f329c1f2-424e-1451-7c61-fee57273e6c4" CPUs=8 memory=17179869184 secureBoot=false
      āœ– invalid parameters
        property @./CPUs: must be integer
      

      After I create the VM with xo-cli vm.create, I am trying to set the number of CPUs to 8 and the RAM to 16GB.

      posted in Management
      B
      Byte0
    • RE: Is the xe utility open source?

      @olivierlambert Does the xe command interact with the XAPI solely or is there some other service/API that Citrix has made that the xe command line utility depend on?

      posted in Development
      B
      Byte0
    • RE: Is the xe utility open source?

      @olivierlambert NICE!! I super love PowerShell. I hope Unix socket interaction is part of it. I'd love to help contribute, except I am a super noob when it comes to development. I've written c# tools before, but I am all self taught and there's so much about C# I don't know.

      I totally overlooked the "for XO". The Unix socket thing doesn't apply there. It is still really awesome though and wish I could help.

      posted in Development
      B
      Byte0
    • RE: Is the xe utility open source?

      @bvitnik .Net core supports connecting to Unix sockets (socket types). PowerShell can, but would need to create .Net objects to do it. My goal was to still use the Citrix PowerShell module, but I would need to edit the .Net SDK as well as the PowerShell module code that uses the .Net SDK. The scope might be too large for a noob such as I.

      I'm sure I could figure it out eventually, but it would take me forever. I'm a sysadmin that's loves writing code (all basic tools and automations though) and I wish I could do it more, so I could get better at it.

      EDIT: Citrix has two editions of the PowerShell module, one written for Windows PowerShell and one written for PowerShell core.

      posted in Development
      B
      Byte0
    • RE: Is the xe utility open source?

      @Byte0 Oh, I may have just found it. It's written on ocaml? Uh oh. Might be well out of my ability to make this happen. šŸ˜ž

      posted in Development
      B
      Byte0
    • Is the xe utility open source?

      I am a huge fan of PowerShell and there is a PowerShell module for managing XenServer/XCP-ng, however it requires connecting to the Xen system with a username/password before using it even if the PowerShell module is installed on XCP-ng itself.

      I noticed that the version of xe that I install on my workstation needs to make a connection (of course), but the xe utility on XCP-ng host does not need to do this. It seems there is some way of interacting with the XCP-ng server that doesn't require auth if running on the server as root.

      I was hoping I could figure out a way to replicate this with with PowerShell, so that if I am logged into XCP-ng as root, I can immediate run Get-XenVM without needing to run Connect-XenServer first.

      posted in Development
      B
      Byte0
    • RE: XCP-ng firewall

      @BenjiReis The xapi is written in OCaml? That is pretty cool. I would love to learn OCaml one day.

      Anyways, doesn't seem intuitive to design it this way:
      334b8d7a-6f7e-4796-97c2-3c1fe4144fb6-Screenshot from 2024-10-22 08-02-03.png

      Going to file an issue in that repo to see what happens. I suppose they would have to fix the OCaml code you linked as well.

      posted in Compute
      B
      Byte0
    • RE: XCP-ng firewall

      @BenjiReis just checked the repo: https://github.com/xcp-ng/xcp-ng-xapi-plugins/tree/master/SOURCES/etc/xapi.d/plugins

      That doesn't even have the firewall-port script in it, so not sure what repository contains that to send a fix to.

      posted in Compute
      B
      Byte0