Tạo template OS CentOS 5.3, 5.4, 5.x ... cho Virtuozzo
Tình hình là có một số bạn cần tạo Container cài đặt centos 5.4 or 5.5 ... nhưng do Virtuozzo luôn cache template centos mới nhất về nên các bạn không tạo được phiên bản os template centos trước đó được!
Vậy bài này tui sẽ hướng vẫn các bạn cách cache một template os centos 5.4 để các bạn có thể tạo container với os template centos 5.4
Cache OS template CentOS 5.4
Truy cập SSH vào Server hardware node
Gõ các lệnh sau:
|
Trích dẫn:
|
#mkdir -p /vz/template/centos/5.4/x86_64
#cp -a /vz/template/centos/5/x86_64/config /vz/template/centos/5.4/x86_64/
# cd /vz/template/centos/5.4/x86_64/config/os/default/
|
Chỉnh sửa lại nội dung của 2 file (mirrorlist và repositories) theo nội dung bên dưới:
#vi mirrorlist
|
Mã:
|
$SW_SERVER/download/mirrors/centos-5
$SW_SERVER/download/mirrors/updates-released-ce5 |
#vi repositories
|
Mã:
|
#$CE_SERVER/centos/5/os/x86_64
#$CE_SERVER/centos/5/updates/x86_64
http://vault.centos.org/5.4/os/x86_64
http://vault.centos.org/5.4/updates/x86_64 |
Sử dụng lệnh sau để update cache os template
|
Mã:
|
vzpkg update cache centos-5.4-x86_64 |
Hoặc bạn có thể sử dụng giao diện PMC để cache OS template
http://download.swsoft.com/virtuozzo...uxUG/17467.htm
Cache OS template CentOS khac (Version cu hon)
1. Truy cap vao link ben duoi va chon version cua os template centos
http://vault.centos.org/
2. Thay doi 2 gia tri trong file: repositories thanh phien ban os template centos ban muon cache
#vi repositories
|
Mã:
|
http://vault.centos.org/5.4/os/x86_64
http://vault.centos.org/5.4/updates/x86_64 |
Done
Chuc ban thanh cong!
