Aerospike: VBoxManage: ошибка: не удалось создать адаптер только для хоста

Я запускаю следующую команду vagrant,

vagrant up



Bringing machine 'default' up with 'virtualbox' provider...
==> default: Checking if box 'aerospike/aerospike-ce' is up to date...
==> default: Clearing any previously set network interfaces...
There was an error while executing `VBoxManage`, a CLI used by Vagrant
for controlling VirtualBox. The command and stderr is shown below.

Command: ["hostonlyif", "create"]

Stderr: 0%...
Progress state: NS_ERROR_FAILURE
VBoxManage: error: Failed to create the host-only adapter
VBoxManage: error: VBoxNetAdpCtl: Error while adding new interface: failed to open /dev/vboxnetctl: No such file or directory
VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component HostNetworkInterfaceWrap, interface IHostNetworkInterface
VBoxManage: error: Context: "RTEXITCODE handleCreate(HandlerArg *)" at line 94 of file VBoxManageHostonly.cpp

при запуске команды up возникает указанная выше ошибка.

Версия Vagrant: Vagrant 2.0.4
Версия VirtualBox: 5.2.10r122088
ОС: mac osX

Обновление 1:
я переустановил виртуальный бокс, и теперь ошибка изменилась на приведенную ниже.

Bringing machine 'default' up with 'virtualbox' provider...
==> default: Checking if box 'aerospike/aerospike-ce' is up to date...
==> default: Clearing any previously set forwarded ports...
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
    default: Adapter 1: nat
    default: Adapter 2: hostonly
    default: Adapter 3: hostonly
==> default: Forwarding ports...
    default: 3000 (guest) => 3000 (host) (adapter 1)
    default: 8081 (guest) => 8081 (host) (adapter 1)
    default: 22 (guest) => 2222 (host) (adapter 1)
==> default: Running 'pre-boot' VM customizations...
==> default: Booting VM...
There was an error while executing `VBoxManage`, a CLI used by Vagrant
for controlling VirtualBox. The command and stderr is shown below.

Command: ["startvm", "a5ebe584-c9fa-42f4-a1b5-cff2c0bd441f", "--type", "headless"]

Stderr: VBoxManage: error: The virtual machine 'aerospike-vm_default_1524766631459_17780' has terminated unexpectedly during startup with exit code 1 (0x1)
VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component MachineWrap, interface IMachine

Журнальный файл:

VirtualBox: object created
00:00:00.160282 nspr-3   ERROR [COM]: aRC=VBOX_E_OBJECT_NOT_FOUND (0x80bb0001) aIID={85cd948e-a71f-4289-281e-0ca7ad48cd89} aComponent={SessionMachine} aText={No storage device attached to device slot 0 on port 1 of controller 'IDE Controller'}, preserve=false aResultDetail=0
00:00:00.160538 nspr-2   ERROR [COM]: aRC=VBOX_E_OBJECT_NOT_FOUND (0x80bb0001) aIID={85cd948e-a71f-4289-281e-0ca7ad48cd89} aComponent={SessionMachine} aText={No storage device attached to device slot 0 on port 1 of controller 'IDE Controller'}, preserve=false aResultDetail=0
00:00:00.160757 nspr-2   ERROR [COM]: aRC=VBOX_E_OBJECT_NOT_FOUND (0x80bb0001) aIID={85cd948e-a71f-4289-281e-0ca7ad48cd89} aComponent={SessionMachine} aText={No storage device attached to device slot 1 on port 1 of controller 'IDE Controller'}, preserve=false aResultDetail=0
00:00:00.160945 nspr-2   ERROR [COM]: aRC=VBOX_E_OBJECT_NOT_FOUND (0x80bb0001) aIID={85cd948e-a71f-4289-281e-0ca7ad48cd89} aComponent={SessionMachine} aText={No storage device attached to device slot 1 on port 1 of controller 'IDE Controller'}, preserve=false aResultDetail=0
00:00:00.172916 nspr-3   ERROR [COM]: aRC=NS_ERROR_FAILURE (0x80004005) aIID={85cd948e-a71f-4289-281e-0ca7ad48cd89} aComponent={SessionMachine} aText={This machine does not have any snapshots}, preserve=false aResultDetail=0
00:00:00.238766 nspr-3   ERROR [COM]: aRC=VBOX_E_OBJECT_NOT_FOUND (0x80bb0001) aIID={85cd948e-a71f-4289-281e-0ca7ad48cd89} aComponent={SessionMachine} aText={No storage device attached to device slot 0 on port 1 of controller 'IDE Controller'}, preserve=false aResultDetail=0
00:00:00.239024 nspr-2   ERROR [COM]: aRC=VBOX_E_OBJECT_NOT_FOUND (0x80bb0001) aIID={85cd948e-a71f-4289-281e-0ca7ad48cd89} aComponent={SessionMachine} aText={No storage device attached to device slot 0 on port 1 of controller 'IDE Controller'}, preserve=false aResultDetail=0
00:00:00.239219 nspr-2   ERROR [COM]: aRC=VBOX_E_OBJECT_NOT_FOUND (0x80bb0001) aIID={85cd948e-a71f-4289-281e-0ca7ad48cd89} aComponent={SessionMachine} aText={No storage device attached to device slot 1 on port 1 of controller 'IDE Controller'}, preserve=false aResultDetail=0
00:00:00.239424 nspr-2   ERROR [COM]: aRC=VBOX_E_OBJECT_NOT_FOUND (0x80bb0001) aIID={85cd948e-a71f-4289-281e-0ca7ad48cd89} aComponent={SessionMachine} aText={No storage device attached to device slot 1 on port 1 of controller 'IDE Controller'}, preserve=false aResultDetail=0
00:00:00.251936 nspr-3   ERROR [COM]: aRC=NS_ERROR_FAILURE (0x80004005) aIID={85cd948e-a71f-4289-281e-0ca7ad48cd89} aComponent={SessionMachine} aText={This machine does not have any snapshots}, preserve=false aResultDetail=0
00:00:00.316957 nspr-2   ERROR [COM]: aRC=VBOX_E_OBJECT_NOT_FOUND (0x80bb0001) aIID={85cd948e-a71f-4289-281e-0ca7ad48cd89} aComponent={SessionMachine} aText={No storage device attached to device slot 0 on port 1 of controller 'IDE Controller'}, preserve=false aResultDetail=0
00:00:00.317204 nspr-3   ERROR [COM]: aRC=VBOX_E_OBJECT_NOT_FOUND (0x80bb0001) aIID={85cd948e-a71f-4289-281e-0ca7ad48cd89} aComponent={SessionMachine} aText={No storage device attached to device slot 0 on port 1 of controller 'IDE Controller'}, preserve=false aResultDetail=0
00:00:00.317389 nspr-3   ERROR [COM]: aRC=VBOX_E_OBJECT_NOT_FOUND (0x80bb0001) aIID={85cd948e-a71f-4289-281e-0ca7ad48cd89} aComponent={SessionMachine} aText={No storage device attached to device slot 1 on port 1 of controller 'IDE Controller'}, preserve=false aResultDetail=0
00:00:00.317561 nspr-3   ERROR [COM]: aRC=VBOX_E_OBJECT_NOT_FOUND (0x80bb0001) aIID={85cd948e-a71f-4289-281e-0ca7ad48cd89} aComponent={SessionMachine} aText={No storage device attached to device slot 1 on port 1 of controller 'IDE Controller'}, preserve=false aResultDetail=0
00:00:00.330797 nspr-2   ERROR [COM]: aRC=NS_ERROR_FAILURE (0x80004005) aIID={85cd948e-a71f-4289-281e-0ca7ad48cd89} aComponent={SessionMachine} aText={This machine does not have any snapshots}, preserve=false aResultDetail=0

person swayamraina    schedule 25.04.2018    source источник
comment
Похоже, это проблема с виртуалкой. Какая версия виртуального бокса у вас установлена? Какая ОС у вас работает? См.: github.com/hashicorp/vagrant/issues/7212, а также stackoverflow.com /вопросы/21069908/   -  person lvolmar    schedule 26.04.2018
comment
Вы удалили все предыдущие версии виртуального бокса и сначала перезагрузились. см. бродячую проблему: github.com/hashicorp/vagrant/issues/2418   -  person lvolmar    schedule 26.04.2018
comment
Привет, вы можете проверить файл журнала для наблюдаемой проблемы   -  person swayamraina    schedule 01.05.2018
comment
Пользователь root может не иметь информации о папке .VirtualBox в домашнем каталоге пользователя. Рекомендуемым решением может быть установка пути VBOX_USER_HOME.   -  person lvolmar    schedule 02.05.2018
comment
вы имеете в виду установку пути в bash_profile или предоставление разрешений на чтение?   -  person swayamraina    schedule 02.05.2018
comment
Что я получаю из сообщения об ошибке, что к виртуальной машине не подключен диск. Но я добавил оптический диск с файлом .iso для загрузки системы.   -  person swayamraina    schedule 02.05.2018
comment
Я думаю, что вы правы с точки зрения невозможности доступа к диску. Похоже, что для виртуального бокса есть некоторые повреждения. Не могли бы вы попробовать удалить виртуальную машину из графического интерфейса виртуального бокса. а также из каталогов ~/VirtualBox\VMs/.   -  person lvolmar    schedule 03.05.2018


Ответы (1)


Для ошибки «Нет устройства хранения данных, подключенного к устройству» вы можете попробовать добавить контроллер IDE обратно. Предполагая, что произошло что-то, что повредило вашу конфигурацию.

Вот пример Vagrantfile:

кот

def provisioned?(vm_name='default', provider='virtualbox')  
  if ! File.exist?(".vagrant/machines/#{vm_name}/#{provider}/action_provision")
     vb.customize ["storagectl", :id, "--name", "IDE Controller", "--add", "ide"]
  end
end

Vagrant.configure("2") do |config|
  config.vm.box = "aerospike/aerospike-ce"
  config.vm.box_version = "4.0.0.5"
end

Команды, чтобы попробовать:

Удаление ВМ:

vagrant destroy

Запуск ВМ:

vagrant up --provider virtualbox

Если проблема не устранена, попробуйте удалить виртуальную машину из виртуального бокса и все кэшированные файлы в папке ~/VirtualBox\VMs/.

Пример:

vagrant up --provider virtualbox
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Importing base box 'aerospike/aerospike-ce'...
==> default: Matching MAC address for NAT networking...
==> default: Checking if box 'aerospike/aerospike-ce' is up to date...
==> default: Setting the name of the VM: tmp_default_1525381682916_49938
==> default: Fixed port collision for 3000 => 3000. Now on port 2221.
==> default: Fixed port collision for 8081 => 8081. Now on port 2223.
==> default: Fixed port collision for 22 => 2222. Now on port 2224.
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
    default: Adapter 1: nat
    default: Adapter 2: hostonly
==> default: Forwarding ports...
    default: 3000 (guest) => 2221 (host) (adapter 1)
    default: 8081 (guest) => 2223 (host) (adapter 1)
    default: 22 (guest) => 2224 (host) (adapter 1)
==> default: Running 'pre-boot' VM customizations...
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
    default: SSH address: 127.0.0.1:2224
    default: SSH username: vagrant
    default: SSH auth method: private key
==> default: Machine booted and ready!
[default] GuestAdditions 5.2.10 running --- OK.
==> default: Checking for guest additions in VM...
==> default: Configuring and enabling network interfaces...
    default: SSH address: 127.0.0.1:2224
    default: SSH username: vagrant
    default: SSH auth method: private key
==> default: Mounting shared folders...
    default: /vagrant => /private/tmp
person lvolmar    schedule 03.05.2018