An error occurred fetching the project authors.
  1. 03 Dec, 2021 2 commits
  2. 22 Nov, 2021 1 commit
    • Thomas Gambier's avatar
      software/kvm: fix wipe-disk-device-wrapper · 2048ceb8
      Thomas Gambier authored
      Without a shebang, supervisord refuses to run the script with the
      following error:
      
      supervisor: couldn't exec /srv/slapgrid/slappart8/etc/prerm/slapos_wipe_device_disk: ENOEXEC
      supervisor: child process was not spawned
      
      This is a fixup of 0983f1ca
      2048ceb8
  3. 15 Nov, 2021 1 commit
  4. 29 Oct, 2021 1 commit
  5. 28 Oct, 2021 1 commit
  6. 18 Oct, 2021 1 commit
  7. 11 Oct, 2021 1 commit
  8. 08 Jul, 2021 1 commit
    • Łukasz Nowak's avatar
      kvm: Minimise restart reaction of the KVM wrapper · 6bdc1062
      Łukasz Nowak authored
      Thanks to minimising amount of changing parameters of the wrapper, by setting
      RAM and CPU to "init" values, it's possible to not restart the wrapper in case
      of device hotplugging in for changes of those parameters.
      
      Note that this shows regressiong to enable-device-hotplug which happened
      after upgrade to qemu 5.2.0 in 8dc22418.
      
      slapos.toolbox is added in order to use qemuqmpclient.
      6bdc1062
  9. 29 Jun, 2021 1 commit
  10. 11 May, 2021 2 commits
  11. 07 May, 2021 1 commit
    • Julien Muchembled's avatar
      kvm: do not try to correct disk-related parameters · 128a37e0
      Julien Muchembled authored
      The user must be aware of any mistake he did. For example, he may lose
      time by not understanding why the VM does not behave as expected or by
      distorting measures in benchmarks.
      
      The only legitimate reason to automatically fix a parameter is backward
      compatibility, if a value is not valid anymore. But such fallback
      should only be temporary. There's no such case recently.
      
      At last, it increased maintenance by having to keep the lists of valid
      values up-to-date.
      
      About:
      
        -  if disk_info['io'] == 'native':
        -    additional_disk_options += ',cache.direct=on'
      
      These lines are redundant when cache is none.
      128a37e0
  12. 27 Apr, 2021 1 commit
  13. 19 Apr, 2021 1 commit
  14. 14 Apr, 2021 1 commit
  15. 09 Apr, 2021 4 commits
    • Łukasz Nowak's avatar
      kvm: Implement whitelist firewall · 97225683
      Łukasz Nowak authored
      Sources of domains and IPs are:
      
       * default hardcoded in template/whitelist-domains-default
       * /etc/resolv.conf
       * provided in the request
       * provided in the special downloadble repository
      
      Then they are parsed with dnsresolver and .slapos-whitelist-firewall file is
      produced with list of IPs to be whitelisted.
      
      This allows slapos.core whitelistfirewall manager to lock-down the partition
      to only whitelisted list of IPs.
      97225683
    • Łukasz Nowak's avatar
      kvm: Protect against buildout-unfriendly values · 49872dd2
      Łukasz Nowak authored
      Even if boot-image-url-select is not designed to contain bad values, they can
      happen, so add protection just like with boot-image-url-list.
      49872dd2
    • Łukasz Nowak's avatar
    • Łukasz Nowak's avatar
      kvm: Fix kvm-resilient usage · 60f31cdd
      Łukasz Nowak authored
      instance-kvm-export.cfg were copying parts defined in instance-kvm.cfg, but as
      the latter one was evolving a lot, it was missing features.
      
      For simplicity let instance-kvm.cfg expose the parts in a way, that
      instance-kvm-export.cfg can blindly append the to list of own parts, as it has
      to support resiliency exporter by itself.
      60f31cdd
  16. 01 Apr, 2021 1 commit
  17. 09 Mar, 2021 1 commit
  18. 15 Sep, 2020 2 commits
  19. 14 Aug, 2020 2 commits
    • Łukasz Nowak's avatar
      software/kvm: Set cpu-max-count and ram-max-size defaults correctly · a5bdb631
      Łukasz Nowak authored
      As cpu-count and ram-size can be setup freely by the user, the cpu-max-count
      and ram-max-size shall follow it.
      
      Otherwise it generates hard to track issues with starting VMs.
      a5bdb631
    • Łukasz Nowak's avatar
      software/kvm: Implement downloadable images · 0d3e8749
      Łukasz Nowak authored
      Downloadable images are enabled when key image-url-list (described in
      instance-kvm-input-schema.json) is present.
      
      Images are downloaded outside of partition processing, as this can take a lot
      of time by template/image-download-controller.py
      
      Configuration is checked and cleaned up by
      template/image-download-config-creator.py
      
      Promises are used for:
      
       * checking if the current configuration from the request has been processed
       * checking status of configuration generation, image download process and
         checksum validity
      
      Details about errors are exposed by using monitor stack provided HTTP server,
      so that user is able to take informed decision about how to fix the problem.
      0d3e8749
  20. 12 May, 2020 1 commit
  21. 11 May, 2020 1 commit
  22. 07 May, 2020 4 commits
  23. 29 Apr, 2020 1 commit
    • Thomas Gambier's avatar
      software/kvm: correctly setup network inside of the VM · 22608e02
      Thomas Gambier authored
      don't add automatic route when adding IP address on interface because
      the automatic route doesn't add "via XXXXXX" gateway option.
      
      In KVM setup, the host machine is the gateway. We need to go through the
      gateway because we can't reach directly the other VM running on
      different slaptap interfaces.
      22608e02
  24. 09 Mar, 2020 2 commits
  25. 20 Feb, 2020 1 commit
  26. 28 Jan, 2020 1 commit
  27. 22 Jan, 2020 2 commits
  28. 19 Nov, 2019 1 commit