nested visualization with whonix (Vbox + windows 7 inside whonix WS)

i have tried to install vbox inside whonix workstation + installing windows 7 for test = worked great , directly&smoothly with no errors.

steps r very basic & simple except with little bit differences:-

Note: inside whonix by default the dkms is installed. so no need to install it.

1- download virtualbox for debian 8 jessie i386 (important to choose i386) from this link:-

https://www.virtualbox.org/wiki/Linux_Downloads

2- optional:- download SHA256 checksum

3- put the SHA256 file and vbox.deb inside one folder and let us assume they r inside the /Downloads folder:-

cd /Downloads
sha256sum -c SHA256SUMS

if the above command didnt work , u can use this oen:-

shasum -a 256 -c SHA256SUMS

u should c an “OK” like this :-

virtualbox-5.0_5.0.14-105127~Debian~jessie_i386.deb: OK

4- here is a little bit different between Whonix & plain Debian when running the Virtualbox package. in normal plain debian u can just click on the .deb file and it will be automatic executable for install , where as in whonix u need to use this command:-

sudo dpkg -i path_of_vbox.deb

5- now virtualbox is ready , what u need now is an windows7.iso , u can download it from anywhere u like , i have download it from this link in my test:-

6- install windows7 inside the vbox = congratulation, torified OS with nested vbox inside whonix workstation.

Good day,

nice to hear, that it works this flawlessly. Would have wonderd myself, if it didn’t though.

Have a nice day,

Ego

1 Like

Why not install VirtualBox using apt-get from Debian repositories?

sudo apt-get install virtualbox linux-headers-$(uname -r)

not updated , the last version in debian is:- 4.3.18

the last version from oracle is:- 5.0.14

btw, according to:-

https://wiki.debian.org/VirtualBox

one should use this command to install it

sudo apt-get install linux-headers-$(uname -r|sed 's,[^-]*-[^-]*-,,') virtualbox

or we shouldd use this

sudo apt-get install virtualbox linux-headers-$(uname -r)

which one we should use? or r they the same?

@nurmagoz:

not updated , the last version in debian is:- 4.3.18

However, it’s perfectly fine to use that since it’s maintained in Debian
stable with security support. And can be easily downloaded in a secure
fashion (verified by apt-get), installed and uninstalled.

the last version from oracle is:- 5.0.14

If you really want this, can use also. However, secure download gets
more difficult usability wise, since manual. Also
installation/uninstallation gets harder and might even break - because
not from Debian.

If you want newer versions, check if these exists in backports. It does:

Debian -- Error

Related:

Install Additional Software Safely

great then. should i upgrade the nested virtualization document with this topic?

Can do. But installation from backports should be the exception.
Separate chapter if you want. Normal installation from regular Debian
repository fine and recommended for most users.

We have a wiki template for installation from backports btw:
Template:Install Backport - Whonix

How to use the template can be seen in the wiki markup here:
Install Additional Software Safely

this is just a fast trials to the commands inside whonix-qubes , but i cant download them:-

should i add new debian source to the sources.list ?

Qubes nested virutalization (VirtualBox inside Qubes) is a separate
topic that has an existing thread on the Qubes mailing list.

should i add new debian source to the sources.list ?

No. Not by default. Read about backports. They are sometimes not of the
same quality as stable packages.

im not saying that i have had an error because of the installation process , but whonix/debian packages cant find the virtualbox by just typing

sudo apt-get install virtualbox linux-headers-$(uname -r)

the command should work in every whonix since whonix dont change its repositories right ?

vbox is installable from the stable default repositories , we just add “contrib” if it not been added in the sources.list

according to this link:- VirtualBox - Debian Wiki

oh, seems whonix is different in their repository from Qubes to virtualbox or i dunno

because that command worked inside whonix-ws virtualbox.

and this topic is just there in the nestedVM document. Thnx :rose:

i just want to ask , how did u install the guest-additions inside whonix ?

sudo apt-get install virtualbox-guest-x11
or
sudo apt-get install virtualbox-ose-guest-x11
or
sudo apt-get install virtualbox-guest-additions
or
sudo apt-get install virtualbox-guest-additions-iso

(kinda lost with ubuntu&debian packages witha vbox)

should that be inside the guest (X os) and host (WS) ? (if we assume that whonix-WS doesnt come with dkms/guest-additions by default)

Just search what packages Debian provides for the current suite you may be using. (jessie, jessie-backports, …)
https://packages.debian.org

1 Like

@nurmagoz

Installing Different Versions of VirtualBox

1 Like

Most if not all of this thread is probably outdated. Newer: