[ZT]Linux环境下搭建vps教程,Vtonf安装教程
Vtonf是一款免费的基于web界面的控制面板(符合GPL),它可以管理OpenVz上虚拟专用服务器(VPS)。使用它可以很简单地创建和管理OpenVZ上的虚拟机。到目前为止,Vtonf仅仅支持RedHat, Fedora, 和 CentOS(支持Debian正在计划中)。CentOS-5.5-i386系统(Vtonf不支持x86-64的系统,安装过程会出错,在其INSTALL中也有说明)
1、关闭SELinux
编辑vim /etc/sysconfig/selinux 修改为:SELINUX=disabled
SELINUXTYPE=targeted2、Firewall
如果不想关闭Firewall,需要输入下列规则打开8001端口:/sbin/iptables -I INPUT -p tcp –dport 8001 -j ACCEPT
/etc/rc.d/init.d/iptables save
/etc/init.d/iptables restart3、安装 OpenVZcd /etc/yum.repos.d
wget http://download.openvz.org/openvz.repo
rpm –import http://download.openvz.org/RPM-GPG-Key-OpenVZ
yum search ovzkernel
yum -y install ovzkernel
yum -y install vzctl vzquota
编辑vim /etc/sysctl.conf
修改或添加以下内容net.ipv4.ip_forward = 1
net.ipv4.conf.default.proxy_arp = 0
net.ipv4.conf.all.rp_filter = 1
kernel.sysrq = 1
net.ipv4.conf.default.send_redirects = 1
net.ipv4.conf.all.send_redirects = 0
net.ipv4.icmp_echo_ignore_broadcasts = 1
net.ipv4.conf.default.forwarding = 1使之生效:sysctl -p重启系统reboot
uname -r如果安装正常应该显示为:
2.6.18-194.el5.028stab068.9
4、安装Vtonfyum -y install vzpkg expect
wget -c http://mesh.dl.sourceforge.net/sourceforge/vtonf/vtonfinstaller.1.0-beta1.tar.gz
(此软件包比较大,一定要在wget后加-c参数,这样在下载停顿的时候可以按Ctrl+C结束,再续传!)tar zxvf vtonfinstaller.1.0-beta1.tar.gz
cd vtonfinstaller.1.0-beta1
./install会问你是否开始安装程序,输入yes
Do you wish to start the installation procedure (y/n)? : y
Starting installation
Please wait…………
Vtonf control panel installation completed. Please login to the control panel from the following information
http://192.168.0.100:8001/
Login Name : admin
Password : howtoforge
Visit our forum : http://www.vtonf.com/forum/index.php
Get support : http://www.vtonf.com/support.html
正如你所见,安装程序告诉你了Vtonf控制面板的url地址
安装完成。
打开vtonf控制面板:http://服务器ip:8001/
输入安装过程中你设置的用户名和密码
Login Name : admin
Password :
属于你自己的VPS已经呈现在你的眼前。
5、安装Vtonf汉化包(可选)
wget http://download.linuxzh.org/xyj/Downloads/vtonf-cn-1.0.tar.bz2
tar xvfj vtonf-cn-1.0.tar.bz2
cd vtonf-cn
./vtonf-cn.sh /usr/local/vtonf汉化完成,打开登录界面会出现简体中文语言选择
注:以上配置在CentOS 5.5 32位上测试通过。
http://www.3zm.net/vps/124.html
[ZT]使用Vtonf
打开浏览器并且进入Vtonf管理界面这个就是管理界面的样子了,我将会讲述最重要的功能创建一个虚拟机(尽管Vtonf非常简单,你可以完全弄清楚了)
点击Create Node
Vtonf里出现了一个OS templates,centos-4-i386-minimal,选择这一个,选择一个配置文件(例如vps.basic),并且填入主机名和ip地址(在下一个章节,我将讲解怎样添加更多的OS templates),点击Create Node 按钮:
几分钟后你就能看到有关虚拟机已经安装创建的信息了
在Node Listing下,你就能看到你的新虚拟机了
你可以为你的虚拟机创建plans(plans定义一些包含内存,磁盘空间等信息)然后使用这个plan创建虚拟机(创建出来的虚拟机就会具有和这个plan上设定的相同的属性),这可以省去了你手工的输入设置,并且可以快速的创建虚拟机。
等你创建好一个虚拟机后,你进入NODE MANAGEMENT并且点击Node Start来启动虚拟机,从下拉菜单中选择虚拟机,并点击Start按钮
在你第一次启动虚拟机时,你需要设置为它设置一个root密码(这一步必须在虚拟机运行的时候进行),点击Go to SERVICES > Change Node Root Password,选择虚拟机,并且两次输入你想要的管理密码。
在NODE NANAGEMENT > Set Nameservers之下,你也可以为你的虚拟机定义一些域名服务器(这一步也必须在虚拟机运行的时候进行)除非你在一个plan中定义了域名服务器,并且虚拟机也是从这个plan中创建的。
Vtonf相当易操作,你可以玩下其他的设置,来看看他们能做些什么.
========================================================================
添加OS Templates
由于Vtonf仅仅附带一个OS Templates(centos-4-i386-minimal),你可能想添加更多的OS Templates。你可以在http://wiki.openvz.org/Download/template/precreated找到一个OS Templates列表。这些OS Templates必须存储在/vz/template/cache文件夹下,我们来下载两个OS templates (CentOS 5 and Debian Etch):cd /vz/template/cache
wget http://download.openvz.org/template/precreated/contrib/centos-5-i386-default.tar.gz
wget http://download.openvz.org/template/precreated/debian-4.0-i386-minimal.tar.gz然后我们必须使得Vtonf重新读取/vz/template/cache,来发现这两个新的OS templates,点开VTONF > Update Settings.
并且点击Update按钮
然后,当你打开SERVER > Create Node你就会在Operating System下拉菜单中发现新的OS templates。
相关链接
Vtonf: http://www.vtonf.com
OpenVZ: http://wiki.openvz.org
CentOS: http://www.centos.org
本文转自http://www.unixbar.net/tag/vtonf感谢作者分享 回头有机会试试看 openvz仅仅支持和宿主机同样系统的虚拟,不支持windows 惨...白折腾了半天...
页:
[1]