You are not logged in.

#1 2014-11-05 22:08:43

Melab
Member
Registered: 2014-11-05
Posts: 17

ping: unknown host

I'm running the current version of Arch Linux inside VMware Player 6.0.4 on Windows 7. This installation is on a laptop which I already have successfully connected to WiFi both natively and in other virtual machines. I tried to install sudo, but I received a bunch of error messages about not being able to find the host. I checked this with ping www.example.com and got the same thing. Is there any reason for why Arch Linux is failing to resolve these domain names? How do I fix it? I've looked around the forums already and none of what I read either worked or was relevant to my situation.

Offline

#2 2014-11-05 22:15:00

alphaniner
Member
From: Ancapistan
Registered: 2010-07-12
Posts: 2,810

Re: ping: unknown host

It sounds like networking is not set up in the VM.


But whether the Constitution really be one thing, or another, this much is certain - that it has either authorized such a government as we have had, or has been powerless to prevent it. In either case, it is unfit to exist.
-Lysander Spooner

Offline

#3 2014-11-05 22:18:23

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,238
Website

Re: ping: unknown host

Post the output of:

ip a s
ip r s
cat /etc/resolv.conf

Offline

#4 2014-11-06 01:30:14

Melab
Member
Registered: 2014-11-05
Posts: 17

Re: ping: unknown host

fukawi2 wrote:

Post the output of:

ip a s
ip r s
cat /etc/resolv.conf

Command:

ip a s

Output:

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65336 qdisc noqeue state UNKNOWN group default
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet ::1/128 scope host
       valid_lft forever preferred_lft forever
2: eno16777736: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
       link/ether XX:XX:XX:XX:XX:XX brd ff:ff:ff:ff:ff:ff

Keeping that one MAC address private with "XX:XX:XX:XX:XX:XX".

Command:

ip r s

Output:
Nothing

Command:

cat /etc/resolv.conf

Output:

#
# /etc/resolv.conf
#
search localdomain
nameserver 198.168.8.2

# End of file

"nameserver 198.168.8.2" is exactly what I have in my Ubuntu VM…I think. Now I'm not so sure. I copied that over from the Ubuntu VM, so maybe I missed a digit.

Offline

#5 2014-11-06 01:34:44

Melab
Member
Registered: 2014-11-05
Posts: 17

Re: ping: unknown host

alphaniner wrote:

It sounds like networking is not set up in the VM.

Maybe, but I know that VMware Player's network connection work with all my other machines.

Off topic: An anarcho-capitalist is the last thing I would've expected to see here. Not that it's weird, just that it's out of the blue.

Offline

#6 2014-11-06 01:45:11

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,238
Website

Re: ping: unknown host

OK, so you haven't configured your networking -- have you actually installed, or are you just running the installation livecd?

Melab wrote:

Keeping that one MAC address private with "XX:XX:XX:XX:XX:XX".

There's nothing inherently private about mac addresses by the way.

Offline

#7 2014-11-06 14:34:06

alphaniner
Member
From: Ancapistan
Registered: 2010-07-12
Posts: 2,810

Re: ping: unknown host

Melab wrote:
alphaniner wrote:

It sounds like networking is not set up in the VM.

Maybe, but I know that VMware Player's network connection work with all my other machines.

Yeah, that was poorly worded. I meant it looked like you don't have networking configured in your guest as fukawi2 (the resident networking guru) had you demonstrate.

Off topic: An anarcho-capitalist is the last thing I would've expected to see here. Not that it's weird, just that it's out of the blue.

FTR, a lot of ancaps use and advocate for free software.


But whether the Constitution really be one thing, or another, this much is certain - that it has either authorized such a government as we have had, or has been powerless to prevent it. In either case, it is unfit to exist.
-Lysander Spooner

Offline

#8 2014-11-06 16:59:19

Melab
Member
Registered: 2014-11-05
Posts: 17

Re: ping: unknown host

fukawi2 wrote:

OK, so you haven't configured your networking -- have you actually installed, or are you just running the installation livecd?

I've installed it.

fukawi2 wrote:
Melab wrote:

Keeping that one MAC address private with "XX:XX:XX:XX:XX:XX".

There's nothing inherently private about mac addresses by the way.

Please explain.

Offline

#9 2014-11-06 22:02:14

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,238
Website

Re: ping: unknown host

Melab wrote:

I've installed it.

OK, so you've missed something in the process of configuring your network. Go back over Beginners Guide and Network Configuration pages in the wiki and let us know if/where you get stuck.

Melab wrote:

Please explain.

http://superuser.com/questions/187421/w … l-about-me

Offline

#10 2014-11-06 22:53:36

alphaniner
Member
From: Ancapistan
Registered: 2010-07-12
Posts: 2,810

Re: ping: unknown host

In addition to what Trilby linked, your MAC is probably chosen from a range of MACs used by every version of Player, if not every VMware hypervisor. And you could probably change it too.


But whether the Constitution really be one thing, or another, this much is certain - that it has either authorized such a government as we have had, or has been powerless to prevent it. In either case, it is unfit to exist.
-Lysander Spooner

Offline

#11 2014-11-10 04:43:19

Melab
Member
Registered: 2014-11-05
Posts: 17

Re: ping: unknown host

fukawi2 wrote:
Melab wrote:

I've installed it.

OK, so you've missed something in the process of configuring your network. Go back over Beginners Guide and Network Configuration pages in the wiki and let us know if/where you get stuck.

Melab wrote:

Please explain.

http://superuser.com/questions/187421/w … l-about-me

I'm not sure if should use the guide for wired configurations or the guide for wireless configurations because I don't know what VMware Player's interface is seen by the guest operating system as.

Offline

#12 2014-11-10 04:45:20

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,238
Website

Re: ping: unknown host

Melab wrote:

I'm not sure if should use the guide for wired configurations or the guide for wireless configurations because I don't know what VMware Player's interface is seen by the guest operating system as.

The interface VMware presents to the guest is a bog-standard ethernet (wired) connection.

Offline

#13 2014-11-10 14:44:50

Melab
Member
Registered: 2014-11-05
Posts: 17

Re: ping: unknown host

fukawi2 wrote:
Melab wrote:

I'm not sure if should use the guide for wired configurations or the guide for wireless configurations because I don't know what VMware Player's interface is seen by the guest operating system as.

The interface VMware presents to the guest is a bog-standard ethernet (wired) connection.

Okay, thanks. I found out that running

sudo systemctl start dhcpcd@eno16777736.service

fixed it, but this is required on every boot up. Is there some way I can hard wire the information this command configures?

Offline

#14 2014-11-10 15:22:00

MustangXY
Member
Registered: 2014-11-06
Posts: 8

Re: ping: unknown host

Melab wrote:

I found out that running

sudo systemctl start dhcpcd@eno16777736.service

fixed it, but this is required on every boot up. Is there some way I can hard wire the information this command configures?

I am no expert in the use and configuration of virtual machines, but perhaps the standard

 sudo systemctl enable dhcpcd@your_interface.service 

works in this case too.
MXY

Last edited by MustangXY (2014-11-10 15:22:33)

Offline

#15 2014-11-23 01:44:48

Melab
Member
Registered: 2014-11-05
Posts: 17

Re: ping: unknown host

MustangXY wrote:
Melab wrote:

I found out that running

sudo systemctl start dhcpcd@eno16777736.service

fixed it, but this is required on every boot up. Is there some way I can hard wire the information this command configures?

I am no expert in the use and configuration of virtual machines, but perhaps the standard

 sudo systemctl enable dhcpcd@your_interface.service 

works in this case too.
MXY

I'm not sure. Does that create any persistent configurations?

Last edited by Melab (2014-11-23 02:38:12)

Offline

#16 2014-11-23 19:13:45

MustangXY
Member
Registered: 2014-11-06
Posts: 8

Re: ping: unknown host

Melab wrote:

I'm not sure. Does that create any persistent configurations?

Yes, it does. From this systemd wiki section you can read:

Activate a unit immediately:

# systemctl start unit

and

Enable a unit to be started on bootup:

# systemctl enable unit

so "enable" is basically a boot-time "start" embedded in the system initialization sequence.
I hope it helped clearing your doubts.
MXY

Offline

#17 2014-11-24 16:17:31

jajacool
Member
Registered: 2014-08-20
Posts: 10

Re: ping: unknown host

If you are using VMware your virtual machine will always connect on a Ethernet connection, not wireless.
First you will need to bring up the Ethernet interface up

ip link set eno16777736 up

next you will need to get an IP address from DHCP

 dhcpcd 

Once you do this ping 8.8.8.8, which is google.com
If you are unable to get connection verify that the ethernet interface is up by running

ip link

You can run

ip addr

to see if you have an inet address

Note you will not need to run the dhcp service once you have an ip address, because VMware dhcp server will give you an almost static ip address which will not change when you connect to the internet

Last edited by jajacool (2014-11-24 16:20:12)

Offline

#18 2014-11-28 05:22:15

Melab
Member
Registered: 2014-11-05
Posts: 17

Re: ping: unknown host

MustangXY wrote:
Melab wrote:

I'm not sure. Does that create any persistent configurations?

Yes, it does. From this systemd wiki section you can read:

Activate a unit immediately:

# systemctl start unit

and

Enable a unit to be started on bootup:

# systemctl enable unit

so "enable" is basically a boot-time "start" embedded in the system initialization sequence.
I hope it helped clearing your doubts.
MXY

No, that didn't work either.

Offline

#19 2014-11-28 05:25:05

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,238
Website

Re: ping: unknown host

Melab wrote:

No, that didn't work either.

That is unhelpful almost to the point of being help vampirism. Help us to help you, give us INFORMATION. We don't have access to your computer, we can't see what is going on. Post the exact commands you used, show us how you've determined it "didn't work". Too much information is better than no information.

Offline

#20 2014-11-28 05:26:12

Melab
Member
Registered: 2014-11-05
Posts: 17

Re: ping: unknown host

jajacool wrote:

If you are using VMware your virtual machine will always connect on a Ethernet connection, not wireless.
First you will need to bring up the Ethernet interface up

ip link set eno16777736 up

next you will need to get an IP address from DHCP

 dhcpcd 

Once you do this ping 8.8.8.8, which is google.com
If you are unable to get connection verify that the ethernet interface is up by running

ip link

You can run

ip addr

to see if you have an inet address

Note you will not need to run the dhcp service once you have an ip address, because VMware dhcp server will give you an almost static ip address which will not change when you connect to the internet

Will that persist through reboot?

Offline

Board footer

Powered by FluxBB