Code Monkey home page Code Monkey logo

Comments (10)

jbremer avatar jbremer commented on July 21, 2024

Oh, forgot to reply here, sorry. Did you already resolve this issue in the meantime?
It would appear there's an issue with the returned json.. :)
Can you reproduce this issue?

from vmcloak.

Liikt avatar Liikt commented on July 21, 2024

This issue always happens when i try to install adobe. I tried it several times and i always had this happen. But no i sadly did not resolve it in the meantime. I think i tried it with office. I am not sure on this tho. I can tell you more tomorrow.

from vmcloak.

Liikt avatar Liikt commented on July 21, 2024

Okey so office produces the same kind of error. So i guess the other programs will too. After office I tried a different program and i got a different error this time

VBoxManage: error: Machine settings file '<dir>/.vmcloak/vms/foo/foo.vbox' already exists
VBoxManage: error: Details: code VBOX_E_FILE_ERROR (0x80bb0004), component MachineWrap, interface IMachine, callee nsISupports
VBoxManage: error: Context: "CreateMachine(bstrSettingsFile.raw(), bstrName.raw(), ComSafeArrayAsInParam(groups), bstrOsTypeId.raw(), createFlags.raw(), machine.asOutParam())" at line 272 of file VBoxManageMisc.cpp
ERROR:vmcloak.vm:[-] Error running command: Command '['/usr/bin/VBoxManage', 'createvm', '--register', '--name', 'foo', '--basefolder', '<dir>/.vmcloak/vms']' returned non-zero exit status 1
Traceback (most recent call last):
  File "/usr/local/bin/vmcloak-install", line 5, in <module>
    pkg_resources.run_script('VMCloak==0.3.10', 'vmcloak-install')
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 528, in run_script
    self.require(requires)[0].run_script(script_name, ns)
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 1394, in run_script
    execfile(script_filename, namespace, namespace)
  File "/usr/local/lib/python2.7/dist-packages/VMCloak-0.3.10-py2.7.egg/EGG-INFO/scripts/vmcloak-install", line 105, in <module>
    main()
  File "/usr/local/lib/python2.7/dist-packages/VMCloak-0.3.10-py2.7.egg/EGG-INFO/scripts/vmcloak-install", line 51, in main
    m.create_vm()
  File "/usr/local/lib/python2.7/dist-packages/VMCloak-0.3.10-py2.7.egg/vmcloak/vm.py", line 76, in create_vm
    basefolder=vms_path, register=True)
  File "/usr/local/lib/python2.7/dist-packages/VMCloak-0.3.10-py2.7.egg/vmcloak/vm.py", line 35, in _call
    raise CommandError
vmcloak.exceptions.CommandError

(I replaced parts of the path with dir but the rest is the actual path)

If you then try to clone the VM with this error you get yet another different error:

VBoxManage: error: Failed to lock source media '<dir>/.vmcloak/image/foo.vdi'
VBoxManage: error: Details: code VBOX_E_INVALID_OBJECT_STATE (0x80bb0007), component MediumWrap, interface IMedium, callee nsISupports
VBoxManage: error: Context: "CloneTo(pDstMedium, ComSafeArrayAsInParam(l_variants), NULL, pProgress.asOutParam())" at line 893 of file VBoxManageDisk.cpp
ERROR:vmcloak.vm:[-] Error running command: Command '['/usr/bin/VBoxManage', 'clonehd', u'<dir>/.vmcloak/image/foo.vdi', '<dir>/.vmcloak/image/foo1.vdi']' returned non-zero exit status 1
Traceback (most recent call last):
  File "/usr/local/bin/vmcloak-clone", line 5, in <module>
    pkg_resources.run_script('VMCloak==0.3.10', 'vmcloak-clone')
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 528, in run_script
    self.require(requires)[0].run_script(script_name, ns)
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 1394, in run_script
    execfile(script_filename, namespace, namespace)
  File "/usr/local/lib/python2.7/dist-packages/VMCloak-0.3.10-py2.7.egg/EGG-INFO/scripts/vmcloak-clone", line 47, in <module>
    main()
  File "/usr/local/lib/python2.7/dist-packages/VMCloak-0.3.10-py2.7.egg/EGG-INFO/scripts/vmcloak-clone", line 34, in main
    m.clone_hd(image.path, outpath)
  File "/usr/local/lib/python2.7/dist-packages/VMCloak-0.3.10-py2.7.egg/vmcloak/vm.py", line 120, in clone_hd
    self._call('clonehd', hdd_inpath, hdd_outpath)
  File "/usr/local/lib/python2.7/dist-packages/VMCloak-0.3.10-py2.7.egg/vmcloak/vm.py", line 35, in _call
    raise CommandError
vmcloak.exceptions.CommandError

from vmcloak.

Liikt avatar Liikt commented on July 21, 2024

Oh what I forgot to mention is that I try to install the programs on a winxp VM. Maybe that is the cause of the Problem.

from vmcloak.

jbremer avatar jbremer commented on July 21, 2024

So one of the issues is that the VM already exists. So basically VMCloak creates a temporary VM (e.g., foo.vdi) which it uses to do whatever you tell it to (in this case, install adobe or office). Given that the VM already exists it can't do its job as VirtualBox will fail when trying to create a VM with a duplicate name.
Please try either deleting that VM (foo) or creating a new VMCloak image with a new name, etc.

Windows XP and Windows 7 have both been tested plenty of times and should work mostly out of the box.

from vmcloak.

Svieg avatar Svieg commented on July 21, 2024

In my experience, deleting the *.vbox in $HOME/.vmcloak/vms/[VM_NAME]/VM_NAME.vbox works. I did that a lot when my scripts failed and I have yet to see a problem caused by this. The VBoxManage unregistervm basically does that if you decide to keep the files if I am not mistaken. Jurriaan, would you see a potential problem with that ?

from vmcloak.

jbremer avatar jbremer commented on July 21, 2024

Yeah, that should be fine :)

from vmcloak.

Liikt avatar Liikt commented on July 21, 2024

Well i knew that i just have to delete and then reinstall the VM to get it accessable again. But that sadly doesn't fix the initial issue.

from vmcloak.

razuz avatar razuz commented on July 21, 2024

is this still an issue ? AFAIK the main lock issues which cause random other issues should be resolved now with 3.12

from vmcloak.

jbremer avatar jbremer commented on July 21, 2024

What @razuz said - please re-open or create a new issue if you run into any other problems.

from vmcloak.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.