Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upDocument Kali Linux VM creation #1981
Comments
andrewdavidwong
added
enhancement
C: doc
P: minor
labels
May 11, 2016
andrewdavidwong
added this to the
Documentation/website milestone
May 11, 2016
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
andrewdavidwong
May 13, 2016
Member
You might add that there are other options besides this (e. g. using PTF) which might not be as devastating to /usr (i. e. don’t necessarily require their own template).
|
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Vfreeze31
May 16, 2016
Added some content to the starting page for the Kali Guide. Not sure how good it is but hopefully it can be the start for something.
Vfreeze31
commented
May 16, 2016
|
Added some content to the starting page for the Kali Guide. Not sure how good it is but hopefully it can be the start for something. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Jeeppler
commented
May 16, 2016
|
Do you have a link? |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
andrewdavidwong
May 16, 2016
Member
Thanks, @Vfreeze31! It looks like a good start. Merged: QubesOS/qubes-doc@bc433f4
|
Thanks, @Vfreeze31! It looks like a good start. Merged: QubesOS/qubes-doc@bc433f4 |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
|
@Jeeppler, here's the link: https://www.qubes-os.org/doc/kali/ |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
crypt0beard
Jun 8, 2016
Andrew,
Has anyone tested these instructions? If not, I can do so as well as document it.
crypt0beard
commented
Jun 8, 2016
|
Andrew, Has anyone tested these instructions? If not, I can do so as well as document it. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
andrewdavidwong
Jun 8, 2016
Member
@crypt0beard: That would be great, thanks! I don't know whether anyone else has tested them yet. (@Jeeppler, @Vfreeze31?)
|
@crypt0beard: That would be great, thanks! I don't know whether anyone else has tested them yet. (@Jeeppler, @Vfreeze31?) |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Jeeppler
Jun 8, 2016
I tested the Kalilinux installation with Katoolin. I also took some screenshots.
I run into some issues with some packages LionSec/katoolin#21, but overall it was successful.
I was not using the instructions from qubes-doc Kali. There are some steps missing. I will update the documentation this weekend.
@crypt0beard I would be happy if you could test the updated instructions.
Jeeppler
commented
Jun 8, 2016
|
I tested the Kalilinux installation with Katoolin. I also took some screenshots. I run into some issues with some packages LionSec/katoolin#21, but overall it was successful. I was not using the instructions from qubes-doc Kali. There are some steps missing. I will update the documentation this weekend. @crypt0beard I would be happy if you could test the updated instructions. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
crypt0beard
commented
Jun 8, 2016
|
@Jeeppler Sure thing, I will keep an eye out for the updated instructions. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Vfreeze31
Jun 8, 2016
Thank you for your work @Jeeppler, we appriciate all you can do to assist.
I am sorry as I did not test as currently I do not have a qubes system to test them on and these kinds of instructions do need to be tested.
Vfreeze31
commented
Jun 8, 2016
|
Thank you for your work @Jeeppler, we appriciate all you can do to assist. I am sorry as I did not test as currently I do not have a qubes system to test them on and these kinds of instructions do need to be tested. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Jeeppler
commented
Jun 9, 2016
|
@andrewdavidwong where shall I put screenshots or other images in qubes-doc? |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
andrewdavidwong
Jun 9, 2016
Member
Please submit a pull request to add them (in a directory named "Kali") here.
|
Please submit a pull request to add them (in a directory named "Kali") here. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Jeeppler
commented
Jun 10, 2016
|
how shall I link them? |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
crypt0beard
Jun 10, 2016
If you want to send them directly to me for testing I can take a look at them, as far as putting up online I would talk to the Qubes guys.
On Jun 10, 2016 19:18, Jeppler notifications@github.com wrote:how shall I link them?
—You are receiving this because you were mentioned.Reply to this email directly, view it on GitHub, or mute the thread.
crypt0beard
commented
Jun 10, 2016
|
If you want to send them directly to me for testing I can take a look at them, as far as putting up online I would talk to the Qubes guys. —You are receiving this because you were mentioned.Reply to this email directly, view it on GitHub, or mute the thread. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Jeeppler
commented
Jun 11, 2016
|
@andrewdavidwong thanks |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
lorenzog
Jun 15, 2016
Hi all,
I've cleaned up the instructions and added my own notes. I have a repo forked here: https://github.com/lorenzog/qubes-doc/blob/master/managing-os/kali.md
Please note that it's not yet stable - while I can safely add tools to my Kali template, I cannot add e.g. kali-linux-full because it requires desktop components that depend on a newer X server which will break qubes-agent because it wasn't compiled for it.
Any feedback more than welcome.
lorenzog
commented
Jun 15, 2016
|
Hi all, I've cleaned up the instructions and added my own notes. I have a repo forked here: https://github.com/lorenzog/qubes-doc/blob/master/managing-os/kali.md Please note that it's not yet stable - while I can safely add tools to my Kali template, I cannot add e.g. Any feedback more than welcome. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Jeeppler
commented
Jun 15, 2016
|
@lorenzog what package produces the issue? |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
lorenzog
Jun 15, 2016
@Jeeppler if I pin xserver-xorg* and xorg* to debian jessie, then that's what happens:
- Trying to install kali-linux-web fails because it depends on kali-linux
- Trying to install kali-linux failes because it depends on kali-desktop-common
- Trying to install kali-desktop-common fails because it depends on xserver-xorg-legacy
- Trying to install xserver-xorg-legacy fails because it would remove qubes-core-agent, xserver-xorg-core, xserver-xorg-input-all
At that point I stopped as qubes-core-agent is important.
I think the next step would be to try to recompile it as a debian package against the xorg provided by kali, and see what happens.
lorenzog
commented
Jun 15, 2016
|
@Jeeppler if I pin xserver-xorg* and xorg* to debian jessie, then that's what happens:
At that point I stopped as qubes-core-agent is important. I think the next step would be to try to recompile it as a debian package against the xorg provided by kali, and see what happens. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
cyrinux
Jun 15, 2016
Hi, @lorenzog I have follow and do a merge request on your guide for add apt-get update && apt-get dist-upgrade, after this all works
cyrinux
commented
Jun 15, 2016
|
Hi, @lorenzog I have follow and do a merge request on your guide for add apt-get update && apt-get dist-upgrade, after this all works |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Jeeppler
Jun 15, 2016
I actually created a guide for Kalilinux with and without Katoolin as well as for PTF and BlackArch. I will create a pull request as soon as I finish the documentation for #911 too.
Installing the kali-linux package is a problem for me too, but it does not want to remove all the qubes-packages. Kali seems to reconfigure some Xorg settings.
Jeeppler
commented
Jun 15, 2016
|
I actually created a guide for Kalilinux with and without Katoolin as well as for PTF and BlackArch. I will create a pull request as soon as I finish the documentation for #911 too. Installing the |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Jeeppler
Jun 16, 2016
I created a pull request in qubes-doc and qubes-attachment for the documentation.
Jeeppler
commented
Jun 16, 2016
|
I created a pull request in qubes-doc and qubes-attachment for the documentation. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
lorenzog
Jun 17, 2016
@cyrinux so after the apt-get update and dist-upgrade, can you install kali-linux-all and run the appVM normally i.e. launching terminals from Qubes?
lorenzog
commented
Jun 17, 2016
|
@cyrinux so after the apt-get update and dist-upgrade, can you install kali-linux-all and run the appVM normally i.e. launching terminals from Qubes? |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
cyrinux
Jun 17, 2016
No lorenzo you are right but I can install the package. Without this I
can't install it. For the moment only access via xl console work. There is
yet xorg problem?
Le ven. 17 juin 2016 10:43, Lorenzo G. notifications@github.com a écrit :
@cyrinux https://github.com/cyrinux so after the apt-get update and
dist-upgrade, can you install kali-linux-all and run the appVM normally
i.e. launching terminals from Qubes?—
You are receiving this because you were mentioned.Reply to this email directly, view it on GitHub
#1981 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/AAfrqyVg7uCT51YWGZuGr-h7CDzcsG3sks5qMl5JgaJpZM4Ibt0v
.
cyrinux
commented
Jun 17, 2016
•
|
No lorenzo you are right but I can install the package. Without this I Le ven. 17 juin 2016 10:43, Lorenzo G. notifications@github.com a écrit :
|
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
andrewdavidwong
Aug 1, 2016
Member
User "NewbieG" has reported a couple of problems when attempting to follow the existing instructions:
First one, works ok if you run kali from DVD without installing it. If I try
to install it, login window flickers and once logged on, the desktop shows up
'misplaced' (see attach).Second one, as someone already pointed out in the list, introduces conflicts
between X packages from kali and X packages from the debian-9 template.
|
User "NewbieG" has reported a couple of problems when attempting to follow the existing instructions:
|
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
desmond-decker
Oct 1, 2016
Confirmed neither installation method works. Installing as a HVM from an ISO or installing the packages into a debian-8 template as directed both result in unusable Kali VMs.
desmond-decker
commented
Oct 1, 2016
|
Confirmed neither installation method works. Installing as a HVM from an ISO or installing the packages into a debian-8 template as directed both result in unusable Kali VMs. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Jeeppler
Oct 1, 2016
@desmond-decker how did you install the packages into your debian-8 template? What is a usable "Kali VM" for you?
Jeeppler
commented
Oct 1, 2016
|
@desmond-decker how did you install the packages into your debian-8 template? What is a usable "Kali VM" for you? |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
andrewdavidwong
Oct 7, 2016
Member
On 2016-10-07 00:37, petorian wrote:
I was wondering if anyone else is experiencing problems with installing Kali on a HVM in Qubes. When I boot the fresh installed Kali HVM i see the logon screen fine, but after that I see the top op the screen in the lower 10% of the window
|
On 2016-10-07 00:37, petorian wrote:
|
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
yilmi
Oct 9, 2016
The package breaking qubes-gui is pulled by kali-linux meta-packages (xserver-xorg-legacy).
xserver-xorg-legacy installs the Xorg suid wrapper meant to keep compatibility with some video drivers (see https://lists.x.org/archives/xorg-devel/2014-March/040874.html)
When we run /usr/bin/Xorg (shell script) it will check if Xorg.wrap exists, if the wrapper is available it will always run it.
You have to change the default wrapper configuration in /etc/X11/Xwrapper.conf:
allowed_users = anybody
needs_root_rights = no
Reboot your VM and test gui
After some checks, I found that :
- Xwrapper configuration is already set for fedora templates
- In debian jessie /usr/bin/Xorg is a binary, In stretch they have changed it to the shell script version (check for wrapper and run it)
@andrewdavidwong : Could you open a new issue to push this configuration on debian stretch ?
yilmi
commented
Oct 9, 2016
•
|
The package breaking qubes-gui is pulled by kali-linux meta-packages (xserver-xorg-legacy). xserver-xorg-legacy installs the Xorg suid wrapper meant to keep compatibility with some video drivers (see https://lists.x.org/archives/xorg-devel/2014-March/040874.html) When we run /usr/bin/Xorg (shell script) it will check if Xorg.wrap exists, if the wrapper is available it will always run it. You have to change the default wrapper configuration in /etc/X11/Xwrapper.conf:
Reboot your VM and test gui After some checks, I found that :
@andrewdavidwong : Could you open a new issue to push this configuration on debian stretch ? |
andrewdavidwong
referenced this issue
Oct 9, 2016
Closed
Change default Debian Stretch Xwrapper config to prevent breaking qubes-gui #2370
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
lorenzog
Jan 9, 2017
Hi all,
I was able to generate a fully working Kali linux template on Qubes OS 3.2. No conflicts with xorg and the like.
Instructions: https://github.com/lorenzog/qubes-doc/blob/master/managing-os/kali.md
lorenzog
commented
Jan 9, 2017
|
Hi all, I was able to generate a fully working Kali linux template on Qubes OS 3.2. No conflicts with xorg and the like. Instructions: https://github.com/lorenzog/qubes-doc/blob/master/managing-os/kali.md |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
|
@lorenzog: Have you considered submitting a PR for those? |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
lorenzog
Jan 10, 2017
@andrewdavidwong I will, but I thought to get some feedback in case I missed something first. Let me know if you think I can go ahead and submit it right away
lorenzog
commented
Jan 10, 2017
|
@andrewdavidwong I will, but I thought to get some feedback in case I missed something first. Let me know if you think I can go ahead and submit it right away |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
|
@lorenzog Getting feedback first is a good idea. :) |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Jeeppler
Jan 10, 2017
- You decribe only how to create a template, therefor your title is missleading. You also forget to mention that people are able to create a standalone vm with the help of your guide.
- Instead of getting the GPG Key at the beginning I highly recommend you do insert the section between step 4 and 5 where you actually need the key.
- "Ideally, verify the fingerprint through other channels" -> name other possible channels or don't mention it.
- Your Debian installation link does not work
- Your link to the Reddit page is maybe funny, but unecessary and people do not always get irony
- Alternative Options -> There is already a guide for PTF and BlackArch
Jeeppler
commented
Jan 10, 2017
|
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
lorenzog
Jan 11, 2017
Hi @Jeeppler, thanks for the comments.
I've incorporated a few of them and ignored others I don't agree with.
You decribe only how to create a template, therefor your title is missleading. You also forget to mention that people are able to create a standalone vm with the help of your guide.
I've added a subsection at the bottom, but item 4 of the first section clearly says "use the template to build AppVMS". Do you think it's clearer now?
Instead of getting the GPG Key at the beginning I highly recommend you do insert the section between step 4 and 5 where you actually need the key.
I disagree, the GPG key should be fetched once and its step is a prerequisite, doesn't belong in the main flow.
"Ideally, verify the fingerprint through other channels" -> name other possible channels or don't mention it.
The Kali installation page suggests this step and I think it's extremely important. However this howto is not the right place to tell people how to do it, so I've added a sentence to my text telling the user to "verify the fingerprint through other channels as recommended on that link."
Your Debian installation link does not work
Thanks, fixed.
Your link to the Reddit page is maybe funny, but unecessary and people do not always get irony
Meh :) You're right, I've removed it.
Alternative Options -> There is already a guide for PTF and BlackArch
Updated, but I don't think it's necessary here.
lorenzog
commented
Jan 11, 2017
|
Hi @Jeeppler, thanks for the comments. I've incorporated a few of them and ignored others I don't agree with.
I've added a subsection at the bottom, but item 4 of the first section clearly says "use the template to build AppVMS". Do you think it's clearer now?
I disagree, the GPG key should be fetched once and its step is a prerequisite, doesn't belong in the main flow.
The Kali installation page suggests this step and I think it's extremely important. However this howto is not the right place to tell people how to do it, so I've added a sentence to my text telling the user to "verify the fingerprint through other channels as recommended on that link."
Thanks, fixed.
Meh :) You're right, I've removed it.
Updated, but I don't think it's necessary here. |
lorenzog
referenced this issue
in QubesOS/qubes-doc
Jan 14, 2017
Merged
working instructions to create a Kali VM template #260
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
andrewdavidwong
Apr 19, 2017
Member
People are still reporting problems with only the bottom 10% of the Kali HVM window showing:
I find this puzzling, since I thought this was supposed to have been fixed in #2370 or #260 (or the combination of the two). What's going on? Are people just not following the working instructions that were merged in #260, or is something still broken?
|
People are still reporting problems with only the bottom 10% of the Kali HVM window showing: I find this puzzling, since I thought this was supposed to have been fixed in #2370 or #260 (or the combination of the two). What's going on? Are people just not following the working instructions that were merged in #260, or is something still broken? |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
lorenzog
Apr 20, 2017
@andrewdavidwong this used to happen to me too so instead of fighting with Linux display drivers like it's 1995 again I went on and made the Kali template instead :) I haven't used Kali in a HVM since.
lorenzog
commented
Apr 20, 2017
|
@andrewdavidwong this used to happen to me too so instead of fighting with Linux display drivers like it's 1995 again I went on and made the Kali template instead :) I haven't used Kali in a HVM since. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Jeeppler
Apr 20, 2017
@andrewdavidwong I had the same reason as @lorenzog to create a Kali template and because I wanted to be able to use the qubes tools (qvm-copy..., qvm-move... etc.)
However, I can understand that people would like to have the well sorted menu from Kali's Gnome Desktop. Adding dozens of tools via "add/remove app shortcut" will take a long time.
Jeeppler
commented
Apr 20, 2017
|
@andrewdavidwong I had the same reason as @lorenzog to create a Kali template and because I wanted to be able to use the qubes tools (qvm-copy..., qvm-move... etc.) However, I can understand that people would like to have the well sorted menu from Kali's Gnome Desktop. Adding dozens of tools via "add/remove app shortcut" will take a long time. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
andrewdavidwong
closed this
Apr 20, 2017
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
ppiotr3k
Jun 10, 2017
@andrewdavidwong, @lorenzog, @Jeeppler: I've added some polishing to the contributions you've already made on creating a Kali TemplateVM, see QubesOS/qubes-doc#431
For me, one of the essential needed improvements has been adding TemplateVM trimming/compacting in the instructions. In the TemplateVM instructions, a clone/upgrade is performed twice, thus a trimming saves several GB of disk space.
ppiotr3k
commented
Jun 10, 2017
|
@andrewdavidwong, @lorenzog, @Jeeppler: I've added some polishing to the contributions you've already made on creating a Kali TemplateVM, see QubesOS/qubes-doc#431 For me, one of the essential needed improvements has been adding TemplateVM trimming/compacting in the instructions. In the TemplateVM instructions, a clone/upgrade is performed twice, thus a trimming saves several GB of disk space. |
andrewdavidwong commentedMay 11, 2016
•
edited
Edited 1 time
-
andrewdavidwong
edited May 11, 2016 (most recent)
@Jeeppler wrote:
If this works and turns out to be a good way to create Kali Linux VMs in Qubes, it should be documented.