~alpine/devel

[alpine-devel] Run Alpine linux in an openvz Container

Harry Lachanas <grharry@freemail.gr>
Details
Message ID
<4BFE2640.4010602@freemail.gr>
Sender timestamp
1274947136
DKIM signature
missing
Download raw message
Hi,

I've modified the setup-vs-template that creates a vsrerver template in 
order to create an openvz that you can find attached to this.

My Env is  openvz from Proxmox 1.5 ( based on debian lenny ) that 
provides a web interface and makes some thinks a little easier when it 
comes to setting up quotas for the container ( which in my opinion from 
the command line is ridiculously complex from the command line ) .

These instructions hold for the above mentioned env and propably will 
not work for others.

 
1st step required involves a little cheating
from ths HS env:

#cd /etc/vz/dists

#cat debian.conf  | sed 's/debian/alpine/g' > alpine.conf
#cd /etc/vz/dists/scripts

#cp debian-add_up.sh alpine-add_ip.sh
#cp debian-del_ip.sh alpine-del_ip.sh
#cp debian-set_hostname.sh alpine-set_hostname.sh

That is since alpine looks and feels like debian in some ways, the 
debian scripts ( should )  work in our alpine env.

from an alpine env we run the script provided.
#./setup-vz-template

that will create a tar.gz file  ( if no name is provided 
alpine-1.10-base-i386.tar.gz )
we move this tar.gz into
/var/lib/vz/template/cache

And we are set to go

 From the host
#vzctl create 111 --config pve.auto --hostname alpine --ipadd 
192.168.1.12 --ostemplate alpine-1.10-base-i386


this will create the alpine CT.

#vzctl exec 111 /etc/init.d/devfs start

and

vzctl enter 111  should get you in the alpine CT.
done.

from the web env of the host you can setup the quotas etc ..
of your container ..

Cheers
Harry
Reply to thread Export thread (mbox)