Skip to content
This repository has been archived by the owner on May 6, 2020. It is now read-only.

scripts: Add script to generate hypervisor configure options. #45

Conversation

jodh-intel
Copy link

To avoid a proliferation of scripts and config files from specifying
different sets of hypervisor configuration options, this script must
be run to generate the correct set of options.

Each option group has been documented explaining why it has been
specified.

The script currently only supports qemu-based hypervisors.

Fixes #44.

Signed-off-by: James O. D. Hunt james.o.hunt@intel.com

@devimc
Copy link

devimc commented Aug 10, 2017

lgtm

@devimc
Copy link

devimc commented Aug 10, 2017

@gorozco1 @erick0z I think this script could be useful for you, what do you think?

@jodh-intel jodh-intel force-pushed the add-hypervisor-build-options-script branch from 9992d53 to cf12ad6 Compare August 10, 2017 13:52

## `configure-hypervisor.sh`

This script generates the official set of hypervisor build configuration
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi. given the script generates QEMU, and only QEMU, arguments right now, maybe we could be more explicit about that in the text.
For instance, I ran (for a laugh...) ./configure-hypervisor.sh graham, and was surprised it ran and generated output :-)
Given we are not filtering on the name, and the output is very QEMU specific, I reckon we can be more explicit. you think?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When you say, "in the text", do you mean the script header or the README? The former mentions qemu and the latter gives and example. I'm open to suggestions here ;)

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Again, I purposely didn't validate the input, but I can add a check to ensure it is qemu-lite if you like. But we should probably permit qemu too? Also, we'll need to update it for qemu-cc once #34 lands.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was thinking in the README - currently we say 'hypervisor', in a rather neutral way, implying to me that it might either understand which hypervisor you are asking for, or support multiple hypervisors. Just changing that to QEMU would work for me, just to be explicit that this is just supporting QEMU and not filtering on the arguments right now.

I'm fine on not filtering right now, the script does exactly what we need it to do for our integrations, just wanted it a bit more explicit that it will spit out QEMU settings, always, right now.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ack - branch updated.

qemu_options+=(--disable-libiscsi)
qemu_options+=(--disable-libnfs)
qemu_options+=(--disable-libssh2)
qemu_options+=(--disable-rbd)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/me will remember that for if I pick up that ceph work again ;-)

Copy link
Contributor

@grahamwhaley grahamwhaley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor doc nit, does not have to block.
Lovely work on documenting the arguments @jodh-intel
@dvoytik - don't know if you or somebody else would like to review those settings now we have them nicely laid out :-)

@gorozco1
Copy link

lgtm

@gorozco1
Copy link

@anthonyzxu can you take a look?

To avoid a proliferation of scripts and config files from specifying
different sets of hypervisor configuration options, this script must
be run to generate the correct set of options.

Each option group has been documented explaining why it has been
specified.

The script currently only supports qemu-based hypervisors.

Fixes clearcontainers#44.

Signed-off-by: James O. D. Hunt <james.o.hunt@intel.com>
@jodh-intel jodh-intel force-pushed the add-hypervisor-build-options-script branch from cf12ad6 to 0fc437f Compare August 10, 2017 15:56
@anthonyzxu
Copy link

looks good to me

@gorozco1 gorozco1 merged commit d601808 into clearcontainers:master Aug 10, 2017
egernst pushed a commit to egernst/cc-packaging that referenced this pull request Aug 14, 2018
Add the version of config and patches we are using in a package.

Kernel version before:

4.14.22-128

Now:

4.14.22.1-128

Fixes: clearcontainers#45

Signed-off-by: Jose Carlos Venegas Munoz <jose.carlos.venegas.munoz@intel.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants