Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WISHLIST: Use Multistrap (optionally?) instead of Debootstrap for make-base-vm --lxc #120

Open
Michagogo opened this issue May 2, 2016 · 3 comments

Comments

@Michagogo
Copy link

This would essentially solve #91.

@josephbisch
Copy link
Collaborator

Some notes for the person who ends up implementing this:

  • Add the "addimportant=true" setting to the general section of the config file for multistrap to get the same default package installation behavor as debootstrap (install important packages in addition to required packages).
  • Multistrap uses apt and dpkg directly (unlike debootstrap), so it is a good idea to make multistrap optional like Michagogo suggested and leave the option to use debootstrap.

@Michagogo
Copy link
Author

As a side note: why was this method of creating the base container chosen?
AIUI there are other, more "correct" ways of creating LXCs. There's the
lxc-create command for creating containers, and then other commands for
cloning/snapshotting containers. In addition, containers can be started and
stopped just like VMs. Why are we not simply using LXC the way it's
intended to be used? It seems to me that would make the whole process much
simpler, as we could simply treat a container in the same way that we do a
KVM. Unless there's something I'm missing (and there probably is), this may
be a route worth pursuing…

On Wednesday, May 4, 2016, Joseph Bisch [email protected] wrote:

Some notes for the person who ends up implementing this:

  • Add the "addimportant=true" setting to the general section of the
    config file for multistrap to get the same default package installation
    behavor as debootstrap (install important packages in addition to required
    packages).
  • Multistrap uses apt and dpkg directly (unlike debootstrap), so it is
    a good idea to make multistrap optional like Michagogo suggested and leave
    the option to use debootstrap.


You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
#120 (comment)

@Michagogo
Copy link
Author

And if we want to get even more streamlined, there may not even be a need
to shell out. LXC has Ruby bindings. But even if we don't touch that, using
the supported LXC workflow and commands, treating it as a VM and doing
everything as we do for KVM, seems to me like it would be an improvement
over our current situation, where things keep breaking. For example, right
now there's some kind of brokenness on Xenial (haven't really had a chance
to look into it).

On Wednesday, May 4, 2016, Micha Bailey [email protected] wrote:

As a side note: why was this method of creating the base container chosen?
AIUI there are other, more "correct" ways of creating LXCs. There's the
lxc-create command for creating containers, and then other commands for
cloning/snapshotting containers. In addition, containers can be started and
stopped just like VMs. Why are we not simply using LXC the way it's
intended to be used? It seems to me that would make the whole process much
simpler, as we could simply treat a container in the same way that we do a
KVM. Unless there's something I'm missing (and there probably is), this may
be a route worth pursuing…

On Wednesday, May 4, 2016, Joseph Bisch <[email protected]
javascript:_e(%7B%7D,'cvml','[email protected]');> wrote:

Some notes for the person who ends up implementing this:

  • Add the "addimportant=true" setting to the general section of the
    config file for multistrap to get the same default package installation
    behavor as debootstrap (install important packages in addition to required
    packages).
  • Multistrap uses apt and dpkg directly (unlike debootstrap), so it
    is a good idea to make multistrap optional like Michagogo suggested and
    leave the option to use debootstrap.


You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
#120 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants