Kali Linux - ARM Images

Discussion in 'Parallels Desktop 16 for M1 Mac Technical Preview' started by Matt., Dec 19, 2020.

  1. Matt.

    Matt. Bit Poster

    Messages:
    2
  2. ChristianB27

    ChristianB27 Bit Poster

    Messages:
    3
    Also interested if someone gets a response
     
  3. ParisJ

    ParisJ Bit Poster

    Messages:
    2
    I don't really have much to contribute, but I've been trying to get this working for a while. I tried creating a kali VM using the link above and no luck. Tried creating a blank Debian, Ubuntu, and Kali image and loading the .IMG via the CD drive in the VM but it keeps crashing.
     
    leix likes this.
  4. danielmofer

    danielmofer Bit Poster

    Messages:
    6
    Hi,
    I was needing the same a week ago, and I suggest the same than ParisJ, go to https://cdimage.debian.org/debian-cd/current/armhf/iso-cd/ and download "debian-10.7.0-armhf-xfce-CD-1.iso", install it and then change the content of repository in /etc/apt/source.list by deb http://http.kali.org/kali kali-rolling main non-free contrib as is indicated in https://www.kali.org/docs/general-use/kali-linux-sources-list-repositories afterwards, you will try to execute apt update and will have and error with the key of GPG, fix that error googling and then execute apt update; apt upgrade -y;apt dist-upgrade -y; apt install Kali-linux-all -y and after that you will have a 100% kali. You also can choose which metapackge install, have a look of https://tools.kali.org/kali-metapackages
    Hope this help you.
     
    Madhawa likes this.
  5. GerardK4

    GerardK4 Bit Poster

    Messages:
    5
    .img files aren't intended to be CD/DVD installers; they're fully installed OS images meant to be written to an SD card for use in an SBC like a RasPi. You might be able to convert it to a Parallels HDD file using something like qemu-img though.
     
  6. MatthewW13

    MatthewW13 Bit Poster

    Messages:
    3
    Kali does not have an installer for arm processors. They do have a kernel and just about every other package for arm64. There are a bunch of ways to do this and I have done a couple of them. For me the easiest way was installing Debian 10 with a minimal install. Then follow this script: https://gist.github.com/warecrash/f35d4f9a822c452b0c54bbdb47c0c9a5

    You need to watch for some package install errors. You may beed to look at the list of held back packages and manually install gcc and python (really easy to do). I would do the light meta package at the end instead of everything. You can always go to everything after the reboot into Kali.

    This weekend I will probably put together a clean image and see if I can export the VM if anyone wants to try it. Didn't snapshot the one I have so I can't just export it as I have been using it. Given the state of things it may just be a compressed disk file, but it should work.
     
  7. WillS11

    WillS11 Bit Poster

    Messages:
    2
    Looking forward to trying your Kali .iso file. Thanks in advance
     
  8. WillyW3

    WillyW3 Bit Poster

    Messages:
    1
    Trying out Debian ARM and after the installation it takes me to clean vm and states it cannot find the cd/iso file. Anyone else experiencing this?
     
  9. Madhawa

    Madhawa Bit Poster

    Messages:
    6
    does debian-10.7.0-arm64-xfce-CD-1.iso works same as yours? assuming the armhf which you linked is 32bit, I'm trying to get the 64bit
     
  10. Madhawa

    Madhawa Bit Poster

    Messages:
    6
    tried many things in the google to fix the GPG error but after some struggle, I undid my changes in /etc/apt/source.list
    can you elaborate what you did inorder to fix that
    I got lots of errors with gnupg and dirmngr as well
    did you tick the ...xfrc when setting up the VM?
     
  11. DanS24

    DanS24 Bit Poster

    Messages:
    2
    Just documenting some of my experiences during my time with Parallels preview on the M1. Hopefully this helps someone along the way. I've set up Kali in Parallels M1 preview with varying levels of success. The most stable procedure that I have been able to successfully repeat is listed below.

    I certainly didn't develop this entire procedure on my own, it comes from a variety of resources that I have attempted to attribute along the way. My best advice (as of today) is that if this procedure doesn't work, give it maybe 2 or 3 tries. I don't really have time to dig deep to see why it might work one time, and not the next, all that I know is that this procedure works most of the time for me. Obviously, as time goes on and improvements are made to the product, this procedure will change, evolve, and become much more stable.

    Directions on my experience with converting Debian to Kali:

    From @danielmofer

    Download https://cdimage.debian.org/debian-cd/current/arm64/iso-cd/ and download "debian-10.7.0-arm64-xfce-CD-1.iso." Danielmofer recommends the armhf version, but I haven't had any success with that version, perhaps he has more insight with the procedure. The Arm64 version has worked well for me.


    Modified from NikolaiS@Parallels (https://forum.parallels.com/threads/arm64-iso-and-vhdx-images.351847/)

    1. Open Parallels Desktop. Click New > Install Windows or another OS from a DVD or image file > Continue > Choose Manually > Continue without a source > Continue > Ok > Continue > [Select More Linux > Kali Linux > Ok] > Customize settings before installation > Create.

    In the Configuration Menu select Hardware > CPU & Memory. I have a 16gb M1 MBP, so I allocate 8 processors and 8192 MB Memory. Select Graphics and bump up the Memory to 1 GB. Honestly, I don't know yet if the virtual machine fully takes advantage of these settings. But I don't suffer any performance downgrades on the MacOS, and the Kali VM appears to be snappy so far. I doubt that the graphics memory bump is very important right now because with out parallels tools available on the preview yet, the resolution is stuck at 1024x768, I wouldn't think that the VM takes full advantage of 1 GB graphics memory because of this limitation.

    Sound & Camera > Deselect Share Mac Camera with Linux. There have been reports that when this setting is selected, VM installations hang. I personally haven't seen that behavior with Debian, but I deselect it anyway.

    Close the Configuration Menu window and click Continue on the Installation Assistant window.

    2. Open the virtual machine's Configuration: If you have the menu bar icon added to MacOS, click Parallels icon || > Control Center > right click on the virtual machine > Configure.

    3. Click Hardware > CD/DVD > Source and browse to the installation .iso (in our case, the debian-10.7.0-arm64-xfce-CD-1.iso)

    4. Switch back to the virtual machine's Window and in the top menu click Actions > Reset.

    5. Virtual machine shall boot from the installation image and let you proceed with installing the OS.


    From @MatthewW13

    This script helps to convert Debian 10.7 to Kali: https://gist.github.com/warecrash/f35d4f9a822c452b0c54bbdb47c0c9a5

    I've provided the contents of the script below with one important update. The original script adds kali-rolling to the apt sources.list. I have not been able to successfully and fully convert Debian to Kali using only the kali-rolling source. I have far more success when I add kali-latest-snapshot to the sources. Without kali-latest-snapshot, I get a lot of errors that I am unable to easily resolve. With kali-latest-snapshot, I don't get any errors, or fewer errors that are much easier to fix (missing packages, etc).

    You may need to escalate to root privileges if your user doesn't have the necessary abilities. Try sudo or su with these commands.

    During these updates/upgrades, the scripts will ask you certain questions based on your uses and desires. I can't specifically answer those questions for you, so if in doubt, choose the defaults for the questions.

    This script installs kali-linux-everything. If you're looking for a lighter install (maybe just the arm64 installer, or the other suggested packages from the previous posts), check out Kali meta packages at https://tools.kali.org/kali-metapackages


    Debian to Kali Scripts:

    Code:
    apt update
    apt -y install wget gnupg dirmngr
    wget -q -O - https://archive.kali.org/archive-key.asc | gpg --import
    gpg --keyserver hkp://keys.gnupg.net --recv-key 44C6513A8E4FB3D30875F758ED444FF07D8D0BF6
    echo "deb http://http.kali.org/kali kali-rolling main non-free contrib" >> /etc/apt/sources.list
    echo "deb http://http.kali.org/kali kali-last-snapshot main non-free contrib" >> /etc/apt/sources.list
    gpg -a --export ED444FF07D8D0BF6 | sudo apt-key add -
    apt update
    apt -y upgrade
    apt -y dist-upgrade
    apt -y autoremove --purge
    apt -y install kali-linux-everything

    I've had issues with the "My Applications" menu crashing. I just end up removing it because the default Kali doesn't use it anyway.

    After Kali installs, right click on the menu bar > Panel > Add New Items... > Whisker Menu

    Run this script to get the default Kali menu installed if it didn't already install:

    Code:
    apt install kali-menu
    Clearly, any flavor of linux is highly customizable and personal. So I won't cover every little detail to make Kali appear as it does on a fresh install.

    Some things to consider:
    Different terminal?
    Zsh instead of bash?
    Did all tools install?

    Sometimes, all of the tools will install for me using the kali-linux-everything metapackage, and other times I'm missing tools. You'll have to check to see what tools, if any, are missing and install them individually or through the metapackages.

    Anyway, I hope this helps someone else out there. I spent a lot of time with trial and error and this seems to be the best procedure for me, your experience may vary.
     
    Madhawa likes this.
  12. Madhawa

    Madhawa Bit Poster

    Messages:
    6
    That worked. didn't work last time I tried. I think the addition of
    echo "deb http://http.kali.org/kali kali-last-snapshot main non-free contrib" >> /etc/apt/sources.list
    has solved that issue. may be
    only thing left is I have no folder structure inside the Menu. Does anyone know how to fix that?
     
  13. DanS24

    DanS24 Bit Poster

    Messages:
    2
    Maybe the "My Applications" menu is still in use? I don't think that the My Applications menu populates the Kali tools folder structure, you'll need to add the Whisker-Menu instead.
    You should be able to right click on the menu bar > Panel > Add New Items... > Whisker Menu

    If for some reason the Whisker Menu is unavailable, you might need to add it with this command:
    Code:
    apt install xfce4-whiskermenu-plugin

    I then install the Kali menu that adds the folder structure inside of the Whisker Menu.

    This should get the Kali menu installed:
    Code:
    apt install kali-menu

    For my personal preferences, I remove the My Applications menu because I prefer the Whisker Menu, then I move the Whisker Menu to the left side of the menu bar. I then customize the Whisker Menu icon by right clicking on it and modifying the preferences to my liking. I also remove the dock at the bottom of the desktop.
     
  14. Madhawa

    Madhawa Bit Poster

    Messages:
    6
    haha awesome! worked perfectly! appreciate it sir
     
  15. Ken20

    Ken20

    Messages:
    2
    This worked great, thank you so much for getting this process documented! The only thing I'd add that helped me have a clean version of Kali at the end was when I installed Debian, I installed it without a Window Manager or GUI -- so I left everything at the default, which doesn't have a WM selected. Then when I installed the Kali WM (XFCE for me) and rebooted, I had a nice clean Kali UI without the application menu issues I had when I installed Debian with a WM. Also, I didn't use
    Code:
    apt -y install kali-linux-everything
    I used the following for Kali, which was a lighter weight install and more in line with the default Kali installs from what I can tell:
    Code:
    apt -y install kali-linux-core kali-linux-default kali-desktop-core kali-desktop-xfce
     
  16. Ken20

    Ken20

    Messages:
    2
    The last big issue for me is the resolution being stuck at 1024x768. I went down that rabbit hole to try to get it higher with xrandr and with configuring xorg. No dice... it definitely looks like a driver issue with Parallels.
     
    Madhawa likes this.

Share This Page