LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices


Reply
  Search this Thread
Old 04-27-2014, 01:07 PM   #1
gentisle
Member
 
Registered: May 2005
Location: Wisconsin, USA
Distribution: LinuxMint, OpenBSD
Posts: 263

Rep: Reputation: 9
Is there an ifconfig for VirtualBox? (pfSense guest)


Hi, I'm looking for a way to get access to pfSense in VirtualBox. Host is WinXP pro. VirtualBox 4.3.10r93012. pfSense 2.1.1 i386. XP pro has the Resource Kit and (MS) Services for Unix installed.
The host is an HP laptop, and the pfsense addresses are: WAN - on a DHCP, so different every time I connect to a different wifi. (I travel alot). And LAN: 192.168.1.1 - the default. But neither IE nor Firefox will access the webgui of pfSense (FF gives the "Problem loading page" error). So I went to the pfSense site, and read the install page, booted the live CD image, configured from the text menu, then installed (option 99) to the virtual HDD. I've tried setting both network cards to NAT, Bridged, Internal Host Only, in various combinations, and I simply cannot get to the webgui. So I was hoping that I could use an 'ifconfig' like command in VirtualBox (which I couldn't find anything like that in the VB manual) to list addresses, and hopefully that would allow me access. I've searched for Youtube videos and documents elsewhere on how to configure pfSense (in VirtualBox), but so far they all say bascially the same thing, and it makes me wonder why I cannot access the webgui like everyone else. Do I simply need a wired connection for the host and always use the same addresses (in other words, am I asking too much from VirtualBox and pfSense and my constant travelling?) Perhaps I'm asking the wrong question, and I just need to understand all about networks to be able to setup a whole network? You experts, what am I looking for? Thanks.
gentisle
 
Old 04-27-2014, 07:55 PM   #2
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,321
Blog Entries: 28

Rep: Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141
I'm not quite clear on what you are asking. It seems to me that this is not an issue with VirtualBox, but with the pfsense VM.

ifconfig is not a VirtualBox command, it is a Linux command. In every Linux distro I've run in VirtualBox, I've been able to run the ifconfig command within the VM.

I've not used pfsense, but it seems to me that, for an external command to reach the pfsense VM, port-fowarding for the appropriate port to the VM would need to be set up in your router, and that same port must be open in the VM's firewall. Consequently, the pfsense virtual instance must needs a static ip address within the router's subnet, which necessitates a bridged adapter for the VM.

Just my shot in the dark.

Last edited by frankbell; 04-27-2014 at 08:01 PM.
 
Old 04-28-2014, 02:52 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,978

Rep: Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624
A client on a vm has a few ways to configure. One is to use Bridged where normally the host's ip will appear on the client.

Second is NAT where the VM has a virtual router. One can assign an IP within the range on the virtual router by some static address either ip command or ifconfig or other means.

There is also a local virtual network which in some cases may be useful.

Some vm's have a way to assign the ip and mac address in the client configuration also.

In many of the examples one has an ability to add in secondary type IP addresses to either real or virtual nic's.
 
Old 05-03-2014, 04:58 PM   #4
gentisle
Member
 
Registered: May 2005
Location: Wisconsin, USA
Distribution: LinuxMint, OpenBSD
Posts: 263

Original Poster
Rep: Reputation: 9
To frankbell: I guess I asked the question wrong. In Linux [Windows], one can if[p]config to see what addresses the computer's NICs are using. That is what I want for VirtualBox. VirtualBox adapter in my WinXP installation is 192.168.56.1 (the default install?). Aren't the guests supposed to be on the same net/subnet? Should I edit Windows network config and give the VirtualBox adapter a different address (one that is actually on the network I'm currently connected to?

To jefro: While I can find those settings that you mentioned, I don't really understand what you are saying. Which leads me to believe my networking knowledge is too limited to do what I want to do.
Thanks guys.
 
Old 05-03-2014, 05:12 PM   #5
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
What has it to do with Linux? I see Windows XP, VirtualBox and FreeBSD involved, no Linux.
 
Old 05-03-2014, 05:20 PM   #6
gentisle
Member
 
Registered: May 2005
Location: Wisconsin, USA
Distribution: LinuxMint, OpenBSD
Posts: 263

Original Poster
Rep: Reputation: 9
To Emerson: When I said Linux, I meant in the generic Unix form (if there is a such thing). I know that both Linux and BSD, as well as other Unix such as Solaris (Open or not) use the ifconfig command.

To Everyone, Anyone: Am I so poor at communicating correct English that I should not even post a question? Am I that difficult to understand?
 
Old 05-03-2014, 06:34 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,321
Blog Entries: 28

Rep: Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141
If you want the VMs in the same subnet as the rest of the machines in your network, you need to set a "Bridged" adapter in the VB network settings. You can't do this with NAT.

After you select "Bridged," there's an item called, I think, "Advanced" that appears beneath it. Click on that and you will see what your adapter choices are as sensed by VB. If more than one adapter appears in the list, you may need to test to see what the correct adapter selection is.

Don't feel bad about your communication. A lot of this is complicated stuff, especially when you add on an extra layer of jargon and technical terms in another language. Asking questions is how we get from "I think I understand" to "we understand."
 
Old 05-03-2014, 09:33 PM   #8
gentisle
Member
 
Registered: May 2005
Location: Wisconsin, USA
Distribution: LinuxMint, OpenBSD
Posts: 263

Original Poster
Rep: Reputation: 9
To frankbell:
Quote:
Don't feel bad about your communication. A lot of this is complicated stuff, especially when you add on an extra layer of jargon and technical terms in another language. Asking questions is how we get from "I think I understand" to "we understand."
Thanks.

Quote:
If you want the VMs in the same subnet as the rest of the machines in your network, you need to set a "Bridged" adapter in the VB network settings. You can't do this with NAT.
Well, I can set the 2 NICs to bridged. Yes, the "Advanced" is underneath that, and you can select which NIC. One video from YouTube, the guy claimed he had problems w/everything except the Intel cards. I'll use them.

Quote:
After you select "Bridged," there's an item called, I think, "Advanced" that appears beneath it. Click on that and you will see what your adapter choices are as sensed by VB. If more than one adapter appears in the list, you may need to test to see what the correct adapter selection is.
Now my question becomes: Should I change the VirtualBox adapter from 192.168.56.1 to 192.168.1.xxx or 10.0.0.xxx depending on the gateway of the router I connect to?
 
Old 05-04-2014, 07:49 PM   #9
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,321
Blog Entries: 28

Rep: Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141
I'm not qualified to answer that question.

I just let my bridged VMs grab an address directly from my router, but my VMs are just hobbyist VMs for my own learning and experimentation.
 
Old 05-04-2014, 09:13 PM   #10
gentisle
Member
 
Registered: May 2005
Location: Wisconsin, USA
Distribution: LinuxMint, OpenBSD
Posts: 263

Original Poster
Rep: Reputation: 9
Yes, I'm the same, just experimenting and learning.
 
Old 05-05-2014, 12:09 AM   #11
ericson007
Member
 
Registered: Sep 2004
Location: Japan
Distribution: CentOS 7.1
Posts: 735

Rep: Reputation: 154Reputation: 154
This is how I started off.

http://www.linuxquestions.org/questi...-guest-937396/


There is a link there which I followed, if not active anymore i can forward you the saved html.

I use kvm and virtualize pfsense. Pfsense is now acting as my main router and firewall in a production setup.

In short I just create the bridges (using cli on the host running virtual machines) on actual network interfaces. I then install pfsense and use the bridge as a network interface on the pfsense vm. I let pfsense act as the dhcp and dns servers and then you let clients get their info from the pfsense box. So I do not use the built in virtual networks and configure them using the hypervisor management software.

I would suggest though that virtual box not be used for a production system. Kvm or vmware are bettr suited to that department.

As far as intel is concerned, yeah they do work better. I tried passing through a realtek and it was absolute nonsense. Keeps dropping the link and cannot get a wan ip from isp. When i directly pass the intel card, it works like magic.

Have a look at the pfsense forum too. Some say they have success loading virtio drivers. That would be great to use. I never really tried them since now the bridges that i have is not a performance bottle neck.

Good luck.
 
Old 05-05-2014, 01:11 AM   #12
ericson007
Member
 
Registered: Sep 2004
Location: Japan
Distribution: CentOS 7.1
Posts: 735

Rep: Reputation: 154Reputation: 154
And for the xp, which you should not be using anymore, to ser up a bridge.

http://www.microsoft.com/resources/d....mspx?mfr=true
 
Old 05-05-2014, 11:17 AM   #13
gentisle
Member
 
Registered: May 2005
Location: Wisconsin, USA
Distribution: LinuxMint, OpenBSD
Posts: 263

Original Poster
Rep: Reputation: 9
ericson007: Thanks. That looks like it might help. Production machine? Windows XP? Ha! This is the only PC I have. I have no other choice, and right now, I'm not interested in buying VMware. KVM is out b/c I cannot put Linux on this machine. I do need a new computer, but don't have the money now, so I'll have to make this work. Thanks everyone, I'm marking this one solved, though anyone can post additional info if they so desire.
 
Old 05-05-2014, 11:23 AM   #14
gentisle
Member
 
Registered: May 2005
Location: Wisconsin, USA
Distribution: LinuxMint, OpenBSD
Posts: 263

Original Poster
Rep: Reputation: 9
BTW, last night, I tried again. After pfSense booted, I changed the LAN IP via the menu @ the cli. I picked a random number in the range of the router where I was (192.168.0.xxx) and I was able to get into pfSense. However, getting in and not knowing how to configure it, I'm locked out this morning. So another reinstall or reset of the pfSense settings. Guess I've got a lot to learn before I can do this.
 
Old 05-05-2014, 03:19 PM   #15
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,978

Rep: Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624
Thanks for the reply. I didn't see this so I didn't know to reply. You are welcome to ask questions about BSD or VM's by the way.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] how to check version of virtualbox guest additions currently installed in guest syste masuch Linux - Virtualization and Cloud 3 09-03-2012 01:05 AM
Host Fedora14, Windows 7 is running as Virtualbox guest- Mic is not working on Guest mwaheed Linux - Virtualization and Cloud 1 10-20-2011 12:51 PM
Problem with LAGG, pfSense as guest in VirtualBox pingu Linux - Virtualization and Cloud 0 10-06-2011 04:42 AM
Problem installing guest additions on virtualbox Centos 5.5 64bit guest eljay313 Linux - Virtualization and Cloud 1 09-03-2010 08:22 AM
LXer: Install Guest additions and run fullscreen mode on VirtualBox Guest OS | Linux LXer Syndicated Linux News 0 01-17-2010 05:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud

All times are GMT -5. The time now is 05:15 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