Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vmcloak init failed #101

Open
Soukaiinaa opened this issue Apr 27, 2017 · 7 comments
Open

vmcloak init failed #101

Soukaiinaa opened this issue Apr 27, 2017 · 7 comments

Comments

@Soukaiinaa
Copy link

Following your guide, i get to this step :
" vmcloak init --win7x86 --iso-mount win7.ISO --ip [ip] cuckoo1 "

giving me back an error:
Traceback (most recent call last):
File "/usr/local/bin/vmcloak", line 9, in
load_entry_point('VMCloak==0.4.3a2', 'console_scripts', 'vmcloak')()
File "/usr/local/lib/python2.7/dist-packages/click-6.6-py2.7.egg/click/core.py", line 716, in call
return self.main(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/click-6.6-py2.7.egg/click/core.py", line 696, in main
rv = self.invoke(ctx)
File "/usr/local/lib/python2.7/dist-packages/click-6.6-py2.7.egg/click/core.py", line 1060, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/local/lib/python2.7/dist-packages/click-6.6-py2.7.egg/click/core.py", line 889, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/local/lib/python2.7/dist-packages/click-6.6-py2.7.egg/click/core.py", line 534, in invoke
return callback(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/VMCloak-0.4.3a2-py2.7.egg/vmcloak/main.py", line 220, in init
if not h.buildiso(mount, iso_path, bootstrap, tempdir):
File "/usr/local/lib/python2.7/dist-packages/VMCloak-0.4.3a2-py2.7.egg/vmcloak/abstract.py", line 247, in buildiso
copytreelower(mount, outdir)
File "/usr/local/lib/python2.7/dist-packages/VMCloak-0.4.3a2-py2.7.egg/vmcloak/misc.py", line 50, in copytreelower
os.path.join(dstdir, path.lower()))
File "/usr/lib/python2.7/shutil.py", line 84, in copyfile
copyfileobj(fsrc, fdst)
File "/usr/lib/python2.7/shutil.py", line 49, in copyfileobj
buf = fsrc.read(length)
IOError: [Errno 5] Input/output error

How can i fix this problem?
Thanks,

@jbremer
Copy link
Member

jbremer commented Apr 27, 2017

Well, is win7.ISO a mounted image?

@Soukaiinaa
Copy link
Author

Yes, it's mounted on this folder : " /mnt/win7 " using this command :
sudo mount -o loop,ro win7.ISO /mnt/win7

@jbremer
Copy link
Member

jbremer commented Apr 28, 2017

Then you should pass /mnt/win7 instead of win7.ISO to vmcloak ;-)
Perhaps we should do some additional error checking.

@Soukaiinaa
Copy link
Author

I tried that, but the error is still exist ! :(

@jbremer
Copy link
Member

jbremer commented Apr 28, 2017

Then your ISO is most likely corrupt, try re-downloading it or another one.

@Soukaiinaa
Copy link
Author

I tried to install manually windows7 with the same ISO, and it worked well

@pawayf
Copy link

pawayf commented Feb 13, 2020

I got this error when mounting the iso with a user other than root and then executing vmcloack with a low-priv user. Mounting the iso using root fixed it for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants