Marinela,

*sorry for top-posting, I'm on my cellphone*

I suggest you post one issue at a time.

I suggest Vagrant related questions should be posted in vagrant related
forums and mailing lists (or Reddit), I suspect you will get faster
answers.

The first issue you have is with
Importing an ova file into vbox using vboxmanage.

Have you tried typing the import manually from the command line?

Do you still get the
VBoxManage.exe: error: Context: "enum RTEXITCODE __cdecl
handleImportAppliance(struct HandlerArg *)" at line 1416 of file
VBoxManageAppliance.cpp
error?

FC

On Sun, Nov 26, 2023, 01:41 Marinela Selseth via VBox-users-community <
[email protected]> wrote:

> Created Ubuntu 20.04 VB base in Virtual Box.
>
> Package it with vagrant, it is an ovf, vmdk disk.
>
>
>
> -rw-r--r-- 1 selsetm 1049089        516 Nov 25 10:35 Vagrantfile
>
> -rw-r--r-- 1 selsetm 1049089 5678622720 Nov 25 10:35 box-disk001.vmdk
>
> -rw-r--r-- 1 selsetm 1049089      10118 Nov 25 10:35 box.ovf
>
> -rw-r--r-- 1 selsetm 1049089         25 Nov 25 10:35 metadata.json
>
>
>
> Using vagrant up to create a new VM based on the base.
>
>
>
> Vagrant up  fails when importing the base box. Under the hood it uses
> VBoxManage import.
>
>
>
> Bringing machine 'default' up with 'virtualbox' provider...
>
> ==> default: Importing base box 'entrust/20.04.6-desktop'...
>
> There was an error while executing `VBoxManage`, a CLI used by Vagrant
>
> for controlling VirtualBox. The command and stderr is shown below.
>
>
>
> Command: ["import",
> \\\\?\\C:\\Users\\selsetm\\.vagrant.d\\boxes\\entrust-VAGRANTSLASH-20.04.6-desktop\\1.0.1\\virtualbox\\box.ovf,
> "--vsys", "0", "--vmname", "Ubuntu20.04.6-desktop-base-1.0.1
> 1_1700963908828_64897", "--vsys", "0", "--unit", "14", "--disk",
> "C:/Users/selsetm/VirtualBox VMs/Ubuntu20.04.6-desktop-base-1.0.1
> 1_1700963908828_64897/box-disk001.vmdk"]
>
>
>
> Stderr: 0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
>
> Interpreting
> \\?\C:\Users\selsetm\.vagrant.d\boxes\entrust-VAGRANTSLASH-20.04.6-desktop\1.0.1\virtualbox\box.ovf
> ...
>
> OK.
>
> 0%...E_INVALIDARG
>
> VBoxManage.exe: error: Appliance import failed
>
> VBoxManage.exe: error: Code E_INVALIDARG (0x80070057) (extended info not
> available)
>
> VBoxManage.exe: error: Context: "enum RTEXITCODE __cdecl
> handleImportAppliance(struct HandlerArg *)" at line 1416 of file
> VBoxManageAppliance.cpp
>
>
>
> +++
>
>
>
> Notes
>
>
>
>    - I have plenty of disk space.
>
> df
>
> Filesystem                                    1K-blocks       Used
> Available Use% Mounted on
>
> C:/Users/selsetm/AppData/Local/Programs/Git   989559804  641799376
> 347760428  65% /
>
>
>
>    - Ubuntu 18.04 seems to work, using similar process
>
>
>
>    - Using VB 7.0.6, vagrant 2.3.4
>
>
>
>    - After the error, noticed there is a new VM directory created under 
> ~/VirtualBox
>    VMs
>
> drwxr-xr-x 1 selsetm 1049089 0 Nov 25 00:58
> Ubuntu20.04.6-desktop-base-1.0.1/
>
> drwxr-xr-x 1 selsetm 1049089 0 Nov 25 20:30 'Ubuntu20.04.6-desktop-base-1.0.1
> 1_1700963908828_64897'/
>
>
>
> Is this expected?
>
>
>
>    - Unable to run vagrant under git bash at the moment because some IT
>    issues with my Windows 10, so I am limited to run vagrant up from git cmd
>
>
>
>    - Typically what I do is create a new VM from the base via vagrant up,
>    debug it, destroy it, then recreate it using vagrant up
>
> Noting that vagrant up worked few times until it started to fail with
> error 0x80070057.
>
> Is there a cleanup I need to do that I am missing now?
>
>
>
> Steps below on how I destroy the VM:
>
> vagrant destroy -f
>
> rm -fr .vagrant
>
>
>
> The failure started after the VM froze, so I closed it and then destroy it.
>
> Not sure how relevant this is.
>
>
>
>    - Running the import command manually from git cmd I get:
>
> "c:\Program Files\Oracle\VirtualBox\VBoxManage" import
> "C:/Users/selsetm/.vagrant.d/boxes/entrust-VAGRANTSLASH-20.04.6-desktop/1.0.1/virtualbox/box.ovf"
> --vsys 0 --vmname "Ubuntu20.04.6-desktop-base-1.0.1 1_1700963908828_64897"
> --vsys 0 --unit 14 --disk "C:/Users/selsetm/VirtualBox
> VMs/Ubuntu20.04.6-desktop-base-1.0.1 1_1700963908828_64897/box-disk001.vmdk"
>
> 0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
>
> Interpreting
> C:\Users\selsetm\.vagrant.d\boxes\entrust-VAGRANTSLASH-20.04.6-desktop\1.0.1\virtualbox\box.ovf...
>
> OK.
>
> Disks:
>
>   vmdisk1       107374182400    -1
> http://www.vmware.com/interfaces/specifications/vmdk.html#streamOptimized
> box-disk001.vmdk        -1      -1
>
>
>
> Virtual system 0:
>
> 0: Suggested OS type: "Ubuntu_64"
>
>     (change with "--vsys 0 --ostype <type>"; use "list ostypes" to list
> all possible values)
>
> 1: VM name specified with --vmname: "Ubuntu20.04.6-desktop-base-1.0.1
> 1_1700963908828_64897"
>
> 2: Suggested VM group "/"
>
>     (change with "--vsys 0 --group <group>")
>
> 3: Suggested VM settings file name "C:\Users\selsetm\VirtualBox
> VMs\Ubuntu20.04.6-desktop-base-1.0.1 1\Ubuntu20.04.6-desktop-base-1.0.1
> 1.vbox"
>
>     (change with "--vsys 0 --settingsfile <filename>")
>
> 4: Suggested VM base folder "C:\Users\selsetm\VirtualBox VMs"
>
>     (change with "--vsys 0 --basefolder <path>")
>
> 5: Number of CPUs: 6
>
>     (change with "--vsys 0 --cpus <n>")
>
> 6: Guest memory: 8192 MB
>
>     (change with "--vsys 0 --memory <MB>")
>
> 7: Sound card (appliance expects "", can change on import)
>
>     (disable with "--vsys 0 --unit 7 --ignore")
>
> 8: USB controller
>
>     (disable with "--vsys 0 --unit 8 --ignore")
>
> 9: Network adapter: orig NAT, config 3, extra slot=0;type=NAT
>
> 10: CD-ROM
>
>     (disable with "--vsys 0 --unit 10 --ignore")
>
> 11: IDE controller, type PIIX4
>
>     (disable with "--vsys 0 --unit 11 --ignore")
>
> 12: IDE controller, type PIIX4
>
>     (disable with "--vsys 0 --unit 12 --ignore")
>
> 13: SATA controller, type AHCI
>
>     (disable with "--vsys 0 --unit 13 --ignore")
>
> 14: Hard disk image specified with --disk: source image=box-disk001.vmdk,
> target path=C:/Users/selsetm/VirtualBox
> VMs/Ubuntu20.04.6-desktop-base-1.0.1
> 1_1700963908828_64897/box-disk001.vmdk, controller=13;port=0
>
>     (change controller with "--vsys 0 --unit 14 --controller <index>";
>
>     change controller port with "--vsys 0 --unit 14 --port <n>")
>
> 0%...E_INVALIDARG
>
> VBoxManage.exe: error: Appliance import failed
>
> VBoxManage.exe: error: Code E_INVALIDARG (0x80070057) (extended info not
> available)
>
> VBoxManage.exe: error: Context: "enum RTEXITCODE __cdecl
> handleImportAppliance(struct HandlerArg *)" at line 1416 of file
> VBoxManageAppliance.cpp
>
>
>
> +++ End Notes
>
>
>
> How can I fix this issue?
>
>
>
> Thanks
>
>
> *Any email and files/attachments transmitted with it are intended solely
> for the use of the individual or entity to whom they are addressed. If this
> message has been sent to you in error, you must not copy, distribute or
> disclose of the information it contains. Please notify Entrust immediately
> and delete the message from your system.*
> _______________________________________________
> VBox-users-community mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/vbox-users-community
> _______________________________________________
> Unsubscribe:  mailto:[email protected]
> ?subject=unsubscribe
>
_______________________________________________
VBox-users-community mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/vbox-users-community
_______________________________________________
Unsubscribe:  
mailto:[email protected]?subject=unsubscribe

Reply via email to