Solved Porting new Virtual Machine Guest Tools(VMWare Workstation 16 and VirtualBox 6.1

I don't have any new computer for FreeBSD. So I use virtual machine on Windows 10. The problem is that the latest virtualbox-ose-additions is for Virtualbox 5.x and guest additions for vmware is discontinued, so vmware says that I should use open vm tools. However, it only supports Freebsd 11 and 10. I can't configure Xorg because the driver is too old, and the xorg serve always says "Cannot find display". And there are a lot of host name lookup failure
ping google.com
host name lookup failure. cannot resolve google.com

Is there any reasons that the vmware stopped support for freebsd and the new virtualbox-ose-additions is tool old? Or can someone give me xorg.conf or xorg.conf.d for the latest version of vmware workstation or virtualbox? Also, why freebsd does not include vim or modern shell like zsh? And the default user-interface and installer are not GUI?
 
emulators/virtualbox-ose-additions:
Setting:
Install both emulators/virtualbox-ose-additions and emulators/virtualbox-ose-kmod (Thanks T-Daemon for correction)

/etc/rc.conf
Code:
vboxguest_enable="YES"
vboxservice_enable="YES"

Xorg problem:
You probably have some xorg.conf somewhere. Delete it!
 
About network problem:
I don't know what is going on with your system, but for VM/internet problem I check:

/etc/resolv.conf
Code:
nameserver 192.168.1.1

192.168.1.1 is your VirtualBox Gateway IP. Yours is probably different:
VirtualBox: File | Preferences | Network | NAT Network
 
VMware:
I don't know much about vmware tools. For sharing/access I suggest using ssh/scp approach:

Scenario 1 (DHCP):

/etc/rc.conf
Code:
hostname="hostname"
ifconfig_em0="DHCP"
sshd_enable="YES"

(1) hostname = your host name
(2) em0 : your Ethernet interface

/etc/ssh/sshd_config
Code:
Port 22
PasswordAuthentication yes
PermitEmptyPasswords no
PermitRootLogin yes

Find your guest IP and write it down : ifconfig
Some result: 192.168.1.200

Scenario 2 (Static):

/etc/rc.conf
Code:
hostname="hostname"
ifconfig_em0="inet 192.168.1.2 netmask 255.255.255.0"
defaultrouter="192.168.1.1"
sshd_enable="YES"

(1) hostname = your host name
(2) em0 : your Ethernet interface
(3) defaultrouter IP: NAT Gateway IP (as I mentioned in previous post)
(4) inet 192.168.1.2: assign some number related to your NAT IP

/etc/ssh/sshd_config
Code:
Port 22
PasswordAuthentication yes
PermitEmptyPasswords no
PermitRootLogin yes

(1) Port 22 : no need to change, you are local!
(2) PasswordAuthentication yes: again why complication.
(3) PermitRootLogin yes: probably you want it.

How to connect:
Terminal: use CMD, PuTTY, WSL CMD or other utility to SSH to the guest:

Dynamic (DHCP): for DHCP change 192.168.1.2 to 192.168.1.200 (ifconfig result)

Static Examples:
ssh root@192.168.1.2

Copy ~/directory from guest to host
scp -r root@192.168.1.2:~/directory .

Copy ~/filename from guest to host
scp root@192.168.1.2:~/filename .

Copy directory1 from the host to Guest directory2
scp -r directory1 root@192.168.1.2:~/directory2

Copy filename to directory on the Guest
scp filename root@192.168.1.2:~/directory
 
Back
Top