Move to the templates directory:
# cd /vz/template/cache
Download CentOS 5.1 template:
# wget http://download.openvz.org/template/precreated/contrib/centos-5-i386-minimal.tar.gz
Create the VE:
# vzctl create
Set VE's IP address:
# vzctl set
Set VE's hostname:
# vzctl set
Set root's password:
# vzctl set
Start the VE:
# vzctl start
Trying to enter the VE now I got an error:
# vzctl enter
enter into VE
Unable to open pty: No such file or directory
We can solve this with:
# vzctl exec
# vzctl exec
# vzctl exec
# vzctl exec
# vzctl enter
Then we remove udev package like this:
# rpm -qf /etc/udev/makedev.d/50-udev.nodes
udev-095-14.9.el5
# rpm -e udev-095-14.9.el5 –nodeps
Now we can restart the VE and we are ready to go.
No comments:
Post a Comment