📜 ⬆️ ⬇️

As I did Hot-Spot through Virtual Box

Good day, dear readers Habrahabr. Today I will tell you how I did Hot-Spot through detours (in the form of VirtualBox).

Some theory


Hot-Spot is a technology that allows you to make a Wi-Fi point from a device that has a Wi-Fi adapter.


Oracle Virtual Box is a program that allows you to create virtual machines with any characteristics for well-known operating systems.


Prehistory


One day, bored on one pair in a computer class, I got the idea that after all you can drag a Wi-Fi adapter from home USB and make Wi-Fi (it wasn’t in the office). Naturally, I forgot about the fact that I was not sitting under the admin, and having come a couple of weeks later, I realized all the bitterness of disappointment. But I did not give up and began to think what to do next.
')

Three ways


I am such a person that if I take up a cause that interests me, I will solve it until either I solve the problem or I can be 100% sure that the problem is unsolvable at this point in time. I had three options:


The real hero is not looking for easy ways.


Several machines with the following operating systems were available in VirtualBox:
- Ubuntu;
- WinXP;
- Win7.

Guess what I chose first? WinXP. If only I knew ...

First of all, I set up two (!) Networks. One via the wired internet, the other via the Wi-Fi adapter (this was the first error already). Put the driver in a virtual machine, launch the wizard for installing wireless networks, set the name and password, choose the manual method of installing the network on other devices and an error!


“Depending on the wireless network software running on the computer, the wireless network wizard may not work. Details are in Microsoft Knowledge Base Article 871122. ”
It upset me, I spat on the old XP and went to Ubuntu, where I actually didn’t find my happiness, because he didn’t even see the adapter.

Windows XP is dead, long live Windows 7!


My last chance to get Hot-Spot was Windows 7. By that moment, I realized that the adapter had to be connected as USB and not as a network, so I first checked it in XP (the situation has not changed), and then went to conquer the vast sevens. Windows 7 saw my Wi-Fi adapter (by the way, this is Asus WL-167G V3). I calmly downloaded the driver, I started to install them, and then again, bummer! Code 10!



Then I realized that there was clearly nothing to catch here, and I had to go home and check all this at home. At home, I decided to try to launch not via USB 1.0, but through the second version (after having installed the extension pack) and about a miracle, it worked! Having launched the command line, I launched the command line from the admin, entered the first command:

netsh wlan set hostednetwork mode=allow ssid="user” key="password" keyUsage=persistent 

Where ssid = ”user” is the name of the network, key = “password” is the password, mode = allow is the permission for network location mode and keyUsage = persistent - determines that the password will be saved and will not have to be entered every time virtual network.

We start our point:

netsh wlan start hostednetwork

Then we go to the network control center and go to the settings of the network adapter from which we get the Internet. There we go to the tab "Access" and put a tick in against "Grant access to other users ....". Everything, the Wi-Fi point is successfully working through the Virtual Box, and you can distribute free Wi-Fi!

To stop our point, write to the command line:

 netsh wlan stop hostednetwork 

As you can see, you can always find workarounds to get what you want!

So, what steps should be taken to bypass the entire system?

  1. Download Win7 / 8/10 image, Virtual Box and Virtual Box Extension Pack. Install Virtual Box and Virtual Box Extension pack and transfer to a USB flash drive (where do we have rights to work / study / from a neighbor?). Customize the car. In USB install version 2.0. In the network, specify the network bridge, and the adapter to choose the one that gives you the Internet. Install on VirtualBox system.
  2. Connect to the computer USB Wi-Fi adapter. In a virtual machine, go to the tab Devices-> USB -> (Name of your USB Wi-Fi adapter).
  3. Install your adapter firewood in a virtual machine.
  4. Drop a virtual machine on a flash drive / cloud
  5. You configure Hot-Spot on someone else's computer, through a virtual machine, as I described above.
  6. PROFIT!

If someone needs a step-by-step video instruction on how to install a hot-spot, then here is the link:

Source: https://habr.com/ru/post/352610/


All Articles