LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 11-15-2015, 04:31 PM   #1
des_a
Senior Member
 
Registered: Sep 2006
Posts: 1,414
Blog Entries: 43

Rep: Reputation: 36
Mandriva on VBox on Windows 7: Help with Networking


I am trying to build a server. It is Mandriva Linux 2010.1, and I know it's old, but it is what works best for the server in question. It is now being built on a Virtual Box VM, running on Windows 7 (which I'll try upgrading to Windows 10 when available).

I wanted to use Mandriva Linux 2010.1 underneath and on top, which had less services to create on top, but for some reason, I could not install software on the guest, even though I could install software just fine on the host. I was using the virtualbox that shipped with that version. So now I am using Windows 7 underneath, and I tested and I do not have the same problem. Software will install fine on the guest.

But, Windows 7 cannot do a whole lot of server work for me, so it's basically just a host for the virtual machines to run on. So now the vmain definition looks much like the old main1 definition did.

I was trying to get DHCP to function, as I wanted to have the DHCP act for at least the virtual network, unless that is I can set up static DHCP reservations in a vbox DHCP server.

I am struggling with which network modes and which adapters to use, with as few adapters as possible, on each virtual machine.

I tried to use the Internet connection sharing feature of Mandriva, with a normal NAT interface, and a host-only interface. But the DHCP server won't start, that I was running on Mandriva Linux. How do I get networking to work as desired?
 
Old 11-15-2015, 06:35 PM   #2
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
I would like to help you, but I don't quite understand your setup and your problem.

It seems to me that you are running Mandriva in a VirtualBox VM on Windows.

Quote:
Originally Posted by des_a View Post
I was trying to get DHCP to function, as I wanted to have the DHCP act for at least the virtual network, unless that is I can set up static DHCP reservations in a vbox DHCP server.
Do you mean
  • DHCP client on the VM
  • DHCP server on the VM
  • DHCP server built into VirtualBox
  • DHCP server somewhere else
  • A combination of the above - please specify
  • None of the above - please specify

Quote:
I am struggling with which network modes and which adapters to use, with as few adapters as possible, on each virtual machine.
From your description, I am only aware of a single VM. What is running on the other VM? How are the VMs related? Are they supposed to communicate with each other, or with the physical network?

Quote:
I tried to use the Internet connection sharing feature of Mandriva, with a normal NAT interface, and a host-only interface. But the DHCP server won't start, that I was running on Mandriva Linux. How do I get networking to work as desired?
It seems that you are trying to run a DHCP server on a VM, but it doesn't start. Is there an error message or anything in the system log?
 
Old 11-15-2015, 09:49 PM   #3
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,302
Blog Entries: 28

Rep: Reputation: 6134Reputation: 6134Reputation: 6134Reputation: 6134Reputation: 6134Reputation: 6134Reputation: 6134Reputation: 6134Reputation: 6134Reputation: 6134Reputation: 6134
A "Host-Only" connection means that your VM will network only with other VMs on the same host under the same installation of VirtualBox. It will not grab a DHCP address from your router and will not connect with the internet or with other computers.

I know this because that's the type of connection Linux Voice recommended in their Kali tutorial several issues ago.

Last edited by frankbell; 11-15-2015 at 09:55 PM.
 
Old 11-15-2015, 09:54 PM   #4
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
Quote:
Originally Posted by frankbell View Post
Also, inside the VM, what is the output of ifconfig -a run in a terminal?
Your friendly network educator says: Forget ifconfig, learn how to use ip. Except if your system is ancient (which might be the case with Mandriva).

See also wikipedia.

Last edited by berndbausch; 11-15-2015 at 09:56 PM.
 
Old 11-15-2015, 09:57 PM   #5
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,302
Blog Entries: 28

Rep: Reputation: 6134Reputation: 6134Reputation: 6134Reputation: 6134Reputation: 6134Reputation: 6134Reputation: 6134Reputation: 6134Reputation: 6134Reputation: 6134Reputation: 6134
berndbausch, ip is on my todo list. I edited the reference to ifconfig out of my reply because I realized that, with a "Host Only" network, it was irrelevant to OP's issue.

Last edited by frankbell; 11-15-2015 at 09:58 PM.
 
Old 11-15-2015, 10:09 PM   #6
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
Quote:
Originally Posted by frankbell View Post
berndbausch, ip is on my todo list. I edited the reference to ifconfig out of my reply because I realized that, with a "Host Only" network, it was irrelevant to OP's issue.
I think it's the second time I pestered you with this, sorry!
 
Old 11-15-2015, 11:35 PM   #7
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,302
Blog Entries: 28

Rep: Reputation: 6134Reputation: 6134Reputation: 6134Reputation: 6134Reputation: 6134Reputation: 6134Reputation: 6134Reputation: 6134Reputation: 6134Reputation: 6134Reputation: 6134
Quote:
I think it's the second time I pestered you with this, sorry!
Funny. I don't feel at all pestered. My comment was not a complaint; it was an observation. I do indeed keep forgetting about the ip command.

I have a long long Linux todo list and I need the occasional reminder, and I appreciate yours.

Last edited by frankbell; 11-15-2015 at 11:36 PM.
 
Old 01-18-2016, 12:39 AM   #8
des_a
Senior Member
 
Registered: Sep 2006
Posts: 1,414

Original Poster
Blog Entries: 43

Rep: Reputation: 36
I figured it out finally. I needed Bridged Networking. I just needed to treat it like a real machine to make it work. I'd forgot some steps for adding the client to the router.
 
  


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
Windows 7 inside Vbox Don Graham Linux - Newbie 5 05-22-2014 06:16 AM
[SOLVED] vbox 4.0.2 - guest sabayon5.4 on win7 - mnt local gentoo from vbox sabayon? shinystuffrox Linux - Virtualization and Cloud 1 03-04-2011 01:10 AM
networking hard-disk to vbox j1alu Debian 7 10-07-2009 10:45 AM
Can't ping Linux box from Windows machine, and other networking oddities on Mandriva Adinsx88 Linux - Networking 2 05-10-2006 06:09 PM
Windows xp/mandriva networking problem faramir1 Linux - Networking 3 08-21-2005 04:48 AM

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

All times are GMT -5. The time now is 08:32 PM.

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