Virtualization on my Dell XPS 15 – 9530

So I’ve tried virtualization on this machine before and everything ran like it was stuck i syrup. I was trying to setup Kali Linux to do some pentests on my network. I have a router from the isp and was not sure if they where setup with WPS protection and if I was able to actually turn it of.

First I checked the bios to see if there was an option for virtual machines and sure thing, it has an option to turn virtualization on or off. But no more than that. You can’t turn features on or off beyond that.

I found a great site with a great way to check what support you have and also what the different things mean linux-xen-vmware-kvm-intel-vt-amd-v-support

So I ran:

egrep -wo 'vmx|lm|aes' /proc/cpuinfo | sort | uniq\ | sed -e 's/aes/Hardware encryption=Yes (&)/g' \ -e 's/lm/64 bit cpu=Yes (&)/g' -e 's/vmx/Intel hardware virtualization=Yes (&)/g'

and got:

Hardware encryption=Yes (aes)
64 bit cpu=Yes (lm)
Intel hardware virtualization=Yes (vmx)

Score!!

So then I checked for others also, just to see what my system is capable of. I found EPT, VPID, TPR_SHADOW and VNMI. I then moved on the check if my install of Fedora 24 had the right packages installed and if there where support for it in the kernel. A quick dmesg with a little grep showed me that I had no support in the kernel 😛

I ran this and got nothing..:

dmesg | grep -i kvm

Then I was off to google.com again and searched for how to setup virtualization in Fedora 24. Getting_started_with_virtualization

But I also searched for VirtualBox since I’ve tried that on other machines and I like the interface. I also tried it on this machine once before and it was sloooooooooooow. So before I do anything else I’m going to try and follow the installation for VirtualBox and see if it does what I need. install-virtualbox-with-yum-on-fedora-centos-red-hat-rhel/


cd /etc/yum.repos.d
sudo wget http://download.virtualbox.org/virtualbox/rpm/fedora/virtualbox.repo

sudo dnf update <-- Here I get a question if I want to accept the key for the repo.

sudo dnf install binutils gcc make patch libgomp glibc-headers glibc-devel kernel-headers kernel-devel dkms


sudo dnf install VirtualBox-5.1


sudo /usr/lib/virtualbox/vboxdrv.sh setup <-- This fails..


sudo usermod -a -G vboxusers myuser

The reason why the setup with vboxdrv.sh fails is that this laptop has secure boot. But since I have been building kernel modules on this before for my wifi dongle it is easy to get the driver signed.


/usr/src/kernels/$(uname -r)/scripts/sign-file sha256 ./MOK.priv ./MOK.der $(modinfo -n vboxdrv)

modprobe vboxdrv

As it stands now, it looks like my problem all along was the missing kernel module. All the kvm stuff is for Fedora's own way of doing virtualization. I might test that later also, but VirtualBox works fine for me 🙂

Leave a Reply

Your email address will not be published. Required fields are marked *