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

Could I mech up multiple machines with a single Mechfile? #47

Open
lochuan opened this issue Aug 6, 2018 · 7 comments
Open

Could I mech up multiple machines with a single Mechfile? #47

lochuan opened this issue Aug 6, 2018 · 7 comments

Comments

@lochuan
Copy link

lochuan commented Aug 6, 2018

No description provided.

@ColdHeat
Copy link
Collaborator

ColdHeat commented Aug 6, 2018

Don't believe this is possible in the current implementation. Mechfiles don't really refer to multiple VMs/boxes. Not sure if it even makes sense to do so.

@lochuan
Copy link
Author

lochuan commented Aug 6, 2018

It's so tedious every time when I try to set up a distribution system emulation environment. It saves a lot since I found Vagrant, but the vm booting time in Vagrant is so slow, the performance is also very poor when I take Vagrant with VirtualBox. According to my feeling, the booting time in combination of mech box and VMware Fusion is at least 3x faster than Vagrant with VirtualBox. Hope the multi-machine feature appearing in up coming version.

@derhornspieler
Copy link

I 2nd that feature for multi boxes within mechfile

@derhornspieler
Copy link

derhornspieler commented Aug 14, 2018

For time being I've just created individual directories for each box and run mechfile via mech init in each directory. Seems to be working fine so far. I agree with the faster performance. Well done ColdHeat!

@Kronuz
Copy link
Collaborator

Kronuz commented Aug 14, 2018

To support multiple Mech boxes we need to change the internal directory where the boxes are put. I believe we can simply add an extra layer inside .mech, instead of uncompressing directly there. About configuration, I think we could make it so Mechfile also supports an array of objects, not only object. I’ll see if I get the time to work on this

@mkinney
Copy link

mkinney commented Jan 5, 2020

Sharing a repo that shows how you can have Mechfiles in separate directories: https://github.com/mkinney/multiple-mech

@mkinney
Copy link

mkinney commented Feb 1, 2020

I mis-understood this issue. The repo above shows how to have a single instance of various different images - not multiple instances of the same image.

@mkinney mkinney mentioned this issue Feb 14, 2020
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

5 participants