Is it possible to set a domain id for a vm in xen at all? I'd imagine that changing it while it is running would be problematic, but if I can even set it in the config file or when xm create foo
is run that would be helpful.
Is it possible to set a domain id for a vm in xen at all? I'd imagine that changing it while it is running would be problematic, but if I can even set it in the config file or when xm create foo
is run that would be helpful.
The domain ID is set dynamically, at the time of the
xm create
command. IDs are sequentially assigned integers. If a domain is restarted, it will get the next available integer ID for its domain ID. If you have 30 guests running, and you start them all at boot, they will be assign domain ID numbers 1 - 30 (the dom0 takes the first number, 0). Now, let's say that domain #3 needs to restart sometime later; when it restarts, it will get domain ID 31 (assuming that no other guests have been restarted between host node startup and the point where node #3 was restarted).In short, no, you cannot set this property of the VM.