Quantcast
Channel: Active questions tagged kali-linux - Super User
Viewing latest article 17
Browse Latest Browse All 424

How to install Kali linux on Windows 10 (VHD) and dual boot?

$
0
0

Purpose:

I want to install Kali Linux in Windows D:/kali.vhd file and create a dual boot

Problem:

When Booted into Kali Linux from dual boot menu it takes to windows repair, and give an error about winload.exe Error Code: 0xc0000225

System Configuration:

enter image description here

enter image description here

Already Done:

  1. Created a VHD in windows 10 via Disk Management

  2. Created a Bootable USB from ISO image of Kali Live

  3. Booted into Kali live

  4. Mounted D drive in /mnt/windows

  5. Made partitions (root,swap)

  6. losetup /dev/loop1 /mnt/windows/kali.vhd

  7. partprobe /dev/loop1

  8. Mounted /dev/loop1p1 /mnt/kali

  9. mkdir /mnt/kali

  10. mount /dev/loop1p1 /mnt/kali

  11. mkdir -p /mnt/kali/{bin,boot,dev,etc,home,lib,lib64,media,mnt,opt,proc,root,run,sbin,srv,sys,tmp,usr,var}

  12. chmod 1777 /mnt/kali/tmp

  13. rsync -av --exclude=/mnt --exclude=/proc --exclude=/sys --exclude=/dev --exclude=/run --exclude=/tmp / /mnt/kali/

  14. After Copying: To edit configration for my partitions nano /mnt/kali/etc/fstab and edited it with following:

    UUID="blkid-of-/dev/loop1p1" / ext4 defaults 0 1UUID="blkid-of-/dev/loop1p2" none swap sw 0 0
  15. Mounting

    mount --bind /dev /mnt/kali/devmount --bind /proc /mnt/kali/procmount --bind /sys /mnt/kali/sysmount --bind /dev/pts /mnt/kali/dev/ptsmount --bind /run /mnt/kali/runchroot /mnt/kali
  16. nano /etc/apt/sources.list and remove all and following:

    deb http://http.kali.org/kali kali-rolling main contrib non-freedeb-src http://http.kali.org/kali kali-rolling main contrib non-free
  17. Set DNS

  18. apt update

    apt install -y kali-linux-default linux-image-amd64 grub-pc
  19. Install Grub

    grub-install /dev/loop1update-grub
  20. Exit and umount all

  21. Restarted and booted into windows

  22. In CMD (admin)

    bcdedit /set {guid} device vhd=[D:]\kali.vhdbcdedit /set {guid} osdevice vhd=[D:]\kali.vhdbcdedit /set {guid} path \grub\grubx64.exebcdedit /set {guid} bootmenupolicy Legacy
  23. bcdedit /enum

    enter image description here

    enter image description here

Problem:

When Booted into Kali Linux from dual boot menu it takes to windows repair, and give an error about winload.exe Error Code: 0xc0000225


Viewing latest article 17
Browse Latest Browse All 424

Latest Images

Trending Articles



Latest Images