zirias@
Developer
As a bit of background, I'm trying to "depenguinate" a rented vserver. It's running Debian 9 right now, hosted on XEN. XEN provides a virtual framebuffer that guest systems can use, and my provider allows to view it through VNC. Unfortunately, grub2 doesn't seem to have a driver for this, so I never see a boot menu. I tried booting an mfsbsd ISO image from grub2 following this tip and it didn't work (but I'm not sure whether FreeBSD knows and uses XEN's virtual framebuffer).
Now, I'm starting to think that just maybe, my image is booting fine and I can't see anything because FreeBSD doesn't have a driver for this XEN framebuffer? It could be that it just doesn't work because of a strange network configuration.
On Debian, it looks like this in /etc/network/interfaces:
Note I changed the IP addresses here, the real interface address is a public routed address, the gateway though is in a private range. So indeed, the default gateway isn't even in the same class-a network as the address assigned to my virtual machine.
Can I do a similar configuration on FreeBSD at all? My attempt when building my mfsbsd image looked like this (in conf/rc.conf):
Does this look somewhat correct? One thing I noticed is that I can't set a route on an interface like with Linux, just on a gateway, therefore I picked the address of my interface here ...
Thanks for hints!
Now, I'm starting to think that just maybe, my image is booting fine and I can't see anything because FreeBSD doesn't have a driver for this XEN framebuffer? It could be that it just doesn't work because of a strange network configuration.
On Debian, it looks like this in /etc/network/interfaces:
Code:
auto eth0
iface eth0 inet static
address 192.168.35.42
netmask 255.255.255.255
up route add -host 10.19.205.1 dev eth0
up route add default gateway 10.19.205.1
Note I changed the IP addresses here, the real interface address is a public routed address, the gateway though is in a private range. So indeed, the default gateway isn't even in the same class-a network as the address assigned to my virtual machine.
Can I do a similar configuration on FreeBSD at all? My attempt when building my mfsbsd image looked like this (in conf/rc.conf):
Code:
defaultrouter="10.19.205.1"
ifconfig_xnb0="inet 192.168.35.42 netmask 255.255.255.255"
static_routes="defgw"
route_defgw="-host 10.19.205.1 192.168.35.42"
Does this look somewhat correct? One thing I noticed is that I can't set a route on an interface like with Linux, just on a gateway, therefore I picked the address of my interface here ...
Thanks for hints!