How to create a vm on a specific host

Hi, newbie here. I created two hosts: kvm and xen. But I do not know how to create a vm on one of them. Actually, I am confused how opennebula knows which host to put and which driver to use when i run “onevm create”. it seems to be a stupid question … thanks a lot.

Hi ming

you can update your template and select the scheduling tab and choose your host or cluster
or you can update your template and click Advanced and SCHED_REQUIREMENTS=“ID=“xx”” where xx is your host id

regards
M.