T
T
tema862016-02-25 19:07:34
FreeBSD
tema86, 2016-02-25 19:07:34

Bhyve, what is the correct way to reload vm?

Hello, I started testing bhyve, installed Ubuntu on it, it seems to work. But when I do a reboot from under Ubuntu, the virtual machine stops, and the mana also says to reboot the vm, you need to kill it first with bhyvectl --destroy --vm=vm1, and then start it again. Is there any script or solution for this problem?
And the second question, when creating a VM, I create a tap1 interface and add it to bridge0. I tried to start the second VM through tap1 - it doesn’t start, the question is, for each new VM, create your own network interface or can everything be driven through tap1?
As I understand it, no one really used bhyve? Climb into foreign forums?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
Oleg Ginzburg, 2016-02-26
@tema86

1) You need a cycle from vm start and destruction, like

while [ true ]; do
   bhyve --create/run ... 
   bhyvectl --destroy ..
done

Ready scripts in bulk: /usr/share/examples/bhyve/vmrun.sh , iohyve, vmrc, etc. I implemented the same thing in my CBSD.
2) Yes, each vm has a personal tap

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question