hatching / vmcloak

Automated Virtual Machine Generation and Cloaking for Cuckoo Sandbox.
478 stars 118 forks source link

Issue creating Windows VM #190

Open battosaikenshin opened 3 years ago

battosaikenshin commented 3 years ago

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

samwakel commented 3 years ago

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 GitHubhttps://github.com/hatching/vmcloak/issues/190, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AIE2WDGT62RSF4F5VH3YWX3TUL7HZANCNFSM47HRYBHA.

battosaikenshin commented 3 years ago

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 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 startvm 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

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 unsubscribehttps://github.com/notifications/unsubscribe-auth/AIE2WDGT62RSF4F5VH3YWX3TUL7HZANCNFSM47HRYBHA.

samwakel commented 3 years ago

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 (#190https://github.com/hatching/vmcloak/issues/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<#190https://github.com/hatching/vmcloak/issues/190>, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AIE2WDGT62RSF4F5VH3YWX3TUL7HZANCNFSM47HRYBHA.

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/hatching/vmcloak/issues/190#issuecomment-867602359, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AIE2WDG7YFYPL4UZJ63IBULTUMRI5ANCNFSM47HRYBHA.

battosaikenshin commented 3 years ago

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 startvm 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

samwakel commented 3 years ago

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 GitHubhttps://github.com/hatching/vmcloak/issues/190#issuecomment-867610036, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AIE2WDH4LG2D3BSLIJKBADTTUMSW5ANCNFSM47HRYBHA.

ForeGuards commented 1 year ago

@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:


(cuckoo) analyst@cuckoo:~$ vmcloak init --verbose --win7x64 win7x64base --cpus 2 --ramsize 2048
/home/analyst/.virtualenvs/cuckoo/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%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
INFO:vmcloak:Starting the Virtual Machine u'win7x64base' to install Windows.
Traceback (most recent call last):
  File "/home/analyst/.virtualenvs/cuckoo/bin/vmcloak", line 8, in <module>
    sys.exit(main())
  File "/home/analyst/.virtualenvs/cuckoo/lib/python2.7/site-packages/click/core.py", line 716, in __call__
    return self.main(*args, **kwargs)
  File "/home/analyst/.virtualenvs/cuckoo/lib/python2.7/site-packages/click/core.py", line 696, in main
    rv = self.invoke(ctx)
  File "/home/analyst/.virtualenvs/cuckoo/lib/python2.7/site-packages/click/core.py", line 1060, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/analyst/.virtualenvs/cuckoo/lib/python2.7/site-packages/click/core.py", line 889, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/analyst/.virtualenvs/cuckoo/lib/python2.7/site-packages/click/core.py", line 534, in invoke
    return callback(*args, **kwargs)
  File "/home/analyst/.virtualenvs/cuckoo/lib/python2.7/site-packages/vmcloak/main.py", line 275, in init
    m.wait_for_state(shutdown=True)
  File "/home/analyst/.virtualenvs/cuckoo/lib/python2.7/site-packages/vmcloak/vm.py", line 65, in wait_for_state
    status = self.vminfo("VMState")
  File "/home/analyst/.virtualenvs/cuckoo/lib/python2.7/site-packages/vmcloak/vm.py", line 49, in vminfo
    key, value = line.split("=", 1)
ValueError: need more than 1 value to unpack
LuboslavBochev commented 1 year ago

@ForeGuards Did you solve your problem already ?? I have the same issue like your.

anuraagkhanna commented 9 months ago

I have a same error can someone help me resolve it?

pra7veen commented 9 months ago

I have a same error can someone help me resolve it?

are you able to resolve that issue

anuraagkhanna commented 9 months ago

Access 'vm.py' and make the following changes while ensuring you are working on virtualbox5.2

image

pra7veen commented 9 months ago

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 https://github.com/hatching/vmcloak/issues/190#issuecomment-1739582006, or unsubscribe https://github.com/notifications/unsubscribe-auth/BCQE3SVHTOL6LRZVADZXYN3X4WLXDANCNFSM47HRYBHA . You are receiving this because you commented.Message ID: @.***>

faithfulco commented 2 months ago

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: vmcloak init --verbose --win7x64 win7x64base --cpus 2 --ramsize 2048

That should fix the issue.

image

AJAkil commented 1 month ago

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.

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

Screenshot 2024-05-29 174646

It would be really great if someone could provide a solution.