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

    install ubuntu guest from command line.

    Scheduled Pinned Locked Moved Development
    12 Posts 4 Posters 3.1k Views 1 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.
    • B Offline
      Bahman @olivierlambert
      last edited by

      @olivierlambert
      we have a lot of ubuntu template in xen.
      what i want is create an ubuntu server. something like that
      xe-vm-install template="ubuntu focal.." ....
      and in this command add ip address disk size ...

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

        You can't add IP addresses during VM creation, because it's not handled by the hypervisor.

        If you want this (to add IP addresses, SSH keys and so on), you need to use Cloudinit ready template and xo-cli (or API) to create the VM.

        B 1 Reply Last reply Reply Quote 0
        • B Offline
          Bahman @olivierlambert
          last edited by

          @olivierlambert
          i can't see how to create vm with xo create
          https://sawtooth.hyperledger.org/docs/core/releases/1.0.1/cli/xo.html#xo

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

            Hyperledger Sawtooth is an enterprise blockchain platform for building distributed ledger applications and networks

            Obviously, it has nothing to do with Xen Orchestra 😄

            B 1 Reply Last reply Reply Quote 0
            • B Offline
              Bahman @olivierlambert
              last edited by

              @olivierlambert
              i know. My issue is disaster/recovery and i want to just install and running all vm server with just running a scripts.

              jedimarcusJ 1 Reply Last reply Reply Quote 0
              • jedimarcusJ Offline
                jedimarcus @Bahman
                last edited by

                @bahman have a look here.
                https://github.com/vatesfr/xen-orchestra/tree/master/packages/xo-cli

                If you want to automate absolutely everything, you need to get a cloud-init ubuntu template up and running and pass cloud-init parameters to it.

                B 1 Reply Last reply Reply Quote 0
                • B Offline
                  Bahman @jedimarcus
                  last edited by

                  @jedimarcus
                  Thanks. that is what i want.

                  1 Reply Last reply Reply Quote 0
                  • gskgerG Offline
                    gskger Top contributor @Bahman
                    last edited by

                    @bahman If you know / are willing to learn Ansible, this Github project might give you some ideas on how to automate the install of an Ubuntu (or Debian) guest VM. I am just dipping my toe into Ansible to automate my test program and this project came up during research. But I must admit that I have never tested it, but I see the potential. Would be great to learn about your experience if you follow this approach.

                    B 1 Reply Last reply Reply Quote 0
                    • B Offline
                      Bahman @gskger
                      last edited by

                      @gskger
                      i using Ansible but not to install ubuntu on xsen server.
                      what i thinking is with scripts create all server on xenserver then starting ansible to install all software....
                      i don't know how to install ubuntu from ansible script.

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

                        Packer is an option (better than Ansible in this case).

                        Otherwise, use xo CLI to do that.

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