我在哪里把$ enable_serial_logging标志放在vagrant中?

问题描述 投票:0回答:1

vm不断超频我的处理器。我读到我可以添加$enable_serial_logging = false标志来防止这个问题,但是我把它放在哪个文件中?

standard Vagrant file structure

logging vagrant virtual-machine cpu homestead
1个回答
1
投票

在config.rb中,您可以设置$enable_serial_logging=false

# Log the serial consoles of CoreOS VMs to log/
# Enable by setting value to true, disable with false
# WARNING: Serial logging is known to result in extremely high CPU usage with
# VirtualBox, so should only be used in debugging situations
$enable_serial_logging=false

见这里:https://gist.github.com/dalekurt/5c0dbaf26b96f4504011#file-config-rb-L49

© www.soinside.com 2019 - 2024. All rights reserved.