OpenVZ Forum


Home » Mailing lists » Devel » Vzctl set --userwasswd question
Vzctl set --userwasswd question [message #14319] Fri, 22 June 2007 09:25 Go to next message
dietmar is currently offline  dietmar
Messages: 54
Registered: March 2007
Member
Hi all,

I am trying to set a password with the --userpasswd option, the VPS is not
running:

> vzctl set 777 --userpasswd root:test
Starting VE ...
VE is mounted
VE start in progress...
Stopping VE ...
Unable to stop VE: operation timed out
Configure meminfo: 309371

Looks like vzctl start init (runlevel 2) on that VPS, so we get a timeout.
Output form ps for that VPS:

> ps auxww
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 1 0.3 0.0 1948 640 ? Ss 11:17 0:00 init [2]
root 18348 0.0 0.0 2760 1436 ? Ss 11:17 0:00 /bin/sh
/etc/init.d/rc 2
root 18357 0.0 0.0 1632 612 ? Ss 11:17 0:00
/sbin/syslogd
...

So why does it start init - is that expected behavior, or is something wrong
with my custom template?

The vzctl man page say:

> --userpasswd user:password
> ...
> In case VE root is not mounted, it is automatically mounted,
then
> all appropriate file changes are applied, then it is unmounted.

vzctl version 3.0.16-5dso1
Linux vz-etch 2.6.18-028stab035.1-ovz-smp #1 SMP Wed Jun 13 22:08:06 CEST
2007 i686 GNU/Linux
OS Debian etch

- Dietmar
Re: Vzctl set --userwasswd question [message #14337 is a reply to message #14319] Fri, 22 June 2007 18:37 Go to previous messageGo to next message
kir is currently offline  kir
Messages: 1645
Registered: August 2005
Location: Moscow, Russia
Senior Member

I'm not really sure, but I guess this is old vzctl vs. new kernel
incompatibility, solved by
http://git.openvz.org/?p=vzctl;a=commitdiff;h=4766d1f711a73e7929530a5a3f50d749e0f9de6a

Can you please try vzctl-3.0.16 with this patch, or latest vzctl from
git, and report your results here?

Regards,
Kir.

Dietmar Maurer wrote:
> Hi all,
>
> I am trying to set a password with the --userpasswd option, the VPS is not
> running:
>
>
>> vzctl set 777 --userpasswd root:test
>>
> Starting VE ...
> VE is mounted
> VE start in progress...
> Stopping VE ...
> Unable to stop VE: operation timed out
> Configure meminfo: 309371
>
> Looks like vzctl start init (runlevel 2) on that VPS, so we get a timeout.
> Output form ps for that VPS:
>
>
>> ps auxww
>>
> USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
> root 1 0.3 0.0 1948 640 ? Ss 11:17 0:00 init [2]
> root 18348 0.0 0.0 2760 1436 ? Ss 11:17 0:00 /bin/sh
> /etc/init.d/rc 2
> root 18357 0.0 0.0 1632 612 ? Ss 11:17 0:00
> /sbin/syslogd
> ...
>
> So why does it start init - is that expected behavior, or is something wrong
> with my custom template?
>
> The vzctl man page say:
>
>
>> --userpasswd user:password
>> ...
>> In case VE root is not mounted, it is automatically mounted,
>>
> then
>
>> all appropriate file changes are applied, then it is unmounted.
>>
>
> vzctl version 3.0.16-5dso1
> Linux vz-etch 2.6.18-028stab035.1-ovz-smp #1 SMP Wed Jun 13 22:08:06 CEST
> 2007 i686 GNU/Linux
> OS Debian etch
>
> - Dietmar
>
>
AW: Vzctl set --userwasswd question [message #14502 is a reply to message #14337] Mon, 25 June 2007 11:28 Go to previous message
Dietmar Maurer is currently offline  Dietmar Maurer
Messages: 52
Registered: March 2007
Member
OK, now the VPS stpos correctly, but i get the following error:

vzctl set 777 --userpasswd root:test
Starting VE ...
VE is mounted
VE start in progress...
Stopping VE ...
VE was stopped
VE is unmounted
Configure meminfo: 309371
Unable to set meminfo: Invalid argument

- Dietmar

> -----Ursprüngliche Nachricht-----
> Von: Kir Kolyshkin [mailto:kir@openvz.org]
> Gesendet: Samstag, 23. Juni 2007 00:37
> An: Dietmar Maurer
> Cc: devel@openvz.org
> Betreff: Re: [Devel] Vzctl set --userwasswd question
>
> I'm not really sure, but I guess this is old vzctl vs. new
> kernel incompatibility, solved by
> http://git.openvz.org/?p=vzctl;a=commitdiff;h=4766d1f711a73e79
29530a5a3f50d749e0f9de6a
>
> Can you please try vzctl-3.0.16 with this patch, or latest
> vzctl from git, and report your results here?
>
> Regards,
> Kir.
>
> Dietmar Maurer wrote:
> > Hi all,
> >
> > I am trying to set a password with the --userpasswd option,
> the VPS is
> > not
> > running:
> >
> >
> >> vzctl set 777 --userpasswd root:test
> >>
> > Starting VE ...
> > VE is mounted
> > VE start in progress...
> > Stopping VE ...
> > Unable to stop VE: operation timed out Configure meminfo: 309371
> >
> > Looks like vzctl start init (runlevel 2) on that VPS, so we
> get a timeout.
> > Output form ps for that VPS:
> >
> >
> >> ps auxww
> >>
> > USER PID %CPU %MEM VSZ RSS TTY STAT START
> TIME COMMAND
> > root 1 0.3 0.0 1948 640 ? Ss 11:17
> 0:00 init [2]
> > root 18348 0.0 0.0 2760 1436 ? Ss 11:17
> 0:00 /bin/sh
> > /etc/init.d/rc 2
> > root 18357 0.0 0.0 1632 612 ? Ss 11:17 0:00
> > /sbin/syslogd
> > ...
> >
> > So why does it start init - is that expected behavior, or
> is something
> > wrong with my custom template?
> >
> > The vzctl man page say:
> >
> >
> >> --userpasswd user:password
> >> ...
> >> In case VE root is not mounted, it is automatically
> >> mounted,
> >>
> > then
> >
> >> all appropriate file changes are applied, then
> it is unmounted.
> >>
> >
> > vzctl version 3.0.16-5dso1
> > Linux vz-etch 2.6.18-028stab035.1-ovz-smp #1 SMP Wed Jun 13
> 22:08:06
> > CEST
> > 2007 i686 GNU/Linux
> > OS Debian etch
> >
> > - Dietmar
> >
> >
> --
> This e-mail is checked by Proxmox - Virus and Spam Mail
> Gateway http://www.proxmox.com
>
>
Previous Topic: [PATCH] namespace: ensure clone_flags are always stored in an unsigned long
Next Topic: [PATCH 0/3] ext4: Extent code cleanup
Goto Forum:
  


Current Time: Fri Sep 13 14:16:14 GMT 2024

Total time taken to generate the page: 0.05244 seconds