Skip to content

Conversation

gj
Copy link
Contributor

@gj gj commented Feb 17, 2019

Contributes towards #825

Signed-off-by: Gabe Jackson [email protected]

Issue #, if available: #825

Description of changes: Adds local macOS VM dev machine setup instructions.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@gj
Copy link
Contributor Author

gj commented Feb 27, 2019

Hi @dianpopa 👋

Is there anything else required here?

@acatangiu
Copy link
Contributor

@gj we hadn't had the chance yet to run your setup instructions on a Mac and validate they are correct. We'll get around to it soon, but it's currently low priority so bare with us.

@acatangiu acatangiu added Documentation: Usage Priority: Low Indicates that an issue or pull request should be resolved behind issues or pull requests labelled ` labels Mar 8, 2019
@acatangiu
Copy link
Contributor

@gj changes look good, please squash your commits in a single one. Howto here.

@gj
Copy link
Contributor Author

gj commented Mar 13, 2019

Squashed 'em real good @acatangiu !

acatangiu
acatangiu previously approved these changes Mar 13, 2019
@dhrgit
Copy link
Contributor

dhrgit commented Mar 13, 2019

I think it would be useful to make it more clear what it is that this guide is trying to achieve. I.e. it's not about installing Ubuntu on Vmware Fusion, but about setting up a nested virtualization capable Linux VM, with an example given for the Fusion/Ubuntu stack.

IMO, in its current form, it can lead the reader to understand that developing Firecracker on macOS is dependent on Fusion/Ubuntu.

E:
I'd start by describing the two requirements of developing Firecracker on macOS:

  • a nested virtualization capable hypervisor/VMM
  • a Linux VM (configured as per our getting started guide), running on top of that VMM

and then provide an example for such an environment in the Fusion/Ubuntu stack.

@CorbanR
Copy link

CorbanR commented Mar 18, 2019

Is VMware fusion a requirement? I'd be curious if Virtualbox would work(It supports Intel VT-x or AMD virtualization). I'm also betting a lot of the dev machine setup could be automated with something like vagrant, although maybe using vagrant is overkill.

@rn
Copy link
Contributor

rn commented Mar 18, 2019

AFAIK VirtualBox does not support nested virtualisation. VMware Fusion does and so does Parallels

@CorbanR
Copy link

CorbanR commented Mar 19, 2019

It appears it Virtualbox does support nested virtualization as for 6.0 (which is fairly recent).
https://docs.oracle.com/cd/E97728_01/F12470/html/nested-virt-support.html the caveat being

 This feature is only available on host systems that use an AMD CPU. 

which probably doesn't make it the best choice right now unfortunately. I like VMware, i'm just also a fan of a free option if available.

@andreeaflorescu
Copy link
Contributor

@CorbanR I would also like to see documentation around running Firecracker on macOS using a free virtualization solution. What about adding an issue relating to this and then we can/somebody else can pick it up?

@dhrgit
Copy link
Contributor

dhrgit commented Mar 19, 2019

As far as I know, there is yet no free, nested-capable hypervisor for macOS. So far, the only options that I see for running Firecracker on macOS are Parallels (tested by me) and Fusion (I assume tested by @gj).

@gj
Copy link
Contributor Author

gj commented Mar 19, 2019

@dhrgit yes, I tested it — didn't write these steps blind 😄

FWIW, I used a free evaluation copy of Fusion.

I will try to find some time after work to add some text along the lines of #940 (comment).

Contributes towards #825

Squashed commit messages:
- Clarify that new macOS instructions pertain to VMware Fusion
- Add note per feedback in #940 (comment)

Signed-off-by: Gabe Jackson [[email protected]](mailto:[email protected])
@gj
Copy link
Contributor Author

gj commented Mar 21, 2019

@dhrgit - added a brief note that echoes the longer note at the top of the file.

@acatangiu acatangiu merged commit 5e07c0f into firecracker-microvm:master Mar 25, 2019
Copy link

@madhavtummala madhavtummala left a comment

Choose a reason for hiding this comment

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

Can't we use firecracker directly in macOS.
Virtualization inside virtualization would be a pain and would not give good performance.
Also, the title is a little misleading.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Priority: Low Indicates that an issue or pull request should be resolved behind issues or pull requests labelled `

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants