LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-03-2017, 08:12 AM   #1
miladhj
LQ Newbie
 
Registered: Oct 2017
Posts: 4

Rep: Reputation: Disabled
linux network


Hello
I can not install any apps with apt-get! You are in the vmare environment
I'm using NAT on the internet. I'm in vmare environment






[img]ice_screenshot[/img]

Last edited by miladhj; 10-03-2017 at 08:15 AM.
 
Old 10-03-2017, 06:20 PM   #2
Syndacate
Member
 
Registered: Aug 2008
Location: Santa Clara, CA
Distribution: Ubuntu, mainly. Too much stuff works out of the box O.o
Posts: 71

Rep: Reputation: 52
I would say it's most likely an issue with VMWare not providing the guest OS with internet.

What is the error you get when you run apt-get and can you ping an external server, ie.
Code:
ping -c 3 google.com
 
1 members found this post helpful.
Old 10-03-2017, 10:38 PM   #3
linxpatrick
Member
 
Registered: Oct 2010
Posts: 32

Rep: Reputation: 1
Could it be that you selected a local network in VMWare instead of creating a network bridge to you host's network?
 
Old 10-04-2017, 12:33 AM   #4
!!!
Member
 
Registered: Jan 2017
Location: Fremont, CA, USA
Distribution: Trying any&ALL on old/minimal
Posts: 997

Rep: Reputation: 382Reputation: 382Reputation: 382Reputation: 382
Welcome to LQ!!! If ping 8.8.8.8 doesn't work, look at: ip a; ip r
VirtualBox might work easier for a beginner who's not familiar with web-searching: basic network troubleshooting tutorials. Here's some VBox/general notes I recently posted.

Last edited by !!!; 10-04-2017 at 12:49 AM.
 
2 members found this post helpful.
Old 10-04-2017, 02:31 AM   #5
jsbjsb001
Senior Member
 
Registered: Mar 2009
Location: Earth, unfortunately...
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881

Rep: Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063
Quote:
Originally Posted by miladhj View Post
Hello
I can not install any apps with apt-get! You are in the vmare environment
I'm using NAT on the internet. I'm in vmare environment...
You can create a "bridged" network connection from your 'real' system (using your virtual machine software), then find out what the IP of your ISP's DNS server(s) are; add it to /etc/resolv.conf in your virtual machine(s).

I done it in Virtualbox and it worked straight away!

Here's an example of my resolv.conf;

Code:
#nameserver 8.8.8.8
nameserver 192.168.43.1
You will have to change the IP addresses in the example above, to match your ISP's DNS servers IP(s).
 
Old 10-04-2017, 02:38 AM   #6
miladhj
LQ Newbie
 
Registered: Oct 2017
Posts: 4

Original Poster
Rep: Reputation: Disabled
hack

Quote:
Originally Posted by linxpatrick View Post
Could it be that you selected a local network in VMWare instead of creating a network bridge to you host's network?
I want to enable the public ip
 
Old 10-04-2017, 03:58 AM   #7
miladhj
LQ Newbie
 
Registered: Oct 2017
Posts: 4

Original Poster
Rep: Reputation: Disabled
I want to activate the internet bridge in vmare, but it error can help guide you

this error::::

The network bridge on device 'VMnet0' is not running. The virtual machine will not be able to communicate with the host or with other machines on your network.

Failed to connect virtual device 'Ethernet0'.
 
Old 10-04-2017, 03:58 AM   #8
miladhj
LQ Newbie
 
Registered: Oct 2017
Posts: 4

Original Poster
Rep: Reputation: Disabled
I want to activate the internet bridge in vmare, but it error can help guide you

this error::::
The network bridge on device 'VMnet0' is not running. The virtual machine will not be able to communicate with the host or with other machines on your network.

Failed to connect virtual device 'Ethernet0'.
 
Old 10-04-2017, 04:19 AM   #9
!!!
Member
 
Registered: Jan 2017
Location: Fremont, CA, USA
Distribution: Trying any&ALL on old/minimal
Posts: 997

Rep: Reputation: 382Reputation: 382Reputation: 382Reputation: 382
Try putting your error message into Google. I get a lot of results. Why commercial VMware?

Maybe a more clear&precise description of what you did (your configuration) might enable those who use VMware to help you.

See: https://www.linuxquestions.org/quest...ar-4175596322/ Few use VMware; most use VBox

Last edited by !!!; 10-04-2017 at 04:24 AM.
 
  


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
Linux network architecture - local network vs. LAN network rule LnxNewUser Linux - Newbie 2 11-19-2016 04:49 AM
[SOLVED] problem: Wind River Linux is not detecting the network cards (network interfaces) NM04 Linux - Newbie 17 12-06-2013 09:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:14 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
Open Source Consulting | Domain Registration