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

Question: Installing a nested libvirt cluster from a Linux VM #334

Closed
praveenkumar opened this issue Sep 26, 2018 · 10 comments
Closed

Question: Installing a nested libvirt cluster from a Linux VM #334

praveenkumar opened this issue Sep 26, 2018 · 10 comments
Labels
triage/support Indicates an issue that is a support question.

Comments

@praveenkumar
Copy link
Contributor

This is mostly duplicate to #201 but I just want to understand if I have a Linux VM (assume CentOS/Fedora) can I use the installer on top of it to provision single node cluster (Provided I have required libvirt dependency but doesn't have nested virtualization)?

@russellb
Copy link
Member

Do you think supporting libvirt without nested virt available is useful? It's going to be very, very slow.

From a quick look at the libvirt terraform provider, it seems to assume KVM. There is code they use for testing purposes to set the libvirt type to "qemu" (for when kvm is not available) that you could use. Running this before running the installer may do the trick.

export TERRAFORM_LIBVIRT_TEST_DOMAIN_TYPE="qemu"

@gbraad
Copy link

gbraad commented Sep 27, 2018

Well, the idea would be to deploy to a VM that will be target for the tectonic installer (which will run an all-in-one).

However, it would be possible to have a deployment/installer VM started alongside of it, as long as it can target Hyper-V, KVM or Hyperkit/xhyve.

@praveenkumar
Copy link
Contributor Author

Do you think supporting libvirt without nested virt available is useful?

@russellb It is useful but not if it is going to be very, very slow. How was the tectonic sandbox was working, was it also using the nested virt?

@praveenkumar
Copy link
Contributor Author

However, it would be possible to have a deployment/installer VM started alongside of it, as long as it can target Hyper-V, KVM or Hyperkit/xhyve.

@gbraad This is already discussed #201

@gbraad
Copy link

gbraad commented Sep 27, 2018

What will actually run as virtualization? The installer node or a management node (like the overcloud for RDO)?


Technically it is possible to have providers for Terraform that target a local 'cloud'-solution, such as Hyper-V... but from the issue related to this, it is not something that is on their rader: hashicorp/terraform#3004 (use system center to target hyper-v).

@crawford
Copy link
Contributor

You can definitely do nested virt with KVM. Or is this Linux VM running on something other than Linux?

@wking wking added the triage/support Indicates an issue that is a support question. label Oct 4, 2018
@wking wking changed the title Question: At current stage can installer able to provision single node OpenShift cluster on Linux VM. Question: Installing a nested libvirt cluster from a Linux VM Oct 5, 2018
@praveenkumar
Copy link
Contributor Author

Or is this Linux VM running on something other than Linux?

yes, it mostly Windows/MacOS.

@russellb
Copy link
Member

Or is this Linux VM running on something other than Linux?

yes, it mostly Windows/MacOS.

To get acceptable performance, it needs to be native VMs on those platforms. One route would be to try to add support for one of the other libvirt drivers, like virtualbox or hyper-v (https://libvirt.org/drivers.html). Another path would be to add support using a different terraform provider, like https://github.com/terra-farm/terraform-provider-virtualbox.

None of this would be trivial, though. Everyone should get a real Linux development environment, instead. :-)

@crawford
Copy link
Contributor

crawford commented Jan 4, 2019

Closing due to inactivity.

@openshift-ci-robot
Copy link
Contributor

@crawford: Closing this issue.

In response to this:

Closing due to inactivity.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
triage/support Indicates an issue that is a support question.
Projects
None yet
Development

No branches or pull requests

6 participants