Coder Social home page Coder Social logo

Comments (6)

alegrey91 avatar alegrey91 commented on May 26, 2024 1

Seems that GitHub actions don't support hardware virtualization due to the use of Azure on DV2 instances, as discussed on this thread: actions/runner-images#183.
Luckily for us, perhaps, seems that Travis-CI do what we need.
Some examples:

Another interesting thing, but out of topic, is this: https://hub.docker.com/r/ennweb/kvm

from terrible.

alegrey91 avatar alegrey91 commented on May 26, 2024 1

The pipeline seems to be ready. Today I'll do additional tests and then I think we could merge.

from terrible.

alegrey91 avatar alegrey91 commented on May 26, 2024

A really interesting trick which I'm trying to use is mentioned in this thread: travis-ci/travis-ci#1839
The problem we have is that after adding the travis user to the libvirt group, we should restart the session. Obviously this is impossible in Travis CI. For this reason we are going to use the following command to avoid this problem: sudo -E sudo -u $USER -E bash -c "COMMAND".
@89luca89

from terrible.

89luca89 avatar 89luca89 commented on May 26, 2024

This should depend on #50 and use cloud_init images

from terrible.

alegrey91 avatar alegrey91 commented on May 26, 2024

To avoid the creation of each image using Packer, we decided to store the already built images on the cloud and download them from the Travis instance.
To do this, I've also found an interesting blog which explains how to do this: https://angelov.ai/post/2020/wget-files-from-gdrive/

from terrible.

89luca89 avatar 89luca89 commented on May 26, 2024

@alegrey91 adding to this, we use those images instead of cloud-init images to ensure also support for all cases like luks setups (that are not always supported in cloud-init instances)

from terrible.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.