dslreports logo
site
 
    All Forums Hot Topics Gallery
spc

spacer




how-to block ads


Search Topic:
uniqs
3239
share rss forum feed

slajoh01

join:2005-04-23

3 edits

Just Installed OpenBSD on VMware Workstation but a few quest

Just installed OpenBSD under VMware and I have a couple of questions here.

How can I install a Desktop enviroment like GNOME or KDE?
I had install ALL of the file sets too. I thought the installation would give me an option to install some sort of GUI Desktop interface like Linux or Solaris did.....

Also, during the installation, I had skipped the Networking part.
Now, once I have OpenBSD installed I can now logon using the console as ROOT.
But to configure the Networking, can you please explain how?
Do I have to use my VMware's ethernet virtual IP address, or should I configure everything that my Windows XP (host OS) uses like its router IP, DNS IP, and etc...???

And last....

I did the IFCONFIG command, but which network adapter should I use below for configuring?
Should I use the one that VMware is using or the one that my Windows (host) OS is using?

lo0: inet 127.0.01

vic0: Media: Ethernet autoselect
status: no carrier

enc0: flags=0 mtu 1536


Please help.
Thanks.



scrummie02
Bentley
Premium
join:2004-04-16
Arlington, VA
Reviews:
·Verizon FiOS

1 edit

There is a file called /etc/hostname.enc0. You'll go there and configure it for a static or DHCP
If you configure a static it will be like this:

inet 10.0.0.38 255.255.255.0 NONE
 

Then you have to configure /etc/mygate with the IP of your default router

Then /etc/resolv.conf with the IP's of hte DNS servers you want to use

Also it depends how you set up the interface in VMware.
Is it bridged or is it NAT?

Please see this for further info"
»www.openbsd.org/faq/faq6.html#Setup

--
'A government big enough to give you everything you want, is strong enough to take everything you have.'
Thomas Jefferson

Bink
Villains... knock off all that evil

join:2006-05-14
Castle Rock, CO
kudos:4
Reviews:
·VOIPO

1 edit
reply to slajoh01

OpenBSD does not come with a bloated Desktop Environment like Gnome or KDE—if you want one of those, you should install it via packages(7). As for configuring the adapter, bentman78 is mostly correct. The enc device is used to support IPSec, so you’ll want to configure vic0 instead.



scrummie02
Bentley
Premium
join:2004-04-16
Arlington, VA

1 edit

oops...he's right.
I have openbsd installed on ESXI and the interface is hostname.em0...so I just overlooked that.


slajoh01

join:2005-04-23

3 edits

Yes, I selected Bridged Networking.

But, none of these directories exists.....when I do the /ETC commands....
It says no such file exists.
And Im doing this under root.

But which adapter (from above listed) should I use though?
And should the network be configured the same way as my HOST OS (Windows) or should I go with the VMware's IP addresses??



scrummie02
Bentley
Premium
join:2004-04-16
Arlington, VA
Reviews:
·Verizon FiOS

2 edits

If you're bridged that means you will be using the same address scheme as your network. For example if you're using the 192.168.1.0/24 network you would pick an IP from that range and use the same gateway/DNS servers that your workstation uses..

Those files should be there.
do this

ls /etc | grep hostname
 

what is the output of that?
--
'A government big enough to give you everything you want, is strong enough to take everything you have.'
Thomas Jefferson


GILXA1226
Premium,MVM
join:2000-12-29
Dayton, OH
reply to slajoh01

said by slajoh01:

But, none of these directories exists.....when I do the /ETC commands....
It says no such file exists.
And Im doing this under root.
Are you using /ETC or /etc, like solaris, *BSD will be case sensitive.

said by slajoh01:

And should the network be configured the same way as my HOST OS (Windows) or should I go with the VMware's IP addresses??
It should be configured in a similar manner, but it will need to have a different IP address from your Host OS.
--
We don't give a d@mn for the whole state of Michigan... we're from OHIO! O!H! ... I!O!

slajoh01

join:2005-04-23

1 edit

When ran the command ls /etc | grep hostname, I got this...
Nothing..

#

Is there a way to go back and set the Network Configurations that prompt me to do so when first installing OpenBSD???

How can I go back to that?



GILXA1226
Premium,MVM
join:2000-12-29
Dayton, OH

can you post the output of the following command:

ls /etc
 

slajoh01

join:2005-04-23

2 edits

Its shows a list of files, EXCEPT the hostname file....

I just want to or wish to go back to setup the network details like I did during the installation....

also, my suspicion would be since I did not setup the Networking part during the install, maybe thats why it does not recognize the hostname directory...But I may be wrong.

And yes, maybe I will not install the GUI, since I will be using this as a server. And its MORE secure without the GUI running for that matter.

Also, I can always reinstall to setup the network again.
But like I said, how do I know which ehternat adapter (from above) listed to use out of those THREE adapters???
UNLESS...theres a way to reconfigure without reinstalling..



GILXA1226
Premium,MVM
join:2000-12-29
Dayton, OH

said by Bink:
The enc device is used to support IPSec, so youll want to configure vic0 instead.

Reading comprehension.
--
We don't give a d@mn for the whole state of Michigan... we're from OHIO! O!H! ... I!O!

slajoh01

join:2005-04-23

Ok, thanks.

So how can i go back to configure all this now, without reinstalling?



scrummie02
Bentley
Premium
join:2004-04-16
Arlington, VA
Reviews:
·Verizon FiOS

yes...
also configure /etc/mygate and /etc/resolv.conf.
Unless you want to use dhcp.

After you have configured those do this

sh /etc/netstart 
 
to enable the new configuration.
Please read this:
»www.openbsd.org/faq/faq6.html#Setup.if

--
'A government big enough to give you everything you want, is strong enough to take everything you have.'
Thomas Jefferson

slajoh01

join:2005-04-23

4 edits

i managed to reinstall OpenBSD but this time with the Network settings and now Im able to the cat /etc/hostname.vic0.

Heres my output:
inet 192.168.1.105 255.255.255.0 NONE

This is the IP I chose since my Windows (Host OS) was using IP of 192.168.1.100.
And my Router IP is 192.168.1.1

But still cannot use Lynx, unable to connect.



scrummie02
Bentley
Premium
join:2004-04-16
Arlington, VA

DNS settings?
Did you read the link I posted?
You have to input your DNS settings in /etc/resolv.conf.


slajoh01

join:2005-04-23

1 edit

/etc/resolv.conf does not come up.
It says No such file or Directory. Sam thing happens with MYGATE.

And, when issuing /etc/resolv.conf command, I get a CANNOT EXECUTE - PERMISSION DEINIED (under ROOT)...

Why is that???


Bink
Villains... knock off all that evil

join:2006-05-14
Castle Rock, CO
kudos:4

It’s because you have a lot to learn about UNIX-like operating systems.



GILXA1226
Premium,MVM
join:2000-12-29
Dayton, OH
reply to slajoh01

/etc/resolv.conf
 
is not a command, it's a file that stores nameserver information for DNS lookups. Did you even read the link scrummie02 See Profile posted? It would have answered most of the questions you've posted. As far as I'm concerned unless you're going to read it and as comprehension questions about what you've read you're never going to learn how BSD works, which will make it very hard to use and administer BSD.
--
We don't give a d@mn for the whole state of Michigan... we're from OHIO! O!H! ... I!O!


scrummie02
Bentley
Premium
join:2004-04-16
Arlington, VA
reply to slajoh01

Did you read the link I posted? OpenBSD's website has a lot of good documentation.

If you had just read the link you would have all of your questions answered by now.


slajoh01

join:2005-04-23

3 edits

Ok, I know how to get to the files in OpenBSD. But I dont know which IP address to use. By taking the settings of this example below, can you please explain what fields I should add involving IP address?

My Windows workstation uses the following network scheme:

Just please explain on IP address or info should I use in each fields under the Network Config Settings below.

On the HOST OS:
Router IP: 192.168.1.1
IP Address: 192.168.1.100
DNS IP: 82.2.XX.XX or whatever.


So, when installing OpenBSD under VMware, should I add these the same way (marked in BOLD) as above in the Network settings field below?

Configure the network? [yes] Enter
Available interfaces are: fxp0 xl0.
Which one do you wish to initialize? (or 'done') [fxp0] xl0
Symbolic (host) name for xl0? [puffy] Enter
The media options for xl0 are currently
media: Ethernet autoselect (100baseTX full-duplex)
Do you want to change the media options? [no] Enter
IPv4 address for xl0? (or 'dhcp') 192.168.1.100
Netmask? [255.255.255.0] Enter
IPv6 address for xl0? (or 'rtsol' or 'none') [none] Enter
Available interfaces are: fxp0.
Which one do you wish to initialize? (or 'done') [fxp0] Enter
Symbolic (host) name for fxp0? [puffy] Enter
The media options for fxp0 are currently
media: Ethernet autoselect (10baseT half-duplex)
Do you want to change the media options? [no] Enter
IPv4 address for fxp0? (or 'none' or 'dhcp') dhcp
Issuing hostname-associated DHCP request for fxp0.
DHCPDISCOVER on fxp0 to 255.255.255.255 port 67 interval 1
DHCPOFFER from 73.34.136.1
DHCPREQUEST on fxp0 to 255.255.255.255 port 67
DHCPACK from 73.34.136.1
bound to 69.241.244.76 -- renewal in 1800 seconds.
IPv6 address for fxp0? (or 'rtsol' or 'none') [none] Enter
No more interfaces to initialize.
DNS domain name? (e.g. 'bar.com') [my.domain] example.com
DNS nameserver? (IP address or 'none') [82.2.X.XX] Enter
Use the nameserver now? [yes] Enter
Default route? (IP address, 'dhcp' or 'none') [dhcp] Enter
Edit hosts with ed? [no] Enter
Do you want to do any manual network configuration? [no] Enter



GILXA1226
Premium,MVM
join:2000-12-29
Dayton, OH

If you have the Virtual Machine setup to do Bridged Networking, the VM needs to have a different IP address then your host, otherwise you will get an IP conflict. Think of the Virtual Machine as just another system on the network. The gateway and DNS info will be the same.
--
We don't give a d@mn for the whole state of Michigan... we're from OHIO! O!H! ... I!O!


slajoh01

join:2005-04-23

2 edits

Ok, got it!!!!!

So....my issie was that I selected DHCP instead of adding my own Guest OS's IP.....then....

So it would be this:

IPv4 address for fxp0? (or 'none' or 'dhcp') 192.168.1.102

Because my laptop running Windows already has an IP of 192.168.1.100....

Then i would add the ROUTER IP in the /etc/mygate as 192.168.1.1

Makes sense now.....


slajoh01

join:2005-04-23

1 edit

Click for full size
Ok....Heres my settings...finally!!!! But I still cannot connect with LYNX.

Please see printscreen.

The DNS settings are "blurred out"

Hope i am close enough.


GILXA1226
Premium,MVM
join:2000-12-29
Dayton, OH

said by slajoh01:

Ok....Heres my settings...finally!!!! But I still cannot connect with LYNX.

Please see printscreen.

The DNS settings are "blurred out"

Hope i am close enough.
What do you get when you try to ping your router?
--
We don't give a d@mn for the whole state of Michigan... we're from OHIO! O!H! ... I!O!

slajoh01

join:2005-04-23

3 edits

Im getting HOST IS DOWN....

And the Ethernet card icon on the VMware is "X" out.....On the lower right-hand corner of the VMware screen window.

My HOST machine uses the LAN IP of 192.168.1.100 with its ROUTER IP of 192.168.1.1

So in order to avoid IP conflicts, I entered 192.168.1.102



GILXA1226
Premium,MVM
join:2000-12-29
Dayton, OH

Right click on the ethernet card icon and see if you can select enable. Also you might need to reboot your VM if you haven't since the IP address change.
--
We don't give a d@mn for the whole state of Michigan... we're from OHIO! O!H! ... I!O!


slajoh01

join:2005-04-23

It does have a CONNECT menu and when i clicked it, it says cannot connect to the VMnet0
Failed to connect to Virtual Device Ethernet0.



GILXA1226
Premium,MVM
join:2000-12-29
Dayton, OH

shut the VM down, ensure the ethernet device is setup to connect on startup and restart the VM.
--
We don't give a d@mn for the whole state of Michigan... we're from OHIO! O!H! ... I!O!


slajoh01

join:2005-04-23

i did. It has a check mark to power on.
And this popup yellow window in VM, says that device VMnet0 is not running nor connected.

Are you sure in screenshot I have the correct settings?



GILXA1226
Premium,MVM
join:2000-12-29
Dayton, OH

said by slajoh01:

i did. It has a check mark to power on.
And this popup yellow window in VM, says that device VMnet0 is not running nor connected.

Are you sure in screenshot I have the correct settings?
I think your problems are lower level. If the Virtual Nic card is showing disabled then all the settings in the world in the host os won't matter. Are all the virtual adapters that are installed in windows enabled for the VMnet?
--
We don't give a d@mn for the whole state of Michigan... we're from OHIO! O!H! ... I!O!