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

How to run this proyect? #8

Open
VictorAlonsoCM opened this issue Oct 19, 2018 · 2 comments
Open

How to run this proyect? #8

VictorAlonsoCM opened this issue Oct 19, 2018 · 2 comments

Comments

@VictorAlonsoCM
Copy link

Hello, sorry for this issue but I have a problem with the kvm file.
The problem that I have is that I don't know how to run the file. When I try to run it my Kali says that
"open /dev/kvm: No such file or directory" and I don't know what to do, I followed many tutorials about how to run this kind of binaries but none of these work for me.
Can you help me please?

@dpw
Copy link
Owner

dpw commented Oct 27, 2018

Hi,

I'd guess it is one of three things:

First, this project requires hardware virtualization support. Intel calls this VT-x AMD calls it something different. Not all processor models support this. To check this, do cat /proc/cpuinfo, and look for the model_name field in the output. For example, on my laptop I get:

model name      : Intel(R) Core(TM) i7-7600U CPU @ 2.80GHz

The if you search Google for that model name, one of the first few links in the results will be to a page at ark.intel.com that list all the details of your processor model. For example, at https://ark.intel.com/products/97466/Intel-Core-i7-7600U-Processor-4M-Cache-up-to-3-90-GHz- there is a row in a table saying "Intel Virtualization Technology (VT-x) : Yes".

I expect you can find similar information for AMD processors.

If your machine does have hardware virtualization support, the second potential problem is that you might have virtualization disabled in the BIOS. This is the default for many machines. So reboot your machine, go into the BIOS settings, find a setting about virtualization, and make sure it is enabled.

If you have hardware virtualization enabled, it should be visible in your CPU flags. Do cat /proc/cpuinfo again, and in the flags field look for vmx (again, that is for intel, it might be called something different with AMD). For example, on my laptop I see:

flags           : [...] vmx [..]

If you see the vmx flag, then maybe /dev/kvm is simply missing. Most Linux distros should create it automatically, but I don't know about kali linux. If it is missing, you can create it with:

sudo mknod /dev/kvm c 10 232

I hope this helps!

@VictorAlonsoCM
Copy link
Author

This is what I got from cat /proc/cpuinfo

root@ubuntu:/home/victor/Desktop# cat /proc/cpuinfo
processor	: 0
vendor_id	: GenuineIntel
cpu family	: 6
model		: 61
model name	: Intel(R) Core(TM) i7-5500U CPU @ 2.40GHz
stepping	: 4
microcode	: 0x2a
cpu MHz		: 2394.458
cache size	: 4096 KB
physical id	: 0
siblings	: 1
core id		: 0
cpu cores	: 1
apicid		: 0
initial apicid	: 0
fpu		: yes
fpu_exception	: yes
cpuid level	: 20
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts mmx fxsr sse sse2 ss syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts nopl xtopology tsc_reliable nonstop_tsc cpuid aperfmperf pni pclmulqdq ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm abm 3dnowprefetch cpuid_fault epb invpcid_single pti fsgsbase tsc_adjust bmi1 avx2 smep bmi2 invpcid rdseed adx smap xsaveopt dtherm arat pln pts
bugs		: cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass l1tf
bogomips	: 4788.91
clflush size	: 64
cache_alignment	: 64
address sizes	: 42 bits physical, 48 bits virtual
power management:

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