-
Notifications
You must be signed in to change notification settings - Fork 123
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
Issue creating Windows VM #190
Comments
Delete this folder
VBoxManage: error: Machine settings file '/home/cuckoo/.vmcloak/vms/win7x64base/win7x64base.vbox' already exists
From: battosaikenshin ***@***.***>
Sent: Thursday, 24 June 2021 6:04 PM
To: hatching/vmcloak ***@***.***>
Cc: Subscribed ***@***.***>
Subject: [hatching/vmcloak] Issue creating Windows VM (#190)
Hi I am running the below command with the below error:
(cuckoo-test) ***@***.***Virtual-Machine:~/Desktop$ vmcloak init --verbose --win7x64 win7x64base --cpus 2 --ramsize 2048
/home/cuckoo/.virtualenvs/cuckoo-test/local/lib/python2.7/site-packages/OpenSSL/crypto.py:14: CryptographyDeprecationWarning: Python 2 is no longer supported by the Python core team. Support for it is now deprecated in cryptography, and will be removed in the next release.
from cryptography import utils, x509
VBoxManage: error: Machine settings file '/home/cuckoo/.vmcloak/vms/win7x64base/win7x64base.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 274 of file VBoxManageMisc.cpp
ERROR:vmcloak.vm:[-] Error running command: Command '['/usr/bin/VBoxManage', 'createvm', '--register', '--name', 'win7x64base', '--basefolder', '/home/cuckoo/.vmcloak/vms']' returned non-zero exit status 1
Traceback (most recent call last):
File "/home/cuckoo/.virtualenvs/cuckoo-test/bin/vmcloak", line 8, in
sys.exit(main())
File "/home/cuckoo/.virtualenvs/cuckoo-test/local/lib/python2.7/site-packages/click/core.py", line 716, in call
return self.main(*args, **kwargs)
File "/home/cuckoo/.virtualenvs/cuckoo-test/local/lib/python2.7/site-packages/click/core.py", line 696, in main
rv = self.invoke(ctx)
File "/home/cuckoo/.virtualenvs/cuckoo-test/local/lib/python2.7/site-packages/click/core.py", line 1060, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/cuckoo/.virtualenvs/cuckoo-test/local/lib/python2.7/site-packages/click/core.py", line 889, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/cuckoo/.virtualenvs/cuckoo-test/local/lib/python2.7/site-packages/click/core.py", line 534, in invoke
return callback(*args, **kwargs)
File "/home/cuckoo/.virtualenvs/cuckoo-test/local/lib/python2.7/site-packages/vmcloak/main.py", line 258, in init
m.create_vm()
File "/home/cuckoo/.virtualenvs/cuckoo-test/local/lib/python2.7/site-packages/vmcloak/vm.py", line 75, in create_vm
basefolder=vms_path, register=True)
File "/home/cuckoo/.virtualenvs/cuckoo-test/local/lib/python2.7/site-packages/vmcloak/vm.py", line 41, in _call
raise CommandError
vmcloak.exceptions.CommandError
Can anyone give me a hand as I am unsure on the next steps
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub<#190>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AIE2WDGT62RSF4F5VH3YWX3TUL7HZANCNFSM47HRYBHA>.
|
Hi Samwakel thanks for the quick response. I am now having the following error vmcloak init --verbose --win7x64 win7x64base --cpus 2 --ramsize 2048
|
Read the error messages
This whole folder needs to go because virtual box is trying to create something that’s already been created
VBoxManage: error: Could not create the medium storage unit '/home/cuckoo/.vmcloak/image/win7x64base.vdi'.
VBoxManage: error: VDI: cannot create image '/home/cuckoo/.vmcloak/image/win7x64base.vdi' (VERR_ALREADY_EXISTS)
From: battosaikenshin ***@***.***>
Sent: Thursday, 24 June 2021 8:38 PM
To: hatching/vmcloak ***@***.***>
Cc: samwakel ***@***.***>; Comment ***@***.***>
Subject: Re: [hatching/vmcloak] Issue creating Windows VM (#190)
Hi Samwakel thanks for the quick response. I am now having the following error
vmcloak init --verbose --win7x64 win7x64base --cpus 2 --ramsize 2048
/home/cuckoo/.virtualenvs/cuckoo-test/local/lib/python2.7/site-packages/OpenSSL/crypto.py:14: CryptographyDeprecationWarning: Python 2 is no longer supported by the Python core team. Support for it is now deprecated in cryptography, and will be removed in the next release.
from cryptography import utils, x509
0%...
Progress state: VBOX_E_FILE_ERROR
VBoxManage: error: Failed to create medium
VBoxManage: error: Could not create the medium storage unit '/home/cuckoo/.vmcloak/image/win7x64base.vdi'.
VBoxManage: error: VDI: cannot create image '/home/cuckoo/.vmcloak/image/win7x64base.vdi' (VERR_ALREADY_EXISTS)
VBoxManage: error: Details: code VBOX_E_FILE_ERROR (0x80bb0004), component MediumWrap, interface IMedium
VBoxManage: error: Context: "RTEXITCODE handleCreateMedium(HandlerArg*)" at line 450 of file VBoxManageDisk.cpp
ERROR:vmcloak.vm:[-] Error running command: Command '['/usr/bin/VBoxManage', 'createhd', '--size', '262144', '--filename', '/home/cuckoo/.vmcloak/image/win7x64base.vdi']' returned non-zero exit status 1
Traceback (most recent call last):
File "/home/cuckoo/.virtualenvs/cuckoo-test/bin/vmcloak", line 8, in
sys.exit(main())
File "/home/cuckoo/.virtualenvs/cuckoo-test/local/lib/python2.7/site-packages/click/core.py", line 716, in call
return self.main(*args, **kwargs)
File "/home/cuckoo/.virtualenvs/cuckoo-test/local/lib/python2.7/site-packages/click/core.py", line 696, in main
rv = self.invoke(ctx)
File "/home/cuckoo/.virtualenvs/cuckoo-test/local/lib/python2.7/site-packages/click/core.py", line 1060, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/cuckoo/.virtualenvs/cuckoo-test/local/lib/python2.7/site-packages/click/core.py", line 889, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/cuckoo/.virtualenvs/cuckoo-test/local/lib/python2.7/site-packages/click/core.py", line 534, in invoke
return callback(*args, **kwargs)
File "/home/cuckoo/.virtualenvs/cuckoo-test/local/lib/python2.7/site-packages/vmcloak/main.py", line 265, in init
m.create_hd(hdd_path, hddsize * 1024)
File "/home/cuckoo/.virtualenvs/cuckoo-test/local/lib/python2.7/site-packages/vmcloak/vm.py", line 100, in create_hd
self._call("createhd", filename=hdd_path, size=fsize)
File "/home/cuckoo/.virtualenvs/cuckoo-test/local/lib/python2.7/site-packages/vmcloak/vm.py", line 41, in _call
raise CommandError
vmcloak.exceptions.CommandError
Delete this folder VBoxManage: error: Machine settings file '/home/cuckoo/.vmcloak/vms/win7x64base/win7x64base.vbox' already exists From: battosaikenshin @.> Sent: Thursday, 24 June 2021 6:04 PM To: hatching/vmcloak @.> Cc: Subscribed @.***> Subject: [hatching/vmcloak] Issue creating Windows VM (#190<#190>) Hi I am running the below command with the below error: (cuckoo-test) @.***Virtual-Machine:~/Desktop$ vmcloak init --verbose --win7x64 win7x64base --cpus 2 --ramsize 2048 /home/cuckoo/.virtualenvs/cuckoo-test/local/lib/python2.7/site-packages/OpenSSL/crypto.py:14: CryptographyDeprecationWarning: Python 2 is no longer supported by the Python core team. Support for it is now deprecated in cryptography, and will be removed in the next release. from cryptography import utils, x509 VBoxManage: error: Machine settings file '/home/cuckoo/.vmcloak/vms/win7x64base/win7x64base.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 274 of file VBoxManageMisc.cpp ERROR:vmcloak.vm:[-] Error running command: Command '['/usr/bin/VBoxManage', 'createvm', '--register', '--name', 'win7x64base', '--basefolder', '/home/cuckoo/.vmcloak/vms']' returned non-zero exit status 1 Traceback (most recent call last): File "/home/cuckoo/.virtualenvs/cuckoo-test/bin/vmcloak", line 8, in sys.exit(main()) File "/home/cuckoo/.virtualenvs/cuckoo-test/local/lib/python2.7/site-packages/click/core.py", line 716, in call return self.main(*args, **kwargs) File "/home/cuckoo/.virtualenvs/cuckoo-test/local/lib/python2.7/site-packages/click/core.py", line 696, in main rv = self.invoke(ctx) File "/home/cuckoo/.virtualenvs/cuckoo-test/local/lib/python2.7/site-packages/click/core.py", line 1060, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) File "/home/cuckoo/.virtualenvs/cuckoo-test/local/lib/python2.7/site-packages/click/core.py", line 889, in invoke return ctx.invoke(self.callback, **ctx.params) File "/home/cuckoo/.virtualenvs/cuckoo-test/local/lib/python2.7/site-packages/click/core.py", line 534, in invoke return callback(*args, **kwargs) File "/home/cuckoo/.virtualenvs/cuckoo-test/local/lib/python2.7/site-packages/vmcloak/main.py", line 258, in init m.create_vm() File "/home/cuckoo/.virtualenvs/cuckoo-test/local/lib/python2.7/site-packages/vmcloak/vm.py", line 75, in create_vm basefolder=vms_path, register=True) File "/home/cuckoo/.virtualenvs/cuckoo-test/local/lib/python2.7/site-packages/vmcloak/vm.py", line 41, in _call raise CommandError vmcloak.exceptions.CommandError Can anyone give me a hand as I am unsure on the next steps — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub<#190<#190>>, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AIE2WDGT62RSF4F5VH3YWX3TUL7HZANCNFSM47HRYBHA.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub<#190 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AIE2WDG7YFYPL4UZJ63IBULTUMRI5ANCNFSM47HRYBHA>.
|
Yes apologies, I did that and got a different error on this occasion: vmcloak init --verbose --win7x64 win7x64base --cpus 2 --ramsize 2048 |
VBoxManage: error: VT-x is not available
This means you don’t have hardware virtualisation enabled, so the VM can’t run. Check your BIOS settings
From: battosaikenshin ***@***.***>
Sent: Thursday, 24 June 2021 8:50 PM
To: hatching/vmcloak ***@***.***>
Cc: samwakel ***@***.***>; Comment ***@***.***>
Subject: Re: [hatching/vmcloak] Issue creating Windows VM (#190)
Yes apologies,
I did that and got a different error on this occasion:
vmcloak init --verbose --win7x64 win7x64base --cpus 2 --ramsize 2048
/home/cuckoo/.virtualenvs/cuckoo-test/local/lib/python2.7/site-packages/OpenSSL/crypto.py:14: CryptographyDeprecationWarning: Python 2 is no longer supported by the Python core team. Support for it is now deprecated in cryptography, and will be removed in the next release.
from cryptography import utils, x509
INFO:vmcloak.abstract:Got file 'python-2.7.6.msi' from 'https://www.python.org/ftp/python/2.7.6/python-2.7.6.msi', with matching checksum.
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
INFO:vmcloak:Starting the Virtual Machine u'win7x64base' to install Windows.
VBoxManage: error: VT-x is not available (VERR_VMX_NO_VMX)
VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component ConsoleWrap, interface IConsole
ERROR:vmcloak.vm:[-] Error running command: Command '['/usr/bin/VBoxManage', 'startvm', u'win7x64base', '--type', 'headless']' returned non-zero exit status 1
Traceback (most recent call last):
File "/home/cuckoo/.virtualenvs/cuckoo-test/bin/vmcloak", line 8, in
sys.exit(main())
File "/home/cuckoo/.virtualenvs/cuckoo-test/local/lib/python2.7/site-packages/click/core.py", line 716, in call
return self.main(*args, **kwargs)
File "/home/cuckoo/.virtualenvs/cuckoo-test/local/lib/python2.7/site-packages/click/core.py", line 696, in main
rv = self.invoke(ctx)
File "/home/cuckoo/.virtualenvs/cuckoo-test/local/lib/python2.7/site-packages/click/core.py", line 1060, in invoke
return process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/cuckoo/.virtualenvs/cuckoo-test/local/lib/python2.7/site-packages/click/core.py", line 889, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/cuckoo/.virtualenvs/cuckoo-test/local/lib/python2.7/site-packages/click/core.py", line 534, in invoke
return callback(*args, **kwargs)
File "/home/cuckoo/.virtualenvs/cuckoo-test/local/lib/python2.7/site-packages/vmcloak/main.py", line 273, in init
m.start_vm(visible=vm_visible)
File "/home/cuckoo/.virtualenvs/cuckoo-test/local/lib/python2.7/site-packages/vmcloak/vm.py", line 201, in start_vm
type="gui" if visible else "headless")
File "/home/cuckoo/.virtualenvs/cuckoo-test/local/lib/python2.7/site-packages/vmcloak/vm.py", line 41, in _call
raise CommandError
vmcloak.exceptions.CommandError
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub<#190 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AIE2WDH4LG2D3BSLIJKBADTTUMSW5ANCNFSM47HRYBHA>.
|
@samwakel: did you get this issue fixed? I always get the same errors like you had... It would be really great if you or someone else could give me a hand. thanks a lot! My issue:
|
@ForeGuards |
I have a same error can someone help me resolve it? |
are you able to resolve that issue |
Ok it worked for me ....thank you so much....it really helped for my
college project🙏
…On Thu, 28 Sept, 2023, 10:13 pm Mac Life, ***@***.***> wrote:
Where to find vm.py I looked everywhere but didn't get....
On Thu, 28 Sept, 2023, 9:16 pm Anuraag Khanna, ***@***.***>
wrote:
> Access 'vm.py' and make the following changes while ensuring you are
> working on virtualbox5.2
>
> [image: image]
> <https://user-images.githubusercontent.com/37250417/271340900-9354b8df-896f-4c40-9b85-0a6413dd55f2.png>
>
> —
> Reply to this email directly, view it on GitHub
> <#190 (comment)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/BCQE3SVHTOL6LRZVADZXYN3X4WLXDANCNFSM47HRYBHA>
> .
> You are receiving this because you commented.Message ID:
> ***@***.***>
>
|
I faced this same error recently. To specifically sort the error: VBoxManage: error: VT-x is not available (VERR_VMX_NO_VMX) You need to open the VM that has Ubuntu. Then go to settings. Double click on Processors and under Virtualization engine, check Virtualize Intel VT-x/EPT. Saved the new settings. Restart the VM and in your terminal for Ubuntu, go to the virtual environment that you were at. To view virtual environments run: lsvirtualenv And then run: workon After that, you can run the command: That should fix the issue. |
I am using ubuntu 18.04 to install cuckoo sandbox and facing this issue. I already have Nested VT-x/AMD-V enabled on the ubuntu VM on virtualbox and also in my main machine bios, I have SVM enabled. However I still get these errors with the command to create windows 7 vm inside ubuntu.
It would be really great if someone could provide a solution. |
Hi I am running the below command with the below error:
(cuckoo-test) cuckoo@cuckoo-Virtual-Machine:~/Desktop$ vmcloak init --verbose --win7x64 win7x64base --cpus 2 --ramsize 2048
/home/cuckoo/.virtualenvs/cuckoo-test/local/lib/python2.7/site-packages/OpenSSL/crypto.py:14: CryptographyDeprecationWarning: Python 2 is no longer supported by the Python core team. Support for it is now deprecated in cryptography, and will be removed in the next release.
from cryptography import utils, x509
VBoxManage: error: Machine settings file '/home/cuckoo/.vmcloak/vms/win7x64base/win7x64base.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 274 of file VBoxManageMisc.cpp
ERROR:vmcloak.vm:[-] Error running command: Command '['/usr/bin/VBoxManage', 'createvm', '--register', '--name', 'win7x64base', '--basefolder', '/home/cuckoo/.vmcloak/vms']' returned non-zero exit status 1
Traceback (most recent call last):
File "/home/cuckoo/.virtualenvs/cuckoo-test/bin/vmcloak", line 8, in
sys.exit(main())
File "/home/cuckoo/.virtualenvs/cuckoo-test/local/lib/python2.7/site-packages/click/core.py", line 716, in call
return self.main(*args, **kwargs)
File "/home/cuckoo/.virtualenvs/cuckoo-test/local/lib/python2.7/site-packages/click/core.py", line 696, in main
rv = self.invoke(ctx)
File "/home/cuckoo/.virtualenvs/cuckoo-test/local/lib/python2.7/site-packages/click/core.py", line 1060, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/cuckoo/.virtualenvs/cuckoo-test/local/lib/python2.7/site-packages/click/core.py", line 889, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/cuckoo/.virtualenvs/cuckoo-test/local/lib/python2.7/site-packages/click/core.py", line 534, in invoke
return callback(*args, **kwargs)
File "/home/cuckoo/.virtualenvs/cuckoo-test/local/lib/python2.7/site-packages/vmcloak/main.py", line 258, in init
m.create_vm()
File "/home/cuckoo/.virtualenvs/cuckoo-test/local/lib/python2.7/site-packages/vmcloak/vm.py", line 75, in create_vm
basefolder=vms_path, register=True)
File "/home/cuckoo/.virtualenvs/cuckoo-test/local/lib/python2.7/site-packages/vmcloak/vm.py", line 41, in _call
raise CommandError
vmcloak.exceptions.CommandError
Can anyone give me a hand as I am unsure on the next steps
The text was updated successfully, but these errors were encountered: