LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-30-2013, 02:43 AM   #1
sreejithpadmanabhan
LQ Newbie
 
Registered: May 2013
Posts: 2

Rep: Reputation: Disabled
Post Not able to run wget or ping from Linux running on virtualbox


Hi,
I am new to Linux. I installed Linux on virtualbox and when I try to give the command wget www.google.com, it gives me a error as below:-

Resolving www.google.com ... failed : Temporary failure in name resolution.

When I try to give ping www.google.com, it gives an error stating
ping : unknown host www.google.com

Can anyone help me in this regards.

Regards,
Sreejith Padmanabhan
 
Old 05-30-2013, 02:52 AM   #2
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: rhel 5x,6.0,6.2, centOS 5x,6.0,6.2
Posts: 1,194
Blog Entries: 4

Rep: Reputation: 221Reputation: 221Reputation: 221
There can be two things

1. You have not set your DNS server
2. Networking is not properly configured in your virtual box or Linux machine
Follow this link for more info
http://www.virtualbox.org/manual/ch06.html
 
Old 05-30-2013, 03:06 AM   #3
AbidDhanaiser
Member
 
Registered: May 2013
Location: Faisalabad, Pakistan
Posts: 72

Rep: Reputation: Disabled
ping 8.8.8.8
then try
 
Old 06-01-2013, 06:10 AM   #4
AbidDhanaiser
Member
 
Registered: May 2013
Location: Faisalabad, Pakistan
Posts: 72

Rep: Reputation: Disabled
Quote:
Originally Posted by sreejithpadmanabhan View Post
Hi,
I am new to Linux. I installed Linux on virtualbox and when I try to give the command wget www.google.com, it gives me a error as below:-

Resolving www.google.com ... failed : Temporary failure in name resolution.

When I try to give ping www.google.com, it gives an error stating
ping : unknown host www.google.com

Can anyone help me in this regards.

Regards,
Sreejith Padmanabhan

in virtual machine setting ,,
in network setting
choose Bridge setting for network
if not work then choose NAT setting
 
Old 06-01-2013, 01:44 PM   #5
jefro
Moderator
 
Registered: Mar 2008
Posts: 15,691

Rep: Reputation: 2264Reputation: 2264Reputation: 2264Reputation: 2264Reputation: 2264Reputation: 2264Reputation: 2264Reputation: 2264Reputation: 2264Reputation: 2264Reputation: 2264
As the second post suggested, the OP needs to learn each way a VM might connect and interact with the host. There are actually 3 ways it can connect. We'd need to know how the OP attached the client to the host.

When we find out that we can suggest how to correct any of the ip and dns issues that may be there. Fist the IP routing needs to be correct, all needed ports need to be open, and all resolver or other entries need to be checked.

Knowing what version or disto would also be helpful.

Last edited by jefro; 06-01-2013 at 01:45 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Smallest Linux distribution to run VirtualBox liparo Linux - Newbie 13 01-15-2014 10:40 AM
LXer: How to run Linux Mint Debian Cinnamon in VirtualBox LXer Syndicated Linux News 1 04-26-2012 08:17 PM
Can ping but can't wget - strange network behavior donv2 Linux - Networking 1 04-29-2011 11:47 AM
Smallest linux live distribution for virtualbox to run under windows cola Linux - Distributions 4 12-17-2010 02:39 PM
ProxyServer: how to ping,nslookup,wget,curl etc from client PC ~=gr3p=~ Linux - Networking 2 06-10-2005 08:16 AM


All times are GMT -5. The time now is 03:23 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration