VirtualBox

14 年 前 建立

8 年 前 結束

#8621 closed defect (obsolete)

Broken import of the machine from OVA/OVF container by vboxjws.jar on the linux host running VirtualBox 4.0.4

回報者: Anton 負責人:
元件: virtual disk 版本: VirtualBox 4.0.4
關鍵字: vboxjws import media 副本:
Guest type: Windows Host type: Linux

描述 (由 aeichner 作最後更新)

After the import operation of the machine from OVA container with the help of Java API on the linux host running VirtualBox 4.0.4 the imported machine does not have its disks. This bug doesn't reproduces on the windows host and early VirtualBox versions. Here is part of code which extracts the machine from container:

IAppliance app = vbox.createAppliance(); IProgress prog = app.read("/home/vboxuser/container.ova"); prog.waitForCompletion(-1); app.interpret(); List<String> warn = app.getWarnings(); for (String w : warn) System.out.println("Warning: " + w); prog = app.importMachines(); prog.waitForCompletion(-1);

更動歷史 (2)

comment:1 14 年 前Anton 編輯

Here is workaround:

IMachine created_vm = vbox.findMachine(name); List<IMediumAttachment> mediums = created_vm.getMediumAttachments(); for (IMediumAttachment a : mediums) {

IMedium medium = a.getMedium(); if (medium != null) medium.refreshState();

}

But, I've done enough tests and came to the conclusion that this but is not constant.

comment:2 8 年 前aeichner 編輯

描述: 修改 (差異)
狀態: newclosed
處理結果: obsolete

Closing as obsolete, please reopen if still relevant.

注意: 瀏覽 TracTickets 來幫助您使用待辦事項功能

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette