Hi, i'd like to create a template of NixOS linux to use as OpenVZ guest.
I installed the system into /vz/private/203,
so it looks like this:
ls /vz/private/203
bin dev etc home nix proc root run sys tmp usr var
Now I set the config with:
vzctl set 203 --applyconfig basic --save
Attempt to start gives me:
vzctl start 203
Starting Container ...
Cannot mount: /vz/private/203/root /vz/root/203: No such device
The error code is 50, VZ_FS_CANTMOUNT.
When I looked on the github source, this line is returning the code:
if (mount("", dst, "ext4", mntopt, "")) {
logger(-1, errno, "Cannot remount: %s", dst);
return VZ_FS_CANTMOUNT;
}
return 0;
I don't even get why the error message is not matching the pattern.
Is there any manual how to create a container from a bare linux installed "/", or creating a template from it and then container?
I'm running vzctl v.7.0.81-1.vz7 under virtualbox vagrant.