Closed advornic closed 9 years ago
Aah, looks like the path is the problem (the name of the folder representing the OS is missing):
# ls -l ztps-eos_20150120_023909-vbox/ztps-eos_20150120_023909.ovf
ls: ztps-eos_20150120_023909-vbox/ztps-eos_20150120_023909.ovf: No such file or directory
# ls -l **Fedora**/ztps-eos_20150120_023909-vbox/ztps-eos_20150120_023909.ovf
-rw------- 1 advornic staff 10722 Jan 20 03:07 Fedora/ztps-eos_20150120_023909-vbox/ztps-eos_20150120_023909.ovf
I suspect that if I ran this form within the Fedora folder, it would have succeeded. However, I think we should make this independent of that.
This issue is with this piece of code I didn't update:
def registerVbox(hyper, libDir, vmName, vmOS):
#Import the VM into Vbox
if hyper == "virtualbox":
cmd = "%s/vboxmanage" % libDir
vmPath = "%s-vbox/%s.ovf" % (vmName, vmName)
if vmOS == "fedora":
path = "Fedora/"
else:
path = "Ubuntu/"
print "Path: %s" % path
print "VM: %s" % vmPath
subprocess.call([ cmd, "import", vmPath ], cwd=path)
Adding this line should do it:
if (vmOS == "fedora" or vmOS == "eos"):
After manually loading the VM into VirtualBox manually though, everything seems to be ok.
Could this be another permissions issue?