Virtuozzo VE management hasn't changed a lot in general but you will still have to revise your existing code because the interface name, the list of the available calls and the input parameters have changed.
The old vem
interface (VPS management) was replaced with the new vzaenvm
interface. Just as before, to create a VE you use the create
call. If you compare the v. 3.0.3 and v. 4.0.0 of the call, you will see that they look very similar. The changes include replacing the interface name, the veid
(VPS ID) parameter must be replaced with eid
(the Environment ID, we discussed it earlier in this document). The new configuration structure is used in v. 4.0.0 (we already discussed it too). The new version of the call is now cleaner and easier to understand. Some additional features were added (the features are optional so not using them will not break your existing code). Other than that, the base principles of creating a Virtuozzo VE remain essentially the same.
Some of the VE management calls have the same names as before, some were renamed, and some were removed from the interface. The calls with the same names will require minor modifications, in most cases just changing the veid
to eid
and passing the correct eid
value. The renamed calls must be revised in the same manner -- changing the names of the calls and verifying that the input parameters and their values. The removed calls are now obsolete.