MacBookPro更新到13后vagrant无法启动virtualBox

在更新到MacOS 13.0.1后,尝试使用vagrant 2.3.3和virtualBox 7.0.4启动虚拟机时遇到错误:IPAddr::AddressFamilyError。问题出现在`/opt/vagrant/embedded/gems/2.3.3/gems/ipaddr-1.2.4/lib/ipaddr.rb:594`行,提示address family必须被指定。可能的原因是Vagrant或VirtualBox的配置与新系统不兼容。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

MacOS 13.0.1
virtualBox 7.0.4-154605  下载地址


vagrant 2.3.3   下载地址

/opt/vagrant/embedded/gems/2.3.3/gems/ipaddr-1.2.4/lib/ipaddr.rb:594:in `initialize': address family must be specified (IPAddr::AddressFamilyError)

vagrant up
Bringing machine 'single-01' up with 'virtualbox' provider...
==> single-01: Importing base box 'centos/7'...
==> single-01: Matching MAC address for NAT networking...
==> single-01: Checking if box 'centos/7' version '2004.01' is up to date...
==> single-01: Setting the name of the VM: vagrant_centos_single_single-01_1669821765082_45806
==> single-01: Clearing any previously set network interfaces...
==> single-01: Destroying VM and associated drives...
Traceback (most recent call last):
    125: from /opt/vagrant/embedded/gems/2.3.3/gems/vagrant-2.3.3/lib/vagrant/batch_action.rb:86:in `block (2 levels) in run'
    124: from /opt/vagrant/embedded/gems/2.3.3/gems/vagrant-2.3.3/lib/vagrant/machine.rb:203:in `action'
    123: from /opt/vagrant/embedded/gems/2.3.3/gems/vagrant-2.3.3/lib/vagrant/machine.rb:203:in `call'
    122: from /opt/vagrant/embedded/gems/2.3.3/gems/vagrant-2.3.3/lib/vagrant/environment.rb:631:in `lock'
    121: from /opt/vagrant/embedded/gems/2.3.3/gems/vagrant-2.3.3/lib/vagrant/machine.rb:217:in `block in action'
    120: from /opt/vagrant/embedded/gems/2.3.3/gems/vagrant-2.3.3/lib/vagrant/machine.rb:248:in `action_raw'
    119: from /opt/vagrant/embedded/gems/2.3.3/gems/vagrant-2.3.3/lib/vagrant/action/runner.rb:101:in `run'
    118: from /opt/vagrant/embedded/gems/2.3.3/gems/vagrant-2.3.3/lib/vagrant/util/busy.rb:19:in `busy'
    117: from /opt/vagrant/embedded/gems/2.3.3/gems/vagrant-2.3.3/lib/vagrant/action/runner.rb:101:in `block in run'
    116: from /opt/vagrant/embedded/gems/2.3.3/gems/vagrant-2.3.3/lib/vagrant/action/builder.rb:180:in `call'
    115: from /opt/vagrant/embedded/gems/2.3.3/gems/vagrant-2.3.3/lib/vagrant/action/warden.rb:48:in `call'
    114: from /opt/vagrant/embedded/gems/2.3.3/gems/vagrant-2.3.3/plugins/providers/virtualbox/action/check_virtualbox.rb:26:in `call'
    113: from /opt/vagrant/embedded/gems/2.3.3/gems/vagrant-2.3.3/lib/vagrant/action/warden.rb:48:in `call'
    112: from /opt/vagrant/embedded/gems/2.3.3/gems/vagrant-2.3.3/lib/vagrant/action/builtin/call.rb:53:in `call'
    111: from /opt/vagrant/embedded/gems/2.3.3/gems/vagrant-2.3.3/lib/vagrant/action/runner.rb:101:in `run'
    110: from /opt/vagrant/embedded/gems/2.3.3/gems/vagrant-2.3.3/lib/vagrant/util/busy.rb:19:in `busy'
    109: from /opt/vagrant/embedded/gems/2.3.3/gems/vagrant-2.3.3/lib/vagrant/action/runner.rb:101:in `block in run'
    108: from /opt/vagrant/embedded/gems/2.3.3/gems/vagrant-2.3.3/lib/vagrant/action/builder.rb:180:in `call'
    107: from /opt/vagrant/embedded/gems/2.3.3/gems/vagrant-2.3.3/lib/vagrant/action/warden.rb:48:in `call'
    106: from /opt/vagrant/embedded/gems/2.3.3/gems/vagrant-2.3.3/lib/vagrant/action/warden.rb:127:in `block in finalize_action'
    105: from /opt/vagrant/embedded/gems/2.3.3/gems/vagrant-2.3.3/lib/vagrant/action/warden.rb:48:in `call'
    104: from /opt/vagrant/e

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值