<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<font face="Helvetica, Arial, sans-serif">Greetings Jon,<br>
<br>
Basically, two things need to be configured for networking to
function properly: First, the VM settings (from the GUI) need to
be set correctly. Second, the settings inside Debian instance need
to be set. For the VM settings, start by considering the total
number of interfaces the host system has. My laptop, as an
example, has two: wired and wireless. I've elected to set the
wired as eth0 and wireless on eth1. Use bridged network adapter
when setting up these sorts of adapters. Then there should be 1
additional adapter called a host-only adapter. For my laptop,
that's set to eth2. Also, you may want to check the host-only VM
settings under File, Preferences..., Network. DHCP should be
disabled, and the IPv4 address should be 192.168.56.1 with a
subnet mask of 255.255.255.0.<br>
<br>
Inside your virtual Debian instance, check your
/etc/network/interfaces to be sure these align with the adapters
you set in the VM environment. Then check your interface current
running configuration with "ifconfig". (You don't need to be root
to run this command provided ifconfig is in your path. Otherwise,
do a "whereis ifconfig" to locate the executable, then run that.
Or become root, or use "sudo ifconfig".) This will tell you all
your current configurations for your interfaces. If the list is
too long, you can "ifconfig eth0" to get just the first interface.
If the interface is down or not configured, it won't display. You
can take an interface up or down with "ifup eth0" and "ifdown
eth0" (which will have to be run as root or under sudo).<br>
<br>
If after doing all this you're unable to </font><font
face="Helvetica, Arial, sans-serif">ping out to 192.168.56.1 </font><font
face="Helvetica, Arial, sans-serif">(from your virtual instance on
192.168.56.2 through your host-only adapter, which in my case is
eth2), try ifdown-ing all but your host-only adapter. To ping out
to Google from your virtual Debian instance, you'll need to use
one of your bridged adapters. With all of them down except your
host-only, if you ifup one of your active bridged adapters, you
should be able to ping out to Google.<br>
<br>
Gryphon<br>
<br>
<br>
</font>
<div class="moz-cite-prefix">On 9/17/2012 12:10 AM, Griffin Kelton
wrote:<br>
</div>
<blockquote
cite="mid:CAAA7SSurQzry=nGpEZaQKEZ1Z5CTWt8AyPab30PHovn-N=vbkw@mail.gmail.com"
type="cite">
<p>It sounds like you have something wrong with your VM setup.
Corrupted install? Preferences issue? I'm not sure what the
trouble is. Sorry I couldn't help.</p>
<div class="gmail_quote">On Sep 17, 2012 3:05 AM, "Jon" <<a
moz-do-not-send="true" href="mailto:halfbrown@gmail.com">halfbrown@gmail.com</a>>
wrote:<br type="attribution">
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div
style="font-size:14px;font-family:Calibri,sans-serif;word-wrap:break-word">
<div>Griffin,</div>
<div><br>
</div>
<div>See the attached for what my Network options looks
like. My Adapter(s) 2-4 are grayed out and unclickable, so
I can't add anything else.</div>
<div><br>
</div>
<div>Jon</div>
<div><br>
</div>
<span>
<div style="border-right:medium
none;padding-right:0in;padding-left:0in;padding-top:3pt;text-align:left;font-size:11pt;border-bottom:medium
none;font-family:Calibri;border-top:#b5c4df 1pt
solid;padding-bottom:0in;border-left:medium none">
<span style="font-weight:bold">From: </span> Griffin
Kelton <<a moz-do-not-send="true"
href="mailto:griffin.kelton@gmail.com" target="_blank">griffin.kelton@gmail.com</a>><br>
<span style="font-weight:bold">Reply-To: </span> Kitsap
Perl Users Group <<a moz-do-not-send="true"
href="mailto:kpug-pm@pm.org" target="_blank">kpug-pm@pm.org</a>><br>
<span style="font-weight:bold">Date: </span> Sunday,
September 16, 2012 11:53 PM<br>
<span style="font-weight:bold">To: </span> Kitsap Perl
Users Group <<a moz-do-not-send="true"
href="mailto:kpug-pm@pm.org" target="_blank">kpug-pm@pm.org</a>><br>
<span style="font-weight:bold">Subject: </span> Re:
[KPUG] Oddities with VM setup<br>
</div>
<div><br>
</div>
Jon,
<div><br>
</div>
<div>You need to somehow enable eth1 to be your host-only
adapter. Otherwise, like you said, the connection will
by default timeout because 192.168.56.2 won't be online.
Just to clarify, this is what my disabled network
adapters look like: <a moz-do-not-send="true"
href="http://cl.ly/image/3S3a170H1u3C" target="_blank">http://cl.ly/image/3S3a170H1u3C</a>.
This is what they look like when enabled: <a
moz-do-not-send="true"
href="http://cl.ly/image/1y1f0G3N2I3X" target="_blank">http://cl.ly/image/1y1f0G3N2I3X</a>.
Are you saying that when they are disabled, you are
unable to select the "Enable Network Adapter" check box?</div>
<div><br>
</div>
<div>In regards to your ssh client, I used Terminal as
well. =)</div>
<div><br>
<div>Griffin Kelton<br>
<a moz-do-not-send="true" href="tel:%28919%29306.1135"
value="+19193061135" target="_blank">(919)306.1135</a><br>
<a moz-do-not-send="true"
href="http://www.griffinkelton.com" target="_blank">www.griffinkelton.com</a><br>
<br>
Please consider the environment before printing this
email.<br>
<br>
<br>
<div class="gmail_quote">On Mon, Sep 17, 2012 at 2:34
AM, Jon <span dir="ltr"><<a
moz-do-not-send="true"
href="mailto:halfbrown@gmail.com"
target="_blank">halfbrown@gmail.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div
style="font-size:14px;font-family:Calibri,sans-serif;word-wrap:break-word">
<div>Lady (Ladies?) & Gentlemen,</div>
<div><br>
</div>
<div>I've run into an odd snag on the VM install
for my lovely MacBook Pro, so I thought I'd
post to the group to see if anyone has any
help because my Google-Fu is sending me around
in circles.</div>
<div><br>
</div>
<div>I got all the way to Section E, "Establish
a non-console/SSH connection to the local
host-only address" and finally hit said snag.
I cracked open SSH, typed in:</div>
<div><br>
</div>
<div>ssh –p 22 –v <a moz-do-not-send="true"
href="mailto:jon@192.168.56.2"
target="_blank">jon@192.168.56.2</a></div>
<div><br>
</div>
<div>And received the following error:</div>
<div><br>
</div>
<div>ssh: connect to host 192.168.56.2 port 22:
Connection timed out</div>
<div><br>
</div>
<div>This got me thinking. Dangerous, yes, but
thinking nonetheless. :)</div>
<div><br>
</div>
<div>During Section D, "Debian setup", I ran
into a previous snag. Several times I kept
getting a problem wherein I would receive the
error message:</div>
<div><br>
</div>
<div>Failed to bring up eth1.</div>
<div><br>
</div>
<div>Oddly enough the way I (accidentally) got
around that was through a bug I typed into
/etc/network/interfaces detailing the auto
eth1 and then face eth2 (et c). Nothing
alerted me to this until later on in the
process when I began debugging my "odd snag" I
initially mentioned. Anyhoo… I figured <span
style="font-weight:bold">something</span> had
to be right since I did all of the apt updates
between Section D and Section E, so obviously
I had networking out to the inter-tubes.
Admittedly, while I'm pretty good with code,
hardware has been a mystery to me since circa
1996. And even then, not so much.</div>
<div><br>
</div>
<div>So I've been mucking around Google trying
to see what's up, heading to <a
moz-do-not-send="true"
href="http://virtualbox.org" target="_blank">virtualbox.org</a>
to do the same, and all that jazz. But I'm
stumped and was hoping someone could at least
point me in the right direction.</div>
<div><br>
</div>
<div>As such, I have a few ideas for where
things could have gone wrong, and I thought
I'd share.</div>
<ul>
<li>When working on the VirtualBlox Manager,
under Network, I only have one option, and
that's for Adapter 1. I selected Bridged
Adapter, the Name is en0: Wi-Fi (Airport),
which was the default, and the only other
options I have are for Promiscuous Mode
(scandalous!), the Mac Address, and a
checkbox for "Cable connected". Pretty sure
I didn't touch any of those, so I'm feeling
good about those. However, in the VM setup
instructions under B.5.d.ii, I couldn't set
a virtual adapter because I have no
option/availability to do so. All of the
non-used Adapters listed (2-4) are grayed
out and cannot be selected. I presume that's
by design via the VirtualBox software or my
hardware, so I just skipped it.</li>
<li>Section D.3, that's where I'm guessing the
real issue is. AFAICT I only have 1 Adapter
(see my notes above RE: B.5.d.ii), and I
keep getting a "hey you can't run 2 auto
loads of eth0" error if I don't use eth1, so
my thinking is/was I'd have a
/etc/network/interfaces file that looks like
this:</li>
</ul>
<div>auto lo</div>
<div>iface lo inet loopback</div>
<div><br>
</div>
<div>auto eth0</div>
<div>allow-hotplug eth0</div>
<div>iface eth0 inet dhcp</div>
<div><br>
</div>
<div>auto eth1</div>
<div>iface eth1 inet static</div>
<div>
address 192.168.56.2</div>
<div>gateway 192.168.56.1</div>
<div>netmask 255.255.255.0</div>
<div>network 192.168.56.0</div>
<div>broadcast 192.168.56.255</div>
<div><br>
</div>
<div><span style="white-space:pre-wrap"> </span>Yes,
that's actually what's in my
/etc/network/interfaces file right now. It's
that last section I'm really wondering about,
and hoping that someone can verify yes/no on
if I did that correctly. Yes, I did the
restart, yes I tried the ifdown's, etc. Mostly
I keep getting messages saying it doesn't
recognize eth1.</div>
<div><br>
</div>
<div>I'm guessing that since I had apt/etc.
working already, once I get past this issue
the rest will be a breeze. That's what I'm
hoping for, at least.</div>
<div><br>
</div>
<div>Oh! And one more thing… Section E starts
off with "Establish a non-console/SSH
connection to the local host-only address".
Well, the console <span
style="font-weight:bold">is</span> my
favorite SSH client. :) Is there some funky
issue where if I'm attempting to SSH (and
assuming this whole time that I should be
SSHing via the VM CLI), that <span
style="font-weight:bold">that</span> is the
problem? Or at least <span
style="font-weight:bold">a</span> problem?</div>
<span><font color="#888888">
<div><br>
</div>
<div>Jon</div>
</font></span></div>
</blockquote>
</div>
<br>
</div>
</div>
</span></div>
</blockquote>
</div>
</blockquote>
<br>
</body>
</html>