0. Set our container number for preventing hardcoding in my commands:
1. Download stage3 into OpenVZ template folder (you can get actual link from here http://distfiles.gentoo.org/releases/amd64/autobuilds/latest-stage3-amd64.txt). Be careful - you must set downloaded file name to gento-bla-bla-bla:
2. Create container using stage3 template.
6. First steps in Gentoo - getting portage tree!
export CTID=19484
1. Download stage3 into OpenVZ template folder (you can get actual link from here http://distfiles.gentoo.org/releases/amd64/autobuilds/latest-stage3-amd64.txt). Be careful - you must set downloaded file name to gento-bla-bla-bla:
cd /vz/template/cache
wget http://distfiles.gentoo.org/releases/amd64/autobuilds/current-stage3/stage3-amd64-20131031.tar.bz2 -Ogentoo-stage3-amd64-20131031.tar.bz2
2. Create container using stage3 template.
vzctl create $CTID --hostname gentoo-forever.com --ipadd 78.47.xx.xx --ostemplate gentoo-stage3-amd64-20131031 --layout ploop --disk 10G
3. Start container for removing udev (udev and openvz are natural enemies):
vzctl start $CTID
vzctl exec $CTID 'rm -f /etc/init.d/udev'
vzctl exec $CTID 'rm -f /etc/init.d/udev-mount'
4. Start container for production:
vzctl start 19484;5. Enable ssh:
vzctl enter 19484
/etc/init.d/sshd start
6. First steps in Gentoo - getting portage tree!
emerge --sync
No comments :
Post a Comment
Note: only a member of this blog may post a comment.