OpenVZ Forum


Home » Mailing lists » Users » More on making an OpenVZ template
Re: More on making an OpenVZ template [message #43298 is a reply to message #43297] Sun, 21 August 2011 16:18 Go to previous messageGo to previous message
kir is currently offline  kir
Messages: 1645
Registered: August 2005
Location: Moscow, Russia
Senior Member

On 08/21/2011 07:26 PM, Benjamin Henrion wrote:
> On Sun, Aug 21, 2011 at 4:10 PM, Kir Kolyshkin<kir@openvz.org> wrote:
>> I have committed the patch:
>> http://git.openvz.org/?p=vzctl;a=commit;h=f83b28435f582f2f74fb3267b89b061a551b32e2
>>
>> And then a few more (to check it works in Debian without /bin/bash):
>> http://git.openvz.org/?p=vzctl;a=commit;h=a86beacde8c1fba4002eaf5bf48a535e7d46ffc0
>> http://git.openvz.org/?p=vzctl;a=commit;h=382f306cd0865bb4bcafc4f7a4b5cfe2f809296c
> I have compiled it, and I can report it works

Thanks for testing!

> I have remove the bash
> binary I got from tinyvz, and now it enters well in openwrt rootfs (I
> have tested with the original vzctl 3.0.24 where it fails to enter if
> there is no /bin/bash):

Well, these patches only affect vzctl create (which runs postcreate.sh
script)
and vzctl set (--ipadd/--ipdel, --nameserver, --hostname, --quotaugidlimit
and --userpasswd).

vzctl enter have nothing to do with the abovementioned patches.

There was a bug in vzctl which prevented enter/exec to work if there was
no /bin/bash in CT and /bin/sh was the one from busybox, see
http://bugzilla.openvz.org/1314

Hmm, strange, my changelogs say it was fixed in vzctl-3.0.24...perhaps you
were using some earlier version?

For the record, the fixes were:
http://git.openvz.org/?p=vzctl;a=commitdiff;h=aeb821cd
http://git.openvz.org/?p=vzctl;a=commitdiff;h=adb8af36

>
> ==================================================
> root@mybox /root/zoobab/openwrt-openvz [46]# ./vzctl --version
> vzctl version 3.0.28.3-70.git.382f306
> root@mybox /root/zoobab/openwrt-openvz [40]# ./vzctl enter 889
> entered into CT 889
>
>
> BusyBox v1.15.3 (2011-07-14 17:03:04 CEST) built-in shell (ash)
> Enter 'help' for a list of built-in commands.
>
> _______ ________ __
> | |.-----.-----.-----.| | | |.----.| |_
> | - || _ | -__| || | | || _|| _|
> |_______|| __|_____|__|__||________||__| |____|
> |__| W I R E L E S S F R E E D O M
> Backfire (10.03.1-RC5, r27608) --------------------------
> * 1/3 shot Kahlua In a shot glass, layer Kahlua
> * 1/3 shot Bailey's on the bottom, then Bailey's,
> * 1/3 shot Vodka then Vodka.
> ---------------------------------------------------
> root@OpenWrt:/#
> ==================================================
>


Kir Kolyshkin
http://static.openvz.org/userbars/openvz-developer.png
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: OS/app in the OpenVZ container
Next Topic: NFQUEUE in VE
Goto Forum:
  


Current Time: Mon Jul 28 22:39:07 GMT 2025

Total time taken to generate the page: 0.63385 seconds