Tuesday, October 9, 2018

How to enable internet in Virtual Machine?

After creating a VM as described in the previous article, how to enable internet in the VM?  

To enable internet in VM created through VirtualBox, open the VirtualBox app, click on ‘Settings’ and go to the ‘Network’ tab.







From the ‘Attached to:’ drop-down list select ‘Bridged Adapter’ and for ‘Name:’ select the name of your adapter.



Open ‘Advanced’ option and for ‘Promiscuous Mode:’ select ‘Allow VMs’.




Click ‘Ok’. Now you will be able to browse the internet in the VirtualBox VM.


If you are not sure what is the name of your adapter, you can find the name of your adapter by going to ‘Control Panel’ -> Network and Internet -> Change Adapter Settings








Here you right click on the adapter that is currently up and connected to the internet and select properties, you will get the name of your adapter.




Or

you can use below PowerShell command:

Get-NetAdapter -physical | select Name, InterfaceDescription, Status | where status -eq 'up'






#enable #internet  #virtualbox #vm #virtualmachine #adapter


Thanks VV!!

Friday, October 5, 2018

How to create a Virtual Machine?



There are several applications you can use to create a virtual machine like VirtualBox,  Vmware Player, Vmware Fusion and so on. Here we will create a Virtual Machine using VirtualBox application. VirtualBox is an Oracle product and is free to download and use. You can download from this link.

After installing VirtualBox application, you see below screen once open the VirtualBox app. I already created a VM named ‘TestVM’ which you can see.





Click on ‘New’ to start creating a new virtual machine. In the next window, you need to give a name to the VM, here I’m giving as ‘TestVM1’ and you need to select which type of VM you want to create “Type” indicates which OS you are going to install Windows, Linux and so on. Here I selected Windows and in “Version” you need to select which version of the OS you are going to install. I selected Windows Server 2016.






In the next window, you need to select the RAM size for your VM.





In the next window, you need to select if you want to create a new Hard Disk or use an already existing one. Here I am creating a new Virtual Hard Disk.




Next, you need to select the type of Hard Disk, I am using the default option.





Next, you need to select how the storage should be allocated dynamically or fixed. I am using the default option here as well.



Next window you need to select where you want to store your virtual hard disk file (“TestVM1.vdi’) and what is the size you want to allocate to it. The default is 50GB and here I selected 20 GB.




Next click on ‘Create’ and you can see a new virtual machine named ‘TestVM1’ on the left side of the window.




Before starting the VM we first need to load the setup files for Windows Server 2016. I have an ISO image of Windows Server 2016 already and first I will add it as a disk to the VM TestVM1. To do that click on ‘Settings’ and go to ‘Storage’ tab as shown below:




Click on ‘+’ icon below and select  ‘Add IDE Controller’, now click on the ‘+’ icon of the IDE controller you added and click on ‘Choose Disk’. Now select the ISO image you want to add. 








After selecting you will see like this.




Click on ‘Ok’.

Now double click on ‘TestVM1’ to start the VM. It will start the VM and start loading the files.






Select the language options and click on Install.





Once the installation is done your VM will be ready to use.



Thanks VV!!




#VirtualMachine #VirtualBox #VM #Virtual Machine #Create #Virtual Box