bacongravy / macinbox

Puts macOS in a Vagrant box
Other
662 stars 45 forks source link

Support for using created boxes with `mech` #26

Closed egandro closed 5 years ago

egandro commented 5 years ago

There is a 100% opensource driver for Vagrant <-> VMWare:

https://blog.kchung.co/mech-vagrant-with-vmware-integration-for-free/

This is the GIT Page:

https://github.com/mechboxes/mech

bacongravy commented 5 years ago

From what I can tell, the mech project is a substitute for needing Vagrant and the Vagrant VMware Desktop Provider. I haven't tried it myself.

The macinbox README is a little misleading; although Vagrant and the VMware provider are listed as dependencies, they are not actually used by macinbox. I included mention of them in the README for people who plan to boot the boxes and might not realize that Vagrant doesn't natively support VMware boxes.

Note that macinbox does put some customizations into the Vagrantfiles embedded in the created boxes, so the boxes may behave a little bit differently with mech than they do with vagrant.

If you've verified that mech is effective at booting macinbox boxes and would like to propose an addition to the README I'm happy to review a PR!

egandro commented 5 years ago

Can we add some flavour to the VMware creation and make it mech aware?

bacongravy commented 5 years ago

The customization that goes into the embedded Vagrantfiles manages whether or not the GUI is displayed and whether or not the window starts in fullscreen mode or not.

If you can determine what macinbox would need to do to create boxes that had that behavior with mech I'd be happy to consider it.

egandro commented 5 years ago

I really really want to have a full feature blown automatic setup for VM Boxes with XCode gitlab-runner, Applium on the iOS emulator and the Selenium for Safari.

Starting with 10.13 Apple makes this so hard to create the environment it via script :(

Currently I am evaluating multiple scenarios using the new Mac Mini 2018 with 32/65 GB.

1) Running native OSX (+ add VMs) 2) Running ESXi and having all Machines VMed

What are you doing with macinbox?

bacongravy commented 5 years ago

I use macinbox boxes as dev environments. I have a lot of small projects ongoing, and each project I work on is in a different VM. I wish you luck in getting your CI/CD box working.

If you know any tricks for automating the install of Xcode I'd love to hear them! That is still a manual step for me after I boot the boxes.

egandro commented 5 years ago

If you know any tricks for automating the install of Xcode I'd love to hear them! That is still a manual step for me after I boot the boxes.

Well... I do VNC "automatization" - this feels sooo ugly :(

Do you know a way of enabling VNC from CLI with a custom passwort?

Here my script:

` ########################### Screen Saver move 0 0 click 1 sleep 10

capture 001_start.png

########################### Login move 960 465 click 1 type {{ ADMIN_USER_PASSWORD }} key enter sleep 10

capture 002_after_login.png

########################### System Extensions Blocked Dialog (might be on our screen) move 1110 366 click 1 move 1110 388 click 1 type key esc sleep 10 `

egandro commented 5 years ago

Btw. for X-Code you can download the file "Xcode_10.1.xip" from apple.

You don't have to go with an Apple ID

egandro commented 5 years ago

This looks even better :)

https://github.com/josenk/vagrant-vmware-esxi

egandro commented 5 years ago

I am closing this.

the vagrand-vmware-esxi works perfect.

It seams that we need a way to ad a specific darwin iso.