[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: RE [Xen-users] kickstart %post not executed


  • To: "Alain BARTHE" <alain.barthe@xxxxxxxx>
  • From: Simone <dezmodue@xxxxxxxxx>
  • Date: Wed, 6 Feb 2008 15:33:31 +0000
  • Cc: xen-users@xxxxxxxxxxxxxxxxxxx, xen-users-bounces@xxxxxxxxxxxxxxxxxxx
  • Delivery-date: Wed, 06 Feb 2008 07:34:04 -0800
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=LZDfVloK89kzVQhCdaARmewowd0NaDEr11nChF+jdIgSOMl1dX216hwUtzudaoH10QfNpEyHABd48eiFIIAJifhFXeyewGndPhW0EXcRf+xS0C6kb0S8jfpySsteLttmEPvNR/6MEmb//GJWCJIR/fg3EfYYWmreLVoF1wyODI4=
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

Hi Alain,

Thanks for your reply. I changed my post as you suggested and it worked, then I reverted back to prove the point and it kept working :) so I guess I'll never understand why it was broken.

Thanks a lot for your help,

Simone

On Feb 6, 2008 12:25 PM, Alain BARTHE <alain.barthe@xxxxxxxx> wrote:

Hi Simone,

I suppose you mess something, because kickstart installations run quite fine for us.

You should try to put the following lines at the beginning of the %post part to see what's happen:

exec < /dev/tty8 &> /dev/tty8
chvt 8
set -x
read foo

By this way, the %post commands may be seen on the 8th console (alt-F8). The "read foo" command pauses the execution, you have to type <cr> to go on.

Cheers
Alain.

xen-users-bounces@xxxxxxxxxxxxxxxxxxx a écrit sur 06/02/2008 12:42:43 :

> Hi all,
>
> I am trying to automate the provisioning of a few VM, dom0 CentOS5 -
> domU CentOS4.5, the installation goes well but it completely ignores
> the %post bit in the kickstart:
>
> # Kickstart file for a generic VM
> install
> url --url http://server/mrepo/centos4-x86_64/disc1
> cmdline
> skipx
> reboot
>
> # Partition information
> .....
>
> # General system config
> bootloader --location=mbr
> keyboard uk
> lang en_GB.UTF-8
> langsupport en_GB.UTF-8
> timezone --utc GMT
> mouse none
>
> # Network information
> network --device eth0 --bootproto dhcp
>
> # Security bits
> authconfig --enableshadow --enablemd5 --enablecache
> rootpw --iscrypted somepasswd
> firewall --disabled
> selinux --disabled
>
>
> %packages
> @core
>
>
> %post
> echo "Now starting post install"
> mkdir /tmp/VM
>
> Is this a known problem or am I doing something wrong?
>
> Thanks
>
> Simone_______________________________________________
> Xen-users mailing list
> Xen-users@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-users

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.