Solved FreeBSD 10.1 amd64 vmdk & DHCP

Hello! I just downloaded the FreeBSD 10.1 amd64 vmdk and successfully booted it up with VMware Workstation. So far so good. However, I noticed that the NIC on the VM is configured for "Share with my Mac". However, things like ping google.com fail on the VM, and ifconfig shows no sign of an IPV4 address. What I really want to do is to be able to SSH into the VM so that I can experiment with ZFS. How can I make the NIC play nicely with VMware Workstation so that SSH works? Thanks!
 
I'm not too familiar with the default configuration of the VMDK images. If you don't see any IP address assigned then I would suggest trying dhclient em0 where em0 is the NIC device shown by the ifconfig command. That would be the case if the default NIC is an Intel NIC which is a safe assumption on most VM software. If that works, using sysrc ifconfig_em0=DHCP will update your /etc/rc.conf with the configuration to use DHCP on the next reboot.

If that doesn't help, the output of those commands when you ran them would be helpful.
 
Thanks! Good news: It half works! dhclient em0 did grab an IP. And sysrc ifconfig_em0=DHCP did create /etc/rc.conf. However, upon rebooting then /etc/rc.conf disappears and we're back to square one. Any idea why it might disappear?
 
That sounds strange. Do any files persist? Try touch /root/somefile then shutdown -r now and see if it's still there after a reboot. If you aren't automatically reverting to a snapshot then I don't see any reason why the change wouldn't persist.
 
Interesting: /root/somefile does persist but /etc/rc.conf only persisted once I added another line to it: sshd_enable="YES"
Now it seems to work after shutdown -r now. Now on to the next problem: I actually wanted to play around with ZFS -- which is the reason for trying out FreeBSD -- but zpool status says "no pools available"... so I'm guessing the vmdk was not created with ZFS, or? Probably this means that I'll have to trying installing FreeBSD from scratch using the regular ISO.
 
That is interesting. I'm not 100% sure what is going on behind the scenes there and would have to look closer myself. Feel free to edit your original post and add the "Solved" to it.

That sounds correct. I believe all the images use UFS as the default. You can always add another virtual disk to the VM configuration to use for ZFS testing and if you have any questions ask again in another thread.
 
Back
Top