Can I Boot my Physical Kali Live USB Drive Inside VirtualBox?
I have a working Kali Linux Live USB drive, with persistance & encryption. I want to install Android Debug Bridge (aka "Android Bridge Tools") on this USB drive so that I can connect to the internet via my Android phone.
I've recently learned that i386 Architecture, and two other library files were left off of the Kali Distro, and they need to be installed in order for Android Tools to work. The problem is the android is my only source of internet atm, and I can't access the internet from Kali Live. So I've installed VirtualBox, and have a Kali Live image loaded and working, and I've managed to successfully install the i386 architecture on the virtual Kali Live O/S, so in terms of "proof of concept" it works just fine. The problem is how do I "boot" my actual, physical USB drive in VirtualBox so that I can use "apt get" to download and install the necessary package and files to get the i386 architecture and two other library files. I tried to navigate to the USB drive from within VirtualBox, and I got a Windows message saying that the USB needed to be formatted and do I want to format it now. The only thing I can think of is to: 1) Image the USB drive. 2) Mount the image in VirtualBox 3) Add the i386 architecture to the image. 4) Write the image to the USB drive. Which sounds pretty "long-way-round" to me, if it's even possible. Help? |
you can read the documentation of virtualbox about: how can you use a real usb port iside a vm.
And again, using kali will make only troubles for you, using a more user friendly distro will give you much easier way... But you know... |
Quote:
|
Quote:
Yes. Read the documentation. Ignored. |
Quote:
|
|
you could do a silly thing like adding yourself to disk group
and add that as a disk in VirtualBox a safer method would be to create/modify udev rules to change the group of that one device to your own group but setting up VirtualBox with USB passthrough is the correct solution |
My actual experience using Kali is very limited. Here is a little less drivel.
As far as I know you can not directly boot a USB drive via VirtualBox. The USB drive needs to be converted to a VMDK image file first. While the actual documentation does not provide detail steps there are many threads that post the exact commands. There are tools to convert a VMDK image back to an ISO image but I have not tried using them. To access a USB drive from within a VirtualBox guest you need to install the extension pack and then connect the drive. Once the drive is connected to the guest you can then mount its filesystems but I am not sure of the exact steps since the persistence partition is encrypted and you might need to setup luks. I do not know if it is possible and I don't know how the partition is configured so I have no idea how to copy the files from the virtual machine to the USB drive and have it work once you reboot from the USB again. |
I used to use LVM2 for VirtualBox kvm/qemu xen
instead of creating Virtual disks I would create LV and add block device directly when configuring the VM Obviously you need rw to those block devices ( hence disk group or udev rules ) the VM just sees the block device as a raw disk VirtualBox "extra" usb passthrough ( as far as I remember ) doesn't require special drivers on the guest OS , the VM would treat a USB mass storage as USB mass storage. I never tried usb passthrough with kvm or xen but I guess it is possible. however, I'm confused with the end goal which appears to be to install adb to enable network tethering. I would just tether the android to the PC and configure the VM to use NAT or setup some network bridge I don't recall exactly what is involved with the tethering with respect to created net. devices |
ok, was thinking
download the required packages boot kali mount filesystem where the required packages were downloaded to install tether |
Quote:
Quote:
Quote:
HINT: "Kali" is a top-secret code word for DEBIAN. Here's the Winner: Quote:
Quote:
Quote:
Quote:
Quote:
Ridiculous. Some of you people are ridiculous, and if you had a lick of common sense and self-awareness, you'd be embarrassed and ashamed. Here's what you people need to know about me. You see my name anywhere on the internet, and you think "That's the guy that is going to LEARN KALI. The ONLY ONE, TOO. Somewhere, there are two rats copulating in an alley under a dirty mattress, and that guy doesn't give TWO FORNICATING RATS about whether or not we approve." |
yeah, my mistake I switched to some short hand based on kali reference
if all you want is to get access to some files with kali usb I offered a perfectly practical solution with mounting the filesystem with pre-downloaded files. admittedly I did leave out detail, but the concept was there. If you had asked me to elaborate I may have become more verbose. However, your response is pitiful and I do not suffer fools gladly. I wish you luck. |
Quote:
|
Quote:
|
@Johnny Faster,
You've been a member of LQ long enough to know to be respectful and also to know that there are no guarantees that people can solve every problem. Please avoid the posts attacking your fellow LQ members. At the very least, people have been respectful enough to try. |
All times are GMT -5. The time now is 11:18 AM. |