Opened 3 years ago
Last modified 3 years ago
#20822 new defect
Not able to import an OVA and converting the virtual disk to VDI
Reported by: | paaguti-u | Owned by: | |
---|---|---|---|
Component: | host support | Version: | VirtualBox 6.1.32 |
Keywords: | VboxManage, importtovdi | Cc: | |
Guest type: | Linux | Host type: | Linux |
Description
I'm using the official Ubuntu focal cloud image in ova format downloaded from
https://cloud-images.ubuntu.com/focal/current
I try to import it with the command:
VBoxManage import focal-server-cloudimg-amd64.ova --options importtovdi --vsys 0 --vmname focal-osm11 --memory 8192 --cpus 2 --eula accept --unit 9 --ignore
Note: I use the importtovdi to be able to resize the disk
I get the following error
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100% Interpreting /home/paag/virt/vbox-cloud/focal-server-cloudimg-amd64.ova... OK. Disks: vmdisk1 10737418240 0 http://www.vmware.com/interfaces/specifications/vmdk.html#streamOptimized ubuntu-focal-20.04-cloudimg.vmdk 565177344 -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: "focal-osm11" 2: Suggested VM group "/" (change with "--vsys 0 --group <group>") 3: VM settings file name specified with --settingsfile: "/home/paag/VirtualBox VMs/focal-osm11/focal-osm11.vbox" 4: Suggested VM base folder "/home/paag/VirtualBox VMs" (change with "--vsys 0 --basefolder <path>") 5: Product (ignored): Ubuntu 20.04 Server (20220208) 6: No. of CPUs specified with --cpus: 2 7: Guest memory specified with --memory: 8192 MB 8: Network adapter: orig VM Network, config 3, extra type=Bridged 9: Floppy -- disabled 10: CD-ROM (disable with "--vsys 0 --unit 10 --ignore") 11: SCSI controller, type LsiLogic (change with "--vsys 0 --unit 11 --scsitype {BusLogic|LsiLogic}"; disable with "--vsys 0 --unit 11 --ignore") 12: IDE controller, type PIIX4 (disable with "--vsys 0 --unit 12 --ignore") 13: IDE controller, type PIIX4 (disable with "--vsys 0 --unit 13 --ignore") 14: Hard disk image: source image=ubuntu-focal-20.04-cloudimg.vmdk, target path=ubuntu-focal-20.04-cloudimg.vdi, controller=11;channel=0 (change target path with "--vsys 0 --unit 14 --disk path"; disable with "--vsys 0 --unit 14 --ignore") 0%...10%...20%...30%...40%...50%...60%...70%...80%...90%... Progress state: VBOX_E_INVALID_OBJECT_STATE VBoxManage: error: Appliance import failed VBoxManage: error: Storage for the medium '/home/paag/VirtualBox VMs/focal-osm11/ubuntu-focal-20.04-cloudimg.vdi' is not created VBoxManage: error: Details: code VBOX_E_INVALID_OBJECT_STATE (0x80bb0007), component ApplianceWrap, interface IAppliance VBoxManage: error: Context: "RTEXITCODE handleImportAppliance(HandlerArg*)" at line 1119 of file VBoxManageAppliance.cpp
Note:
See TracTickets
for help on using tickets.
Thanks for providing the complete command line and source of the OVA file. I'm not able to reproduce this issue using VirtualBox 6.1.32 on my Solaris host. This error message can come from a few different locations in the code so can you upload the VBoxSVC.log file which should hopefully shed some further light on the root cause? (It's in $HOME/.config/VirtualBox on Linux hosts).