PS C:\Users\rosar\Downloads\infra-exercise-main> vagrant up
Bringing machine 'node1' up with 'virtualbox' provider...
Bringing machine 'node2' up with 'virtualbox' provider...
Bringing machine 'node3' up with 'virtualbox' provider...
Bringing machine 'node4' up with 'virtualbox' provider...
Bringing machine 'node5' up with 'virtualbox' provider...
Bringing machine 'control' up with 'virtualbox' provider...
==> node1: Checking if box 'generic/rocky9' version '4.3.12' is up to date...
==> node1: Clearing any previously set forwarded ports...
==> node1: Clearing any previously set network interfaces...
==> node1: Preparing network interfaces based on configuration...
node1: Adapter 1: nat
node1: Adapter 2: hostonly
==> node1: Forwarding ports...
node1: 22 (guest) => 2222 (host) (adapter 1)
==> node1: Configuring storage mediums...
There was an error while executing VBoxManage, a CLI used by Vagrant
for controlling VirtualBox. The command and stderr is shown below.
Command: ["storageattach", "27ee9080-e242-4b2b-96a4-bd04e545e3b1", "--storagectl", "SATA Controller", "--port", "1", "--device", "0", "--type", "hdd", "--medium", "C:\\Users\\rosar\\VirtualBox VMs\\node1\\sdb.vdi", "--comment", "This disk is managed externally by Vagrant. Removing or adjusting settings could potentially cause issues with Vagrant."]
Stderr: VBoxManage.exe: error: Failed to create medium lock list for 'C:\Users\rosar\VirtualBox VMs\node1\sdb.vdi'
VBoxManage.exe: error: Details: code E_FAIL (0x80004005), component MediumWrap, interface IMedium, callee IUnknown
VBoxManage.exe: error: Context: "COMSETTER(Description)(bstrComment.raw())" at line 727 of file VBoxManageStorageController.cpp
VBoxManage.exe: error: Could not open the medium 'C:\Users\rosar\VirtualBox VMs\node1\sdb.vdi'.
VBoxManage.exe: error: VD: error VERR_FILE_NOT_FOUND opening image file 'C:\Users\rosar\VirtualBox VMs\node1\sdb.vdi' (VERR_FILE_NOT_FOUND)
VBoxManage.exe: error: Details: code E_FAIL (0x80004005), component MediumWrap, interface IMedium, callee IUnknown
VBoxManage.exe: error: Context: "AttachDevice(Bstr(pszCtl).raw(), port, device, DeviceType_HardDisk, pMedium2Mount)" at line 786 of file VBoxManageStorageController.cpp
PS C:\Users\rosar\Downloads\infra-exercise-main> vagrant destroy -f
==> control: VM not created. Moving on...
==> node5: VM not created. Moving on...
==> node4: VM not created. Moving on...
==> node3: VM not created. Moving on...
==> node2: VM not created. Moving on...
==> node1: Destroying VM and associated drives...
PS C:\Users\rosar\Downloads\infra-exercise-main> vagrant up
Bringing machine 'node1' up with 'virtualbox' provider...
Bringing machine 'node2' up with 'virtualbox' provider...
Bringing machine 'node3' up with 'virtualbox' provider...
Bringing machine 'node4' up with 'virtualbox' provider...
Bringing machine 'node5' up with 'virtualbox' provider...
Bringing machine 'control' up with 'virtualbox' provider...
==> node1: Importing base box 'generic/rocky9'...
==> node1: Matching MAC address for NAT networking...
==> node1: Checking if box 'generic/rocky9' version '4.3.12' is up to date...
==> node1: Setting the name of the VM: node1
==> node1: Clearing any previously set network interfaces...
==> node1: Preparing network interfaces based on configuration...
node1: Adapter 1: nat
node1: Adapter 2: hostonly
==> node1: Forwarding ports...
node1: 22 (guest) => 2222 (host) (adapter 1)
==> node1: Configuring storage mediums...
There was an error while executing VBoxManage, a CLI used by Vagrant
for controlling VirtualBox. The command and stderr is shown below.
Command: ["storageattach", "5c6d61c2-5122-4db9-8157-92b3b1b7b2d8", "--storagectl", "SATA Controller", "--port", "1", "--device", "0", "--type", "hdd", "--medium", "C:\\Users\\rosar\\VirtualBox VMs\\node1\\sdb.vdi", "--comment", "This disk is managed externally by Vagrant. Removing or adjusting settings could potentially cause issues with Vagrant."]
Stderr: VBoxManage.exe: error: Failed to create medium lock list for 'C:\Users\rosar\VirtualBox VMs\node1\sdb.vdi'
VBoxManage.exe: error: Details: code E_FAIL (0x80004005), component MediumWrap, interface IMedium, callee IUnknown
VBoxManage.exe: error: Context: "COMSETTER(Description)(bstrComment.raw())" at line 727 of file VBoxManageStorageController.cpp
VBoxManage.exe: error: Could not open the medium 'C:\Users\rosar\VirtualBox VMs\node1\sdb.vdi'.
VBoxManage.exe: error: VD: error VERR_FILE_NOT_FOUND opening image file 'C:\Users\rosar\VirtualBox VMs\node1\sdb.vdi' (VERR_FILE_NOT_FOUND)
VBoxManage.exe: error: Details: code E_FAIL (0x80004005), component MediumWrap, interface IMedium, callee IUnknown
VBoxManage.exe: error: Context: "AttachDevice(Bstr(pszCtl).raw(), port, device, DeviceType_HardDisk, pMedium2Mount)" at line 786 of file VBoxManageStorageController.cpp