Import OVA file to VirtualBox

At the moment, I am making a new project, a web-based project, so I need a web server for testing it.

So, I decided make a virtual machine with a Ubuntu Server and install on it a LAMBDA configuration.

I did it (I will post it the tutorial about how I did it, step by step), but that is not the most important thing in this post.

After a while, I download from Internet a Virtual Machine with a LAMBDA configuration preinstalled and I wanted to test it, but it was in a strange format: it was a OVA file.

Searching about it, I found this description:

«Package that contains files used to describe a virtual machine; includes an .OVF descriptor file, optional manifest (.MF) and certificate files, and other related files; saved in a single archive using .TAR packaging.» –fileinfo.com

So, that’s good, now I knew what could I do. I opened VirtualBox and followed these steps:

  1. Click on File > Import Appliance… (or press Crtl-I)
  2. In the new window, choose the OVA file and press Next
  3. In the next window, config as you want and click Import
  4. Nothing more to do! After this, your new Virtual Machine is ready, enjoy it!

 

Image credit from http://i.kinja-img.com/gawker-media/image/upload/ptxgwgvtycaizkaxapqx.jpg

[BATCH] Get your current local IP

[Updated 29/10/2015] Tested in Windows 10, it works. Remember that this script only give you the first IP that it finds so if you have more than one network interface on, you will get only one. Maybe I will release a new script that gives you all of the computer IPs.

Today, I was testing some programs and I needed to know my local IP a lot of times so I decided to do a bat script to get it as quickly as I could, so I will post it here, and if someone need it, take and use it (I like that if you use the code, you would say that I did it), so here is:

This code is to execute in the command prompt (the console):

@for /f "delims=[] tokens=2" %a in ('ping %computername% -4 -n 1 ^| findstr "["') do (@echo Computer IP: %a)

And this code is to execute in a batch script (only change %a variable to %%a):

@for /f "delims=[] tokens=2" %%a in ('ping %computername% -4 -n 1 ^| findstr "["') do (@echo Computer IP: %%a)

Note: It works in Windows XP, Vista, 7, 8 and 8.1 (in Windows 10 is possible but I haven’t tested yet)
Note 2: It works in systems with IPv6 protocol enabled because I set the ping command with the -4 parameter, so it will get only the IPv4 IP)