Re: [Users] Scripting ve creation

2007-07-31 Thread Kir Kolyshkin
It might be a stupid question, but is that problem caused by the simple 
fact that there's no terminal created during vzctl exec -- so everything 
that requires a terminal (for example, any ncurses/slang-based 
application like top) fails.


Possible solution would be to implement execterm command or the like, 
which is the same as exec but with a terminal.


Kirill Korotaev wrote:

Steve,

Good to know. Anyway I've created a bug
http://bugzilla.openvz.org/show_bug.cgi?id=658
so we'll try to reproduce and resolve your issue.

Thanks,
Kirill

Steve Hodges wrote:
  
We have a suitable workaround now.  Instead of the creation script 
running all the installs etc, it writes to an install script in the VE.  
We then log in to the skeleton VE and run the script.


Steve



hm... something went differently and there is no such a message
in strace :/

can you give me an access to the node to check it?

Thanks,
Kirill


Steve Hodges wrote:


 

  

The file is on my web server

http://steve-is-mucking-about.sexypenguins.com/out.gz

I noticed that the command did not terminate and had to be killed (I 
tried it a number of times with the same result)


the command I used was

vzctl exec 101 strace -f -o /tmp/out apt-get install exim4 -y

thanks

Steve

On 27/07/2007 9:56 PM, Kirill Korotaev wrote:

  

   



Can you please run the following command:
# vzclt exec 110 strace -f -o /tmp/out apt-get install exim4
and send me /tmp/out file (it will be created inside VE)?

Thanks,
Kirill
P.S. it may require installing strace package first.

Steve Hodges wrote:




 

  
I'm trying to script the creation of a number of VEs.  The template is a 
minimal Debian Etch.


part of what I'm trying to do is thinks like:

vzctl exec 110 apt-get install exim4

exim is one of those packages that wants to run dpkg-configure as part 
of the install (actually I think it's dpkg-preconfigure, but it's the 
same sort of thing)


When it gets to that stage it complains that it can't re-open stdin 
and generally fails to complete the install.


Is there any way of executing a whole series of commands like this 
without having to run them all manually.  Some things have to be done 
  
   

from outside the VE too, so just running a script in the VE is 


 

  

problematic :-(

Steve
___



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


Re: [Users] openvz and 2.6.20

2007-07-31 Thread Kir Kolyshkin



DULMANDAKH Sukhbaatar wrote:

Hello all.

I'm new to openvz, and trying to install openvz on ubuntu 7.04. But
I'm having some problems that I cannot describe here.

Is openvz for 2.6.20 kernel is stable? Here
http://openvz.org/news/announcements/kernel-2.6.20-20070328 I see that
it's already stable, and usable.
It is usable, but _probably_ not quite stable, and the text doesn't say 
that it is stable. What it says is that software [is] for the most 
recent stable Linux kernel 2.6.20, meaning the mainstream kernel 2.6.20 
is stable, but not the OpenVZ kernel based on it.

 But
http://wiki.openvz.org/Download_kernel_2.6.20 and
http://openvz.org/download/kernel/ says that it's not stable yet.
  

That's right.

Which one is the true information? If it is stable, can I install it
on Ubuntu feisty? Is anyone had success running openvz on ubuntu?
You definitely can install this on Ububtu, some info is available from 
http://wiki.openvz.org/Installation_on_Debian (I guess it will work fine 
for Ubuntu). Still, I recommend to use our stable branch, 2.6.18-based, 
unless you really want to be on the bleeding edge.


Kir.

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


Re: [Users] Odd errors from the kernel

2007-07-31 Thread Steve Hodges

On 1/08/2007 1:42 PM, Steve Hodges wrote:

I get this during the running of a script that creates a VE.



I probably should add that I don't see it very often.  This may be the 
third time.  And I've used that same script to create hundreds of VEs 
(mostly to test the script).


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