Comments (7)
How much memory have you allocated to your VMs? At the bare minimum I recommend at least 2GB of RAM - I usually only see this problem in ESXi boxes that try to constrain memory more than that.
from macos.
I have 4GB dedicated to the macOS Sierra 10.12.0 and 10.12.1 VMs.
The VM runs fine for 10s then pauses for 10s, the pattern is very stable, so I think it is not memory pressure but something else, something is triggering the VM to lock up, but then it comes good again, and this keeps repeating.
from macos.
How many CPU cores are configured in the Vagrantfile?
Does it also freeze when only 1 core is used?
from macos.
Good question. I'll check this out and post back.
from macos.
from macos.
I had a similar issue using Vagrant + VMWare Fusion for our macOS boxes. My Vagrantfile
explicitly set the ram to 2048 MB but didn't set the number of cpus. Once I set the cpus to 2, the problem went away.
For posterity here is my working Vagrantfile
:
ENV['VAGRANT_DEFAULT_PROVIDER'] = "vmware_fusion"
Vagrant.configure("2") do |config|
config.vm.provider "vmware_fusion" do |vb|
vb.memory = "2048"
vb.cpus = "2"
end
end
from macos.
Thanks for the tip regarding number of CPUs. I checked and I had it set to 1 socket x 1 core == 1 logical CPU. I am now testing 1 socket x 2 cores == 2 logical CPUs. This is working well, boot up is much faster and I no longer get the 10 seconds of freezing. I will update my Packer templates to ensure i set vCPUs to 2.
Based on this it appears that prior to 10.12 Sierra, OSX was fine with 1 vCPU, but on 10.12 Sierra (and my guess is going forward but time will tell) 2 vCPUs is needed to prevent severe performance degradation.
from macos.
Related Issues (19)
- Minimize.sh script fails OSX builds HOT 2
- Build fails with vmware-iso on ESXi
- Running make results in error on Yosemite HOT 1
- Security Update available on 10.10 HOT 1
- os type issue on VirtualBox 5.1.14 and macOS Sierra 10.12
- Installing XCode 6.4 on 10.10
- prepare_iso.sh not working with "Install macOS 10.13 Beta.app" HOT 3
- The package "veewee-config.pkg" is not signed. Build fails. MacOS 10.12.5 HOT 3
- Error removing temporary script (During cleanup of StepDownloadGuestAdditions) HOT 1
- Guru Alerts from El Capitan / Yosemite Builds
- Update README to indicate that "Install OS X [osx_version_name].app" is expected in a specific directory HOT 1
- Parallels/VMWare provisions scripts configured to run on VirtualBox
- Successful Sierra build gets BSD-based guests error w. default Vagrantfile HOT 1
- High Sierra HOT 3
- SSH handshake err: ssh: handshake failed: EOF HOT 1
- Boxcutter hangs at "==> vmware-iso: Waiting for SSH to become available..." HOT 2
- setting CM_VERSION botches the packer command HOT 1
- Make virtualbox/osx109-desktop error HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from macos.