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

could you tell me how to install it with source compile and install rather than use vagrant #23

Closed
qth1991 opened this issue Aug 17, 2018 · 28 comments

Comments

@qth1991
Copy link

qth1991 commented Aug 17, 2018

Because of network reasons, I always stuck in the steps of “clone submodules”. So I want to install the source code. Because the KVM kernel used by kvm-vmi is modified, it needs to be recompiled and reinstalled. So,what is the host operating system you are using? What is the version of QEMU and linux-kernel? I will download the kvm-vmi/kvm and put it into the host computer for compilation and installation. Is that ok?

i7 fo5e35ki bvh t _0hr
When it is stuck here, I input “ctrl+c”, then "vagrant destroy" and "vagrant up --provider=libvirt", it will be also stuck here.It make me crazy, so I want to deploy my own environment instead of using vagrant.

@Wenzel
Copy link
Member

Wenzel commented Aug 17, 2018

Cloning the submodules takes a while, simply because it clones the KVM repository, which is huge.

You can always try by yourself:

vagrant ssh
$ cd /data/kvm-vmi
$ git submodule update --init

And you will have the progress output.

@qth1991
Copy link
Author

qth1991 commented Aug 17, 2018

yes, I ues vagrant ssh to enter vagrant@jessie:/data/kvm-vmi, download all submoudle,then how to compile it?,because in my hostOS when I reinput "vagrant up --provider=libvirt" it just start-up "vagrant_default" domain Instead of execute yaml script.
h 9 gxwxp q 5k 4wo3

@Wenzel
Copy link
Member

Wenzel commented Aug 17, 2018

you need to run the playbook from scratch
use vagrant destroy and vagrant up again

@qth1991
Copy link
Author

qth1991 commented Aug 17, 2018

but if I use vagrant destroy in host os the /var/lib/libvirt/images/vagrant_default.img will also destroy, then vagrant up again it will be also stuck here
22222

@qth1991
Copy link
Author

qth1991 commented Aug 17, 2018

vagrant destroy will delete /var/lib/libvirt/images/vagrant_default.img

@Wenzel
Copy link
Member

Wenzel commented Aug 17, 2018

Please check if clone submodules is actually stuck, and investigate to find the reason.
Otherwise, install everything on the host manually.

@qth1991
Copy link
Author

qth1991 commented Aug 17, 2018

yes it is stuck ,so I want to install everything on the host manually but don't kown how to do this ,could you give me some advice? A little bit can help me a lot,I've been working for several days, but I haven't made any progress.
33

@Wenzel
Copy link
Member

Wenzel commented Aug 17, 2018

Simply follow what the Ansible playbook is doing, it would be a good start.

@qth1991
Copy link
Author

qth1991 commented Aug 17, 2018

so,in provision_full/playbook.yml ?

@Wenzel
Copy link
Member

Wenzel commented Aug 17, 2018

yes

@qth1991
Copy link
Author

qth1991 commented Aug 17, 2018

ok, i try it! thank you

@qth1991
Copy link
Author

qth1991 commented Aug 19, 2018

Hi,it's me. Sorry to bother you again. When I followed the nitro.yml script execu "python3 nitro/build_libvmi.py".

1

I execute the script in order of playbook.yml ,kvm.yml, qemu.yml nitro.yml test_vm.yml. Is that execute kvm.yml then reboot entering the “Linux debian 4.9.0-nitro+ #1 SMP Sat Aug 18 21:03:09 EDT 2018 x86_64 GNU/Linux”kernel, execute the script later?

@Wenzel
Copy link
Member

Wenzel commented Aug 20, 2018

hi,
you shouldn't have to build the libvmi python bindings from Nitro, i removed them a couple of months ago, and put them in another project.

you are still seeing this code because the submodules were not up to date, and pointing to older commits.
Please checkout the master branch on Nitro before running the playbook

@qth1991
Copy link
Author

qth1991 commented Aug 20, 2018

tim 20180820095813
Is this due to network reasons? I can download Win7x64 Enterprise.iso myself, but I don't know where to put it?
tim 20180820101217
Only win8 can download , but it has always been 0%

@qth1991
Copy link
Author

qth1991 commented Aug 20, 2018

I installed win7x64.img myself, but there is an error when I was using nitro/main.py. oh, I didn't configure the network for VM win7x64. Is this affected?
This is the VM configure file.
3
This is error fig
2

@Wenzel
Copy link
Member

Wenzel commented Aug 20, 2018

Did you rebooted the VM ? you have to boot on the nitro kernel that you installed earlier.

@qth1991
Copy link
Author

qth1991 commented Aug 20, 2018

No I just reboot the VMM, because the win7_64.img is copy from other computer and boot using direct command “virsh create win7_64.xml ”.Do you mean you need to use the ISO file to reinstall it? and I can't find how to do "boot on the nitro kernel" in script yml or README.

@Wenzel
Copy link
Member

Wenzel commented Aug 20, 2018

I mean the Vagrant VM:

From the README
Once vagrant is done provisioning the vm, run vagrant reload to reboot the box (to use the modified kernel)

You can verify that with uname -a and check the kernel name

@qth1991
Copy link
Author

qth1991 commented Aug 20, 2018

thank you , and have a nice day !

@qth1991
Copy link
Author

qth1991 commented Aug 20, 2018

13

Remind me to install rekall ,but I have installed rekall.

@Wenzel
Copy link
Member

Wenzel commented Aug 20, 2018

How did you installed rekall ?
I install it system wide, via pip

@qth1991
Copy link
Author

qth1991 commented Aug 20, 2018

eee.... which is correctly.
first
1
second
2

@Wenzel
Copy link
Member

Wenzel commented Aug 20, 2018

You just found an issue in my README, congrats.

I have instructed to use pip3, however, i'm calling my script with Python2, so it has to been installed with pip2, or pip.

I will update the README and fix this issue.
Thanks for reporting.

@qth1991
Copy link
Author

qth1991 commented Aug 20, 2018

Oh,Is that all the version is python2.7 or just for rekall? and which python version to run nitro/main.py
tim 20180820215700

@Wenzel
Copy link
Member

Wenzel commented Aug 20, 2018

Python 2.7 is only needed for Rekall.
Nitro is Python3

@qth1991
Copy link
Author

qth1991 commented Aug 21, 2018

why direct execute "python3 main.py win7x64" It's make "ERROR:root:No profiles match this image. Try specifying manually."
1
3

@qth1991
Copy link
Author

qth1991 commented Aug 21, 2018

but I first execute “python3 main.py --nobackend win7x64”, then push "ctrl+c" and execute “python3 main.py win7x64” immediately, It's can be run in the right way.
4

@Wenzel
Copy link
Member

Wenzel commented Aug 21, 2018

The previous error refers to Rekall not being able to identify the operating system.
You should investigate that with Rekall guys.

Nice !
it seems that it works now !

@Wenzel Wenzel closed this as completed Aug 21, 2018
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

2 participants