This posting is for the issue with VBoxManage import step. Everything else is 
context how I get in the failure state.
Yes, tried the import step manually.
Snippet below from the original posting:

+++


  *   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<https://urldefense.com/v3/__http:/www.vmware.com/interfaces/specifications/vmdk.html*streamOptimized__;Iw!!FJ-Y8qCqXTj2!YKowZxYF2L-UCjxKoDMCvIYymsZ3i9rUauONubnIcS8YqCa3k1FA-M9Y0DDknolM3HBEoHtOZzV3PotjUX08$>
       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
+++

Marinela Selseth
marinela.sels...@entrust.com<mailto:marinela.sels...@entrust.com>
Entrust Datacard
1187 Park Place
Shakopee, MN 55379

From: Fernando Cassia <fcas...@gmail.com>
Sent: Sunday, November 26, 2023 3:29 AM
To: Community mailing list of VirtualBox users 
<vbox-users-community@lists.sourceforge.net>
Subject: [EXTERNAL] Re: [VBox-users] Unable to import a Virtual Box based on 
Ubuntu 20.04, from Windows 10

Most likely one of these: 1. Disk space issue Or  2. VM file you are trying to 
import already exists. You should write your vagrant code - if possible to 
check for these conditions as Vbox does not. See this bug report  https: //www. 
virtualbox. org/ticket/18343Hope

Most likely one of these:

1. Disk space issue
Or
2. VM file you are trying to import already exists.

You should write your vagrant code - if possible to check for these conditions 
as Vbox does not.

See this bug report
https://www.virtualbox.org/ticket/18343<https://urldefense.com/v3/__https:/www.virtualbox.org/ticket/18343__;!!FJ-Y8qCqXTj2!YKowZxYF2L-UCjxKoDMCvIYymsZ3i9rUauONubnIcS8YqCa3k1FA-M9Y0DDknolM3HBEoHtOZzV3Pr7WUKXe$>

Hope this helps
FC

On Sun, Nov 26, 2023, 01:41 Marinela Selseth via VBox-users-community 
<vbox-users-community@lists.sourceforge.net<mailto:vbox-users-community@lists.sourceforge.net>>
 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<file://%3f//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<file://%3f/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<https://urldefense.com/v3/__http:/www.vmware.com/interfaces/specifications/vmdk.html*streamOptimized__;Iw!!FJ-Y8qCqXTj2!YKowZxYF2L-UCjxKoDMCvIYymsZ3i9rUauONubnIcS8YqCa3k1FA-M9Y0DDknolM3HBEoHtOZzV3PotjUX08$>
       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
VBox-users-community@lists.sourceforge.net<mailto:VBox-users-community@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/vbox-users-community<https://urldefense.com/v3/__https:/lists.sourceforge.net/lists/listinfo/vbox-users-community__;!!FJ-Y8qCqXTj2!YKowZxYF2L-UCjxKoDMCvIYymsZ3i9rUauONubnIcS8YqCa3k1FA-M9Y0DDknolM3HBEoHtOZzV3PhXpc2Xr$>
_______________________________________________
Unsubscribe:  
mailto:vbox-users-community-requ...@lists.sourceforge.net<mailto:vbox-users-community-requ...@lists.sourceforge.net>?subject=unsubscribe
_______________________________________________
VBox-users-community mailing list
VBox-users-community@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/vbox-users-community
_______________________________________________
Unsubscribe:  
mailto:vbox-users-community-requ...@lists.sourceforge.net?subject=unsubscribe

Reply via email to