Re: After 12.1->12.2 upgrade FreeBSD bhyve guest does not start anymore
On 1/14/21 10:04 PM, Jason Tubnor wrote: We clearly define volmode=dev on the zvol for all guests to prevent the host geom activities taking hold of the volume. Setting it to 'dev' will make the host ignore it and won't cause issues when bhyve goes to use it. This should fix the problem you are having. Let us know how you get on. I tried this, but it did not help. I still need to connect to the guest via (virtual) serial line and manually specify the root device in order to boot it. bye & thanks av. ___ freebsd-virtualization@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization To unsubscribe, send any mail to "freebsd-virtualization-unsubscr...@freebsd.org"
Re: [bhyve][arm64] Number of allowed vcpus
Thanks for you responses and sorry for not specifying the guest's device tree. I've summed up your proposals and sketched and algorithm: N - the number of vcpus from the '-c' parameter X - the number of vcpus from the device tree if there isn't the parameter -> start the vm with X vcpus if there is the parameter --> if N <= X -> start the vm with N parameters |-> if N > X -> throw an error I believe this gives the opportunity to rebuild the device tree and use all vcpus (first branch) or let the device tree as it is (more vcpus) but use only a subset of them. Is this alright? Thanks, Andrei On Wed, Jan 13, 2021 at 1:55 PM Andrei Martin wrote: > Hello, > > While working on enabling multiple virtual cpus for the arm64 virtual > machine > I used the bhyve's "-c N" parameter to create N cpus (it gets only the > cpus, in contrast to the amd64). If N is smaller than the number of cores > described in the device tree it will enable only N and if it's larger it > will enable only the number of cores from the device tree. > > I don't know if it is the best approach. Another way would be to enable > all the cpus from the device tree, no more, no less. > > Do you have any suggestions? > > Andrei > ___ freebsd-virtualization@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization To unsubscribe, send any mail to "freebsd-virtualization-unsubscr...@freebsd.org"
Re: [bhyve][arm64] Number of allowed vcpus
Hi Andrei, I've summed up your proposals and sketched and algorithm: N - the number of vcpus from the '-c' parameter X - the number of vcpus from the device tree if there isn't the parameter -> start the vm with X vcpus if there is the parameter --> if N <= X -> start the vm with N parameters |-> if N > X -> throw an error I believe this gives the opportunity to rebuild the device tree and use all vcpus (first branch) or let the device tree as it is (more vcpus) but use only a subset of them. Is this alright? If you are going to have the ability to rebuild the device tree, you might as well do it every time. If a user hasn't specified how many vCPUs on the command line, it's safe to assume a default of 1. later, Peter. ___ freebsd-virtualization@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization To unsubscribe, send any mail to "freebsd-virtualization-unsubscr...@freebsd.org"