No network, no sudo, can only ping guest from guest ;-(

Help with issues regarding installation of Debian

No network, no sudo, can only ping guest from guest ;-(

Postby COROVICD » 2018-07-07 05:53

I installed the latest Debian Stretch on Oracle's VirtualBox v5.2.12 and Windows 7. Virtual Box had found my wired network adapter Intel(R) 82579LM Gigabit Networked Connection. I've chosen a bridged network.

During the installation DHCP server could not be found, so I went for manual configuration and typed in IP addresses:

Guest ........ 192.168.1.69 (available on my Home network)
Subnet mask .... 254.254.254.0
Default Gateway ... 8.8.8.8 8.8.4.4 (Google's public DNS servers)

VirtualBox Host Only IPv4 address ... 192.168.56.1

When installation got to Installing Package Manager, I selected country and everything went fine. Except, after the installation I found that none of these terminal commands can be found: sudo, ifconfig, /sbin/ifconfig, dig, netstat -antp, ethtool. Practically I can't even do diagnostics tools of the network, since these commands are not there, and because network is not working apt-get install xxxx fails at a point of trying to connect.

If I simply ping guest with: ping 192.168.1.69 it works fine. If I ping Win 7 host with: ping 192.168.1.67 I get "Destination Host Unreachable". I guess that means it's not firewall problem, but a total absence of network connection for the guest. When I ping VirtualBox Host Only IPv4 I get "Destination Host Unreachable"

On the Win 7 host "Local Area Network Connection Properties" there is item for "VirtualBox NDIS Bridged Network Driver" and it's saying "this device works properly".

My DNS server on Win 7 just has two radio buttons selected: "Obtain an IP address automatically" and "Obtain DNS Server Address Automatically".

I guess problem is that DNS server is not recognized during the installation, but I don't know how to fix it. I googled and tried all the above, but didn't get very far.

Any suggestions appreciated.
COROVICD
 
Posts: 9
Joined: 2018-07-06 20:10

Re: No network, no sudo, can only ping guest from guest ;-(

Postby Dai_trying » 2018-07-07 06:42

If you have enabled the network card as "Host-only Adapter" in your VM (VirtualBox Host Only IPv4 address ... 192.168.56.1) settings then you will not have a network connection, it will be set to "local" only, you could set the network card to "NAT" which should use the hosts network.
Dai_trying
 
Posts: 472
Joined: 2016-01-07 12:25

Re: No network, no sudo, can only ping guest from guest ;-(

Postby arochester » 2018-07-07 08:28

By default Debian does not use sudo. To become Root input
Code: Select all
su
When you have finished as Root input
Code: Select all
exit


You can install sudo if you want but you will need to configure it.

Grant Sudo Access (Optional)
If you don’t want to give sudo access to the users then you should skip these steps.
Code: Select all
apt-get install sudo

Code: Select all
usermod -a -G sudo <username>

Replace <username> with your username to which you want to grant sudo access.

Now logout & login to get sudo access to those users.
Source - https://linuxpanda.wordpress.com/2016/1 ... n-stretch/
arochester
 
Posts: 1269
Joined: 2010-12-07 19:55

Re: No network, no sudo, can only ping guest from guest ;-(

Postby arzgi » 2018-07-07 11:22

arochester wrote:By default Debian does not use sudo.


The installer already for some time now installs sudo if root pasword is left empty at installer. The first user added is then in the sudo group.

But then we could discuss, what is default...
arzgi
 
Posts: 190
Joined: 2008-02-21 17:03
Location: Finland

Re: No network, no sudo, can only ping guest from guest ;-(

Postby COROVICD » 2018-07-07 11:40

Guys, thank for quick responses.

My problem is network, not the sudo and about 5 other commands. Without network I can't download and install sudo.

Please just give me advice on sorting the network problem first. If you need more info, i'll dig it up for you.
COROVICD
 
Posts: 9
Joined: 2018-07-06 20:10

Re: No network, no sudo, can only ping guest from guest ;-(

Postby COROVICD » 2018-07-07 11:49

Dai_trying wrote:If you have enabled the network card as "Host-only Adapter" in your VM (VirtualBox Host Only IPv4 address ... 192.168.56.1) settings then you will not have a network connection, it will be set to "local" only, you could set the network card to "NAT" which should use the hosts network.


Sorry, I don't get it. I haven't set my network card to "Host-only Adapter", I've set it to "Bridged Adapter". I was following instructions from a YouTube video and the guy set it up as "Bridged adapter".

OK, I'll try NAT. But, as I understand, with NAT I can only SSH from PC to my BeagleBone, not other way around. Can I do it without reinstalling Debian (it takes 2 hours)?
COROVICD
 
Posts: 9
Joined: 2018-07-06 20:10

Re: No network, no sudo, can only ping guest from guest ;-(

Postby Dai_trying » 2018-07-07 14:40

Because you stated the address for the "Host-only Adapter" I thought you had set it up, otherwise there would be no IP address for it.

You can always set the network adapter as NAT (and allow DHCP) until you get whatever packages you need installed and then you can switch to whatever bridged connection you are happy with once you have the required packages to debug any problems.
Dai_trying
 
Posts: 472
Joined: 2016-01-07 12:25

Re: No network, no sudo, can only ping guest from guest ;-(

Postby COROVICD » 2018-07-07 14:52

Yeah, I am reinstalling with NAT right now. So far it didn't complain that it can't find network, so it looks good.

I didn't enable DHCP because I was never asked. On my host PC DHCP is enabled by default. Is that enough?
COROVICD
 
Posts: 9
Joined: 2018-07-06 20:10

Re: No network, no sudo, can only ping guest from guest ;-(

Postby Dai_trying » 2018-07-07 15:00

Yes, that should be ok, hope all goes well this time. :)
Dai_trying
 
Posts: 472
Joined: 2016-01-07 12:25

Re: No network, no sudo, can only ping guest from guest ;-(

Postby COROVICD » 2018-07-08 00:12

Guys, thanks a lot. Two re-installs later and it worked like a charm. This is my first success in installing Linux, in about 10 attempts. Doesn't look bad.

For anybody out there, after I selected NAT for Network Adapter in VirtualBox everything worked fine. During the installation DHCP on Win 7 was automatically recognized by installer and all the packages were downloaded from FTP repository. My original choice of "Bridging Adapter" was mistake.

Onward and Forwards ;-) (I am sure I'll be back soon, with more problems ;-)
COROVICD
 
Posts: 9
Joined: 2018-07-06 20:10


Return to Installation

Who is online

Users browsing this forum: No registered users and 2 guests

fashionable