1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

pkg_add on a virtual guest bsd

Discussion in 'Installing & Upgrading' started by emosms, Jan 7, 2010.

  1. emosms

    emosms New Member

    Messages:
    38
    Likes Received:
    0
    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...
     
  2. SirDice

    SirDice Moderator Staff Member Moderator

    Messages:
    17,359
    Likes Received:
    0
    Enable sshd and ssh or scp the file to/from the virtual machine.
     
  3. emosms

    emosms New Member

    Messages:
    38
    Likes Received:
    0
    do I do that from within the BSD console?
    or these are vmWare features
     
  4. SirDice

    SirDice Moderator Staff Member Moderator

    Messages:
    17,359
    Likes Received:
    0
    Does your virtual machine have network?

    Then download PuTTY and WinSCP.
     
  5. emosms

    emosms New Member

    Messages:
    38
    Likes Received:
    0
    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
     
  6. rhyous

    rhyous New Member

    Messages:
    137
    Likes Received:
    0
    What happens when in the virtual machine, as root you type:

    pkg_add -r compat6x-i386
     
  7. SirDice

    SirDice Moderator Staff Member Moderator

    Messages:
    17,359
    Likes Received:
    0
    Ok. Can you ping that IP address from the Windows host?

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

    Code:
    sshd_enable="YES"
    
    Reboot or start sshd by hand with # /etc/rc.d/sshd start.

    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.
     
  8. emosms

    emosms New Member

    Messages:
    38
    Likes Received:
    0
    can I ping it from my... web browser? if so, it does not respond I am just studying putty :stud
     
  9. SirDice

    SirDice Moderator Staff Member Moderator

    Messages:
    17,359
    Likes Received:
    0
    No.

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

    On that prompt ping <ip address>.
     
  10. phoenix

    phoenix Moderator Staff Member Moderator

    Messages:
    3,404
    Likes Received:
    0
    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.
     
  11. emosms

    emosms New Member

    Messages:
    38
    Likes Received:
    0
    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
     
  12. emosms

    emosms New Member

    Messages:
    38
    Likes Received:
    0
    So, now when I ping it is OK, but maybe I do ping my windows network adapter... :lol:
     
  13. emosms

    emosms New Member

    Messages:
    38
    Likes Received:
    0
    from BSD's side:
    Code:
    ping: sendto: No route to host
    ping: sendto: No route to host
    ping: sendto: No route to host
    ...
     
  14. SirDice

    SirDice Moderator Staff Member Moderator

    Messages:
    17,359
    Likes Received:
    0
    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.
     
  15. emosms

    emosms New Member

    Messages:
    38
    Likes Received:
    0
    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.
     
  16. phoenix

    phoenix Moderator Staff Member Moderator

    Messages:
    3,404
    Likes Received:
    0
    Ctrl+c
     
  17. emosms

    emosms New Member

    Messages:
    38
    Likes Received:
    0
    thath was nifty :)