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

    Is there a way to proxy the xe command?

    Scheduled Pinned Locked Moved Compute
    11 Posts 4 Posters 737 Views 3 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.
    • M Offline
      Murf
      last edited by

      Hi all, I am using the "xe vm-import url=http://xoa.io/xva" from behind a firewall and need it to fetch the image via our proxy, but can not find any way to do this.
      Any help most welcome thanks.
      Murf.

      1 Reply Last reply Reply Quote 0
      • DanpD Offline
        Danp Pro Support Team
        last edited by

        I don't believe that xe will honor the proxy. Have you checked out the alternate installation options?

        You could also download the XVA from the website and then import the local copy.

        M 2 Replies Last reply Reply Quote 0
        • M Offline
          Murf @Danp
          last edited by

          @Danp Thanks I will try a manual download

          1 Reply Last reply Reply Quote 0
          • M Offline
            Murf @Danp
            last edited by Murf

            @Danp this worked great except I cant change the static IP of the XOA VM:

            [14:39 ost-cla-ucs-b0408-xcpng tmp]# xe vif-list vm-uuid=6ad2ed7b-bb4a-6648-89d3-f27fc1bd72f0
            uuid ( RO)            : 5bc599d3-be60-c556-4393-0f69ffaa906f
                     vm-uuid ( RO): 6ad2ed7b-bb4a-6648-89d3-f27fc1bd72f0
                      device ( RO): 0
                network-uuid ( RO): 2b5c4825-5dc5-9283-cada-a81f965872c4
            
            
            [14:40 ost-cla-ucs-b0408-xcpng tmp]# xe vif-configure-ipv4 uuid=5bc599d3-be60-c556-4393-0f69ffaa906f mode=static address=172.17.132.200/24 gateway=172.17.132.1
            You attempted an operation on a VM which lacks the feature.
            vm: 6ad2ed7b-bb4a-6648-89d3-f27fc1bd72f0 (XOA)
            [14:40 ost-cla-ucs-b0408-xcpng tmp]#
            
            
            1 Reply Last reply Reply Quote 0
            • olivierlambertO Offline
              olivierlambert Vates 🪐 Co-Founder CEO
              last edited by olivierlambert

              Hi! You need to read the XO doc on how to deploy manually and how to change the IP address: https://xen-orchestra.com/docs/xoa.html#manually-deployed

              edit: you can also inject the IP config directly with this command, let me ask @julien-f for the detailed command

              julien-fJ 1 Reply Last reply Reply Quote 0
              • julien-fJ Offline
                julien-f Vates 🪐 Co-Founder XO Team @olivierlambert
                last edited by julien-f

                This should work:

                xe vm-param-set uuid="$uuid" \
                  xenstore-data:vm-data/ip="$ip" \
                  xenstore-data:vm-data/netmask="$netmask" \
                  xenstore-data:vm-data/gateway="$gateway"
                

                Optionally the default DNS server can be replaced as well:

                xe vm-param-set uuid="$uuid" xenstore-data:vm-data/dns="$dns"
                

                Don't forget to restart the XOA afterward!

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

                  Thanks @julien-f !

                  1 Reply Last reply Reply Quote 0
                  • M Offline
                    Murf @julien-f
                    last edited by

                    @julien-f Yes thanks, this now applied to the VM but after a reboot I cant ping XOA.

                    I am using a trunked interface on my XCP-NG host, and the management interface is on VLAN 2850 (set in XCP-NG console VLAN setting)

                    The IP address I am assigning to the XOA VM is also in the same subnet/VLAN.

                    I tried the following bit it made no difference:
                    xe vm-param-set uuid="$uuid" xenstore-data:vm-data/vlan="2850"

                    M julien-fJ 2 Replies Last reply Reply Quote 0
                    • M Offline
                      Murf @Murf
                      last edited by

                      Further to this, I believe this should already be working, since the primary PIF has the VLAN built into it already, the VM is attached to the PIF and in the same network, however I cant ping the XOA VM

                      1 Reply Last reply Reply Quote 0
                      • julien-fJ Offline
                        julien-f Vates 🪐 Co-Founder XO Team @Murf
                        last edited by

                        @Murf Only the parameters I wrote in my messages are supported, vlan is not. As you said, the VLAN config is set to the PIF, not inside the VM.

                        If you cannot ping your XVA, it's likely that one of your parameter is wrong.

                        M 1 Reply Last reply Reply Quote 0
                        • M Offline
                          Murf @julien-f
                          last edited by

                          @julien-f Thanks, the VM had been assigned to VIF default with VLAN ID -1, I just had to move it to my Management VLAN VIF
                          :
                          xe vif-move

                          1 Reply Last reply Reply Quote 0
                          • First post
                            Last post