Re: [Users] More on making an OpenVZ template

2011-08-20 Thread Benjamin Henrion
On Fri, Aug 19, 2011 at 10:18 PM, Sam Trenholme
strenholme.use...@gmail.com wrote:
 I am continuing the work of making a tiny OpenVZ template.  One
 discovery I have is that, for the OpenVZ tools to work, not only is it
 mandatory for the system to have the Bash shell, but also that /bin/sh
 has to be a symlink to Bash.  This is because the vzctl program
 prepends the contents of the Bash-only
 /etc/vz/dists/scripts/functions script to any script used by the
 container to configure the system, and there does not appear to be any
 way to configure a container to not use this Bash-only script.

 In other words, any OpenVZ template without /bin/sh being an alias for
 Bash can not be configured via the vzctl tools (nor the
 corresponding Proxmox/SolusVM/whataever tools that call vzctl).

 This in mind, the next release of TinyVZ will include the Bash shell.
 I actually prefer Bash over Busybox's ash shell; I *really* miss the
 !$ and !* shortcuts, as well as the history command, when using
 this minimal shell.

 Since this is an open source project I am not getting paid for, I have
 no timeline of when I will make another TinyVZ release, nor do I
 guarantee I will even make such a release.  Working on TinyVZ has
 taught me a lot about OpenVZ and hopefully is something that is
 useful.

This is a very useful for me, I was about to spend time on an openwrt
container, which does not use bash at all.

Where in the source code of vzctl do you see this requirement?

--
Benjamin Henrion bhenrion at ffii.org
FFII Brussels - +32-484-566109 - +32-2-4148403
In July 2005, after several failed attempts to legalise software
patents in Europe, the patent establishment changed its strategy.
Instead of explicitly seeking to sanction the patentability of
software, they are now seeking to create a central European patent
court, which would establish and enforce patentability rules in their
favor, without any possibility of correction by competing courts or
democratically elected legislators.

___
Users mailing list
Users@openvz.org
https://openvz.org/mailman/listinfo/users


[Users] TinyVZ 0.7 released

2011-08-20 Thread Sam Trenholme
I have released TinyVZ 0.7 today.  This will be my last TinyVZ release
for the foreseeable future.

TinyVZ 0.7 is a tiny little OpenVZ template for making OpenVZ
containers that use the lowest amount of memory and hard disk space
possible.

This is a self-hosting template with all source code; it is possible
to compile the entire system inside of the template.  Look in the
build/ directory (inside the template) for source code.

The main addition to this release of TinyVZ is that it is now possible
to use the relevant vzctl commands to add or remove an IP, set the
machine's hostname, determine what nameservers to use, as well as
setting user's passwords.  As recently discussed on the list, I had to
add the Bash shell to do this.

The tarball now contains the template's tarball inside of it; the
relevant scripts used by vzctl as well as an installation guide
(README) are also inside the tarball.

The system is for hard core UNIX/Linux gurus: The only editor is a
miniature version of vi included with Busybox (actually, I also
compiled in Busybox's version of the ed editor, for those who feel
vi pampers the user too much); all configuration is done by editing
text files.  You will need to compile your own mail server, SSH
server, web server, or other desired server.

It can be downloaded here:

http://samiam.org/TinyVZ/

- Sam
___
Users mailing list
Users@openvz.org
https://openvz.org/mailman/listinfo/users