0% found this document useful (0 votes)
212 views7 pages

How To Upload-Install Kali Linux On Google Cloud

The document provides instructions for uploading Kali Linux to Google Cloud in 7 steps: 1. Prepare a Kali Linux virtual machine using VirtualBox and configure it with SSH access. 2. Convert the virtual disk image format from .qcow2 to disk.raw and compress it into a .tar.gz file. 3. Create a bucket in Google Cloud storage and upload the compressed disk image file. 4. Import the image into the custom images list to make it available for launching virtual machines. 5. Test that the imported image works properly before setting up remote graphical access using NoMachine.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
212 views7 pages

How To Upload-Install Kali Linux On Google Cloud

The document provides instructions for uploading Kali Linux to Google Cloud in 7 steps: 1. Prepare a Kali Linux virtual machine using VirtualBox and configure it with SSH access. 2. Convert the virtual disk image format from .qcow2 to disk.raw and compress it into a .tar.gz file. 3. Create a bucket in Google Cloud storage and upload the compressed disk image file. 4. Import the image into the custom images list to make it available for launching virtual machines. 5. Test that the imported image works properly before setting up remote graphical access using NoMachine.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

[Link] [Link]/InfoTechca By: S.A.

Haseeb

How to Upload/Install Kali Linux on Google Cloud


1. Prepared your system in a VirtualBox environment
2. Configure SSH or user login access on the image
3. Convert a .vdi or .qcow2 disk image to [Link] format
4. Compress the disk image file
5. Create a bucket and upload the file
6. Import the image to your custom images list
7. Test the imported image to ensure it works
8. Setup GUI Remote access to Linux using NoMachine
Page No: 1
[Link] [Link]/InfoTechca By: [Link]

1. Prepared your system in a VirtualBox environment


A. Create Virtual Machine
1. Name: Kali
2. Type: Linux
3. Version: Debian (64-bit)
B. Create Virtual Hard Disk
1. File Size: 20GB
2. HDD file type: QCOW (QEMU Copy-On-Write)
C. Settings
1. System > Motherboard > Boot Order: Uncheck Floppy
2. Network > Adapter 1 > Advanced > Adapter Type:
Paravirtualized Network (virtio-net)
Page No: 2
[Link] [Link]/InfoTechca By: [Link]

Important Steps: otherwise, it will not work.

D. Partition Disk: Manual


1. Select your Hard disk and click Continue
2. Create new empty partition table on this device? – Yes
3. Select: > pri/log 20 GB FREE SPACE and Click Continue
4. Select: Create a new partition and Click Continue
5. New Partition Size: max and Click Continue
6. Type for the new partition: Primary and Click Continue
7. Select: Done setting up the partition and Click Continue
8. Select: Finish Partitioning & write changes to disk
9. Do you want to return to the partitioning menu? – No
10. Write the Changes to disks? – Yes
Page No: 3
[Link] [Link]/InfoTechca By: [Link]

2. Configure SSH or user login access on the image


Login with created user during installation in my case.
User: haseeb Pass: infotech and Open up the Terminal.

Set root account password.


$ sudo -i
# passwd
# New Password: toor
# Retype New Password: toor

Change the SSH configuration file and Un-hash (#) these two entries
# nano /etc/ssh/sshd_config

PermitRootLogin yes
PasswordAuthentication yes
Ctrl+o to save changes and hit enter
Ctrl+x to exit
Page No: 4
[Link] [Link]/InfoTechca By: [Link]
permanently enable the SSH service to start on every reboot.

# systemctl enable [Link]


# systemctl start [Link]
# systemctl status [Link]

Make sure you have SSH access:

# ssh root@localhost

Are you sure you want to continue connecting (yes/no/[fingerprint])? Yes


root@localhost’s password: toor
root@kali:~# exit

# ssh haseeb@localhost

Are you sure you want to continue connecting (yes/no/[fingerprint])? Yes


haseeb@localhost’s password: infotech
haseeb@kali:~# exit
root@kali:~# poweroff

Page No: 5
[Link] [Link]/InfoTechca By: [Link]

3. Convert a .vdi or .qcow2 disk image to [Link] format

Open Windows Command Prompt: Win+R then type cmd


cd "\Program Files\Oracle\VirtualBox"
C:\Program Files\Oracle\VirtualBox>

Convert .qcow disk image to [Link] format


In my case source locations: H:\0-VirtualBox\Kali\[Link] Destination location F:\[Link]

Very Important: do not rename [Link] to any other name but [Link]

C:\Program Files\Oracle\VirtualBox>

VBoxManage clonemedium H:\0-VirtualBox\Kali\[Link] F:\[Link] --format RAW

Page No: 6
[Link] [Link]/InfoTechca By: [Link]

4. Compress the [Link] image file


On Windows Open up your WSL Linux or WSL Ubuntu.

If you do not have WSL Linux, installed first, we are going to use tar for compression.

Change directory to [Link] file location: In my case

$ cd /mnt/f/
tar --format=oldgnu -Sczf [Link] [Link]

Very Important: do not rename [Link] otherwise it will not work.

Page No: 7

You might also like