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
OS : mac osX

อัปเดต 1:
ฉันติดตั้ง virtualbox ใหม่แล้ว และตอนนี้ข้อผิดพลาดได้อัปเดตเป็นอันด้านล่าง

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
ดูเหมือนว่านี่เป็นปัญหาของ virtualbox คุณติดตั้ง virtualbox เวอร์ชันใด ระบบปฏิบัติการใดที่คุณใช้อยู่? โปรดดู: github.com/hashicorp/vagrant/issues/7212 และ stackoverflow.com /คำถาม/21069908/   -  person lvolmar    schedule 26.04.2018
comment
คุณได้ถอนการติดตั้ง virtualbox เวอร์ชันก่อนหน้าทั้งหมดแล้วรีบูทก่อนหรือไม่ โปรดดูปัญหาคนเร่ร่อน: github.com/hashicorp/vagrant/issues/2418   -  person lvolmar    schedule 26.04.2018
comment
สวัสดี คุณสามารถตรวจสอบไฟล์บันทึกสำหรับปัญหาที่พบได้หรือไม่   -  person swayamraina    schedule 01.05.2018
comment
ผู้ใช้รูทอาจไม่มีข้อมูลไปยังโฟลเดอร์ .VirtualBox ในโฮมไดเร็กทอรีของผู้ใช้ การตั้งค่าเส้นทาง VBOX_USER_HOME อาจเป็นการแก้ไขที่แนะนำ   -  person lvolmar    schedule 02.05.2018
comment
คุณหมายถึงการตั้งค่าเส้นทางใน bash_profile หรือให้สิทธิ์ในการอ่าน?   -  person swayamraina    schedule 02.05.2018
comment
สิ่งที่ฉันได้รับจากข้อความแสดงข้อผิดพลาดว่าไม่มีดิสก์ต่ออยู่กับ VM แต่ฉันได้เพิ่มออปติคัลดิสก์ด้วยไฟล์ .iso สำหรับการบูตระบบ   -  person swayamraina    schedule 02.05.2018
comment
ฉันคิดว่าคุณถูกต้องในแง่ของไม่สามารถเข้าถึงดิสก์ได้ .. ดูเหมือนว่าจะมีความเสียหายบางอย่างสำหรับ virtualbox vm คุณช่วยลองลบ VM จาก virtualbox GUI ได้ไหม และจาก ~/VirtualBox\ VMs/ ไดเร็กทอรี   -  person lvolmar    schedule 03.05.2018


คำตอบ (1)


สำหรับข้อผิดพลาด "ไม่มีอุปกรณ์จัดเก็บข้อมูลต่ออยู่กับอุปกรณ์" คุณสามารถลองเพิ่มคอนโทรลเลอร์ IDE กลับเข้าไปได้ สมมติว่ามีบางอย่างเกิดขึ้นซึ่งทำให้การกำหนดค่าของคุณเสียหาย

นี่คือตัวอย่าง Vagrantfile:

แมว 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

คำสั่งที่ควรลอง:

การลบ VM:

vagrant destroy

การเริ่มต้น VM:

vagrant up --provider virtualbox

หากปัญหายังคงอยู่ คุณสามารถลองลบ VM ออกจาก 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