View Single Post
  #3   (View Single Post)  
Old 31st October 2017
notooth notooth is offline
Shell Scout
 
Join Date: Jul 2015
Posts: 125
Default

This is what I have tried:

Put this line in /etc/sysctl.conf:
Quote:
net.inet.ip.forwarding=1
Put this line in /etc/pf.conf:
Quote:
match out on egress from !(egress) nat-to (egress)
Put this line in /etc/hostname.vether0:
Quote:
inet 10.9.0.1/24
Reboot

Run the following commands:
Quote:
vmctl create disk.drive -s 10g
sudo vmctl start install -c -b /bsd.rd -d disk.drive -i 1 -m 1g
After choosing (I)nstall on the virtual machine, I run this command on the host machine:
Quote:
sudo ifconfig bridge0 add vether0 add tap0 up
Back to the virtual machine, I set the vio0 network interface as 10.9.0.2, netmask 255.255.255.0, default IPv4 route 10.9.0.1, DNS server 10.9.0.1, but the virtual machine could not reach the internet:
Quote:
Let's install the sets!
Location of sets? (disk http or 'done') [http]
HTTP proxy URL? (e.g. 'http://proxy:8080', or 'none') [none]
HTTP Server? (hostname, list#, 'done' or '?') [openbsd.hk]
Server directory? [pub/OpenBSD/6.2/amd64]
Unable to connect using https. Use http instead? [no]
Reply With Quote