Navigation

    XCP-ng

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups

    install ubuntu guest from command line.

    Development
    4
    12
    148
    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
      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
      • olivierlambert
        olivierlambert XCP-ng Team Admin Vates Team 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
          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
          • olivierlambert
            olivierlambert XCP-ng Team Admin Vates Team 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
              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.

              jedimarcus 1 Reply Last reply Reply Quote 0
              • jedimarcus
                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
                  Bahman @jedimarcus last edited by

                  @jedimarcus
                  Thanks. that is what i want.

                  1 Reply Last reply Reply Quote 0
                  • gskger
                    gskger @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
                      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
                      • olivierlambert
                        olivierlambert XCP-ng Team Admin Vates Team 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
                        XCP-ng Pro Support

                        XCP-ng Pro Support