Solved Is it possible to add another virtio-net i/f to an existing bhyve vm?

So I believed. However, when I edited the vm.conf the network failed to connect. It starts, the IP address and gateways are configured, but one cannot get to the LAN.

In fact if I edit the file at all the vm starts but the network does not establish any connection. It is bizarre but the only way I can get netwoking to connect in the vm is to replace the edited file with a copy of the original that I retreived from a snapshot.
 
This is on a test VM I have:
Code:
utctime="yes"
loader="bhyveload"
cpu="2"
memory="4096M"
network0_type="virtio-net"
network0_switch="public"
network1_type="virtio-net"
network1_switch="public"
disk0_type="virtio-blk"
disk0_name="disk0"
disk0_dev="sparse-zvol"
#zfs_dataset_opts="compress=off"
zfs_zvol_opts="volblocksize=4k compress=off"
uuid="3ccef155-3fd1-11eb-8d9b-002590f15838"
network0_mac="58:9c:fc:00:6e:d6"
network1_mac="58:9c:fc:01:28:c0"
Make sure you're assigning the correct _switch for each of the interfaces. Note that you don't need to add those *_mac entries, they'll be automatically generated when the VM first starts. And stop/start the VM, I don't think you can add them 'on-the-fly'.
 
I overwrote the config file giving the faulty networking with original and then edited that as you show in your example. The vm now starts and its networking is working. I can only infer that I introduced an error into the original file at some point and did not notice.

In any thank you.
 
Back
Top