XCP-ng
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login
    1. Home
    2. mietek
    3. Topics
    M
    Offline
    • Profile
    • Following 0
    • Followers 1
    • Topics 4
    • Posts 43
    • Groups 0

    Topics

    • M

      xo-cli --register produces "invalid parameters" errors in xo logs

      Watching Ignoring Scheduled Pinned Locked Moved Solved Xen Orchestra
      18
      0 Votes
      18 Posts
      935 Views
      M
      @julien-f OK, server upgrade it is. Thanks for a prompt reply. Appreciate it.
    • M

      XO spawned VM from template has wrong VIF network order

      Watching Ignoring Scheduled Pinned Locked Moved Xen Orchestra
      25
      0 Votes
      25 Posts
      5k Views
      M
      @Forza Hey - thanks for the input. It would be valid if I would reboot xcp host though. All this is happening on live xcp server which is problematic. It's no the end of the world but there has to be a way to debug it. Any tips on that?
    • M

      XO templates cd image problem

      Watching Ignoring Scheduled Pinned Locked Moved Solved Xen Orchestra
      8
      0 Votes
      8 Posts
      905 Views
      M
      This is a great news as I will be able to have all my scripts written as of now and xo-cli in one place. Thanks @olivierlambert For those who are looking for direct instructions ... on Debian 10.x: # install npm: apt install npm # install xo-cli: npm install -g xo-cli
    • M

      XO debian 10 cloud ready VM template (cloud-init)

      Watching Ignoring Scheduled Pinned Locked Moved Xen Orchestra
      24
      -1 Votes
      24 Posts
      8k Views
      M
      I was able to find the reason XO is not working with cloud-init. XO attaches iso with the cloud-config data as additional disk xvdb and it does not work. But if you provide it as a cd? It will. That is why - as for now you will need to create your own iso and attach it as a cd-rom. You do that this way: Get your files ready (meta-data network-config user-data). My examples below: metadata: instance-id: local-nocloud local-hostname: myhost.example.com network-config: network: version: 1 config: - type: physical name: eth0 subnets: - type: static address: 10.0.0.5/24 gateway: 10.0.0.254 - type: nameserver address: - 8.8.8.8 - 8.8.4.4 search: - example.com - type: physical name: eth1 subnets: - type: static address: 192.168.0.5/24 user-data: #cloud-config ### RUN CMD runcmd: - /usr/bin/apt -y install mc - /usr/bin/date >> /root/testfile # set system default user system_info: default_user: name: testuser gecos: Default Cloud User # password auth - comment out if not using passwords password: testpassword ssh_pwauth: true chpasswd: { expire: false } # do some package management #package_update: true packages: - iptraf - mtr - screen - net-tools - atop Generate iso genisoimage -output myiso.iso -volid cidata -joliet -rock user-data meta-data network-config Upload iso to XO home -> storage -> iso's -> disks -> new disk Prepare VM/template Install Debian 10.6 with xo-tools install cloud-init and cloud-initramfs-growroot remove all network configuration leave just "allow-hotplug ethxxx" (network config will be added in /etc/network/interfaces/50-cloud-init. It will not overwrite yours) shutdown the machine and create the template if you want or just restart VM. DO NOT LET IT BOOT! - keep it in grub. attach your iso let it run It will do whatever you need on the machine.