On 2/7/13 7:27 PM, "Rohit Yadav" <bhais...@apache.org> wrote:
>On Fri, Feb 8, 2013 at 8:46 AM, Chiradeep Vittal ><chiradeep.vit...@citrix.com> wrote: >> I undid your fix :) to leave it modular. > >:) I made it thinking would be easier to hack only one postinstall.sh >script. Pl. also backport to 4.1 (CLOUDSTACK-1066's fix version is >4.1, though in cfg files we use version 4.2?) so we are in sync. Not sure about this. Are you proposing this for 4.1? Should be OK I guess. > >> It still builds with the hostname as 'ahha' -- I can't figure out why. >We can enforce hostname in one of the postinstall scripts, I found >some reference of ahha in config.dat Figured it out: the dhcp server in vbox hands out the dns server of the host (in my case my corporate dns server). Dhclient reverse looks up 10.0.2.15 (the address of the vm) and gets a valid response from the corporate dns server. Annoyingly this is used to name the volume group during partitioning. The only foolproof way may be to write a custom partman recipe in preseed.cfg. You can change the ip of the vm using :vm_options in veewee but veewee's http server is hardcoded to 10.0.2.2 so nothing else works. > >> What is left: >> Openswan requires interactive input to install. Previously we had a >> pre-baked config.dat that fed into pkg-configure to supply canned >> responses. Somehow this needs to be copied into the root directory >> (postinstall_files in definition.rb will try to execute it). > >scp to suitable path inside systemvmtemplate on port 7222? (See >definitions.rb for ssh port details). Install ssh server in >postinstall script if not installed (I think it is), or just attach >the payload in yet another postinstall script and let it run. Well veewee doesn't let you write custom scripts that execute on the host? Anyway, I figured we can use debconf-set-selections to avoid this problem. As far as copying the custom scripts goes, perhaps we can wget from git-wip-us.apache.org repo ? I've left a few FIXME in cloudstack-packages.sh, please take a look. -- Chiradeep