pkg_add on a virtual guest bsd

Installing and upgrading FreeBSD.

pkg_add on a virtual guest bsd

Postby emosms » 07 Jan 2010, 11:21

Hi, I am trying to install compat6x-i386 on a VMware guest freeBSD.
Since I dont have vmWare tools installed, I cannot access other files through the BDS guest, except through vmWare virtual cdrom.
So I converted the package file into an .iso file and mounted it.
But I get message like pkg_add: can't stat package file '...'.

I need this package in order to finish installation of vmWare tools...
emosms
Junior Member
 
Posts: 38
Joined: 31 Dec 2009, 10:44

Postby SirDice » 07 Jan 2010, 11:24

Enable sshd and ssh or scp the file to/from the virtual machine.
Senior UNIX Engineer at Unix Support Nederland
Experience is something you don't get until just after you need it.
User avatar
SirDice
Old Fart
 
Posts: 16161
Joined: 17 Nov 2008, 16:50
Location: Rotterdam, Netherlands

Postby emosms » 07 Jan 2010, 13:46

SirDice wrote:Enable sshd and ssh or scp the file to/from the virtual machine.

do I do that from within the BSD console?
or these are vmWare features
emosms
Junior Member
 
Posts: 38
Joined: 31 Dec 2009, 10:44

Postby SirDice » 07 Jan 2010, 13:49

Does your virtual machine have network?

Then download PuTTY and WinSCP.
Senior UNIX Engineer at Unix Support Nederland
Experience is something you don't get until just after you need it.
User avatar
SirDice
Old Fart
 
Posts: 16161
Joined: 17 Nov 2008, 16:50
Location: Rotterdam, Netherlands

Postby emosms » 07 Jan 2010, 14:09

SirDice wrote:Does your virtual machine have network?

Then download PuTTY and WinSCP.

I dont think so, I just installed it..
I set some IP, gateway and so on settings at instalation time, but just exploring basic commands now. No graphic interface, no browser.
As I understand, I cannot directly acces the bds folder structure from windows, inside the vmware file that hosts freeBSD
emosms
Junior Member
 
Posts: 38
Joined: 31 Dec 2009, 10:44

Postby rhyous » 07 Jan 2010, 14:14

What happens when in the virtual machine, as root you type:

pkg_add -r compat6x-i386
http://www.rhyous.com/freebsd-friday
The only thing you take with you when you die is your knowledge. Never stop acquiring it.
User avatar
rhyous
Member
 
Posts: 137
Joined: 08 Apr 2009, 04:32
Location: West Jordan, Utah

Postby SirDice » 07 Jan 2010, 14:43

emosms wrote:I dont think so, I just installed it..
I set some IP, gateway and so on settings at instalation time, but just exploring basic commands now.


Ok. Can you ping that IP address from the Windows host?

If that works go in the fbsd VM and edit [file]/etc/rc.conf[/file], add this:

Code: Select all
sshd_enable="YES"


Reboot or start sshd by hand with [cmd=#]/etc/rc.d/sshd start[/cmd].

On your Windows host, install PuTTY and use it to connect to the IP address of your virtual machine. You can use WinSCP to transfer files back and forth.
Senior UNIX Engineer at Unix Support Nederland
Experience is something you don't get until just after you need it.
User avatar
SirDice
Old Fart
 
Posts: 16161
Joined: 17 Nov 2008, 16:50
Location: Rotterdam, Netherlands

Postby emosms » 07 Jan 2010, 15:03

can I ping it from my... web browser? if so, it does not respond I am just studying putty :stud
emosms
Junior Member
 
Posts: 38
Joined: 31 Dec 2009, 10:44

Postby SirDice » 07 Jan 2010, 15:21

emosms wrote:can I ping it from my... web browser?

No.

Back to basics... On Windows, Start -> Run... cmd.exe

On that prompt [cmd=]ping <ip address>[/cmd].
Senior UNIX Engineer at Unix Support Nederland
Experience is something you don't get until just after you need it.
User avatar
SirDice
Old Fart
 
Posts: 16161
Joined: 17 Nov 2008, 16:50
Location: Rotterdam, Netherlands

Postby phoenix » 07 Jan 2010, 16:14

A better test is to do it from the BSD side: ping <ip of windows>

If that works, then you have a working network, and can just use pkg_add -r <package name> to install packages automatically.
Freddie

Help for FreeBSD: Handbook, FAQ, man pages, mailing lists.
User avatar
phoenix
MFC'd
 
Posts: 3349
Joined: 17 Nov 2008, 05:43
Location: Kamloops, BC, Canada

Postby emosms » 07 Jan 2010, 17:33

Good in networking and protocols as much as in unix...
Actually I entered during instalation these IP, DNS and Gateway, given from my internet provider.
This is for the ethernet adapter Ipv6 protocol.
Thank u all
emosms
Junior Member
 
Posts: 38
Joined: 31 Dec 2009, 10:44

Postby emosms » 07 Jan 2010, 17:36

So, now when I ping it is OK, but maybe I do ping my windows network adapter... :lol:
emosms
Junior Member
 
Posts: 38
Joined: 31 Dec 2009, 10:44

Postby emosms » 07 Jan 2010, 17:39

from BSD's side:
Code: Select all
ping: sendto: No route to host
ping: sendto: No route to host
ping: sendto: No route to host

...
emosms
Junior Member
 
Posts: 38
Joined: 31 Dec 2009, 10:44

Postby SirDice » 07 Jan 2010, 17:43

emosms wrote:Actually I entered during instalation these IP, DNS and Gateway, given from my internet provider.
This is for the ethernet adapter Ipv6 protocol.

You cannot enter an IPv6 address during install. You can only turn on IPv6 support. Since you seem to have trouble enough with IPv4 I suggest leaving IPv6 for now.
Senior UNIX Engineer at Unix Support Nederland
Experience is something you don't get until just after you need it.
User avatar
SirDice
Old Fart
 
Posts: 16161
Joined: 17 Nov 2008, 16:50
Location: Rotterdam, Netherlands

Postby emosms » 07 Jan 2010, 19:02

SirDice wrote:You cannot enter an IPv6 address during install. You can only turn on IPv6 support. Since you seem to have trouble enough with IPv4 I suggest leaving IPv6 for now.

Obviously
How do I stop freeBSD to PING?
It comes up repeatedly on the screen, cant type any comand.
So I restart the OS from the vmWare's interface.
emosms
Junior Member
 
Posts: 38
Joined: 31 Dec 2009, 10:44

Postby phoenix » 07 Jan 2010, 20:51

Ctrl+c
Freddie

Help for FreeBSD: Handbook, FAQ, man pages, mailing lists.
User avatar
phoenix
MFC'd
 
Posts: 3349
Joined: 17 Nov 2008, 05:43
Location: Kamloops, BC, Canada

Postby emosms » 07 Jan 2010, 21:16

phoenix wrote:Ctrl+c

thath was nifty :)
emosms
Junior Member
 
Posts: 38
Joined: 31 Dec 2009, 10:44


Return to Installing & Upgrading

Who is online

Users browsing this forum: warudemaru and 3 guests