OpenVZ Forum


Home » General » Support » *SOLVED* Trying to create an ubuntu-edgy template.
*SOLVED* Trying to create an ubuntu-edgy template. [message #7308] Wed, 11 October 2006 01:49 Go to previous message
frenchyp is currently offline  frenchyp
Messages: 7
Registered: October 2006
Junior Member
Hello OpenVZ community.

My goal is to create an ubuntu-edgy template for openvz.

This is how I proceed:
I use the ubuntu template provided on the openvz wiki.
I enable the repositories for testing, and run apt-get dist-upgrade.
I create the template by removing all the extra information (hostname, IP, history..) and tarring the /vz/private/VEID directory into an archive in /vz/template/cache.
I am then able to create other VPSes using this template and the vzctl create VEID .. command.

The VPS gets installed and starts normally, but I am then facing some issues:

First was that the network was down on bootup. I looked into the /etc/vz/dist/scripts files and it appears that in the debian-add-ip.sh (which this template is using), the ifup -a command is ineffective.
However I was able to fix that by adding /sbin/ifup -a in the /etc/rc.local file. Despite being totally inelegant it works. It makes me think that the starting script is trying to run this command too early during the boot process.

The second issue is that I can't get sshd to start on bootup.
I checked that the symlink to /etc/init.d/ssh was in my /etc/rc<runlevel>.d,
I tried to run it after rc.local,
I tried to add the /etc/init.d/ssh start command to rc.local after the ifup -a,
but I can't get sshd to start on boot.
If I enter the VPS and attempt to start it, it runs without any problem.

Does anyone have any idea on this issue? comments?

Thank you very much for your time and help.

[Updated on: Sat, 14 October 2006 06:31] by Moderator

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: drbd with 2.6.9-023stab037.3-enterprise
Next Topic: *SOLVED* Yum dependency error installing stable ovzkernel on FC6
Goto Forum:
  


Current Time: Wed Jul 10 06:37:09 GMT 2024

Total time taken to generate the page: 0.02471 seconds