OpenVZ Forum


Home » General » Support » Creating a template from installation
Creating a template from installation [message #52722] Mon, 23 January 2017 14:44
coub is currently offline  coub
Messages: 1
Registered: January 2017
Junior Member
From: *ipv4.broadband.iol.cz
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.
Previous Topic: application templates
Next Topic: openvz7 and standard templates
Goto Forum:
  


Current Time: Tue May 23 01:14:35 GMT 2017