Last updated using Ubuntu 18.04.2 (amd64)
To check if your machine supports Hyper-V, fire up the Command Prompt (cmd.exe
) and enter systeminfo.exe
At the end of the output, you will see an entry named Hyper-V Requirements
.
If all you see are No
, you need to enable hardware virtualization in BIOS. Otherwise, proceed
Open Windows Features
(you can search for it in search box), check Hyper-V.
Click OK
and wait for reboot
You can find and download your favorite ubuntu release here
Open Hyper-V Manager
(you can search for it in search box).
In Action
menu, select New -> Virtual Machine...
Then, follow the wizard to create a virtual machine:
Very discriptive name
Use generation 1
2GB should be sufficient. Customize based on need and available system resources
We will configure network connection later
16GB should be sufficient for a guest OS. Customize based on need and available system resources
We will use the Ubuntu image you downloaded earlier to install OS
Looks right
Voilà!
Double click on your newly created virtual machine.
Click start
in the new window to fire it up, and you shall be welcomed by Ubuntu:
Select install and follow the guide
Whatever keyboard you use...
Basic or FULL DELUXE VERSION ?
And yes we are going to erase disk for re-formatting. We are in a new virtual realm so there is nothing to wipe really.
Continue
Where am I?
Who am I?
Almost there, just restart
NOTE: If virtual machine is stuck on prompt to remove disk and reboot, just Turn Off...
the virtual machine in Hyper-V manager and start it again
YAY! ✧◝(⁰▿⁰)◜✧
Remember that we didn't configure network connection right? We will do that now
First, shut down the virtual machine and go to Hyper-V Manager
and in Action
menu select Virtual Switch Manager...
Create a new Internal virtual switch. This allows us to connect to the virtual machine from hosting machine, using stuff like ssh
But, but, I want connect to the Internet!
To connect our virtual machine to the internet, open Network and Sharing Center
in Control Panel
Select an active internet connection and click Properties
:
In the Sharing
tab, Allow other network users to connect through this computer's network connection
and select vEthernet (Internal)
in Home networking connection
In Hyper-V Manager
, select your virtual machine and in Action
menu, select Settings...
In Network Adaptor
, select the internal network switch you created earlier.
This should get you online. Enjoy!
- Go to
Settings -> Network -> Network Proxy
- For system wide proxy on Ubuntu 18 (Original Post Here)
- Edit
/etc/environment
to include:http_proxy=http://username:password@host:port/ ftp_proxy=ftp://username:password@host:port/ https_proxy=https://username:password@host:port/
- Edit
/etc/apt/apt.conf.d/80proxy
to include:Acquire::http::proxy "http://username:password@host:port/"; Acquire::ftp::proxy "ftp://username:password@host:port/"; Acquire::https::proxy "https://username:password@host:port/";
- Edit
You can find an intro to UNIX terminal here