记录关于Devops运维,虚拟化容器云计算,数据库,网络安全等各方面问题。
CentOS 6.0 安装 Atheros ar8151 网卡驱动 公司的外包部门的ftp服务器,主板是技嘉H61的,安装完成CentOS 6.0,发现没有网卡驱动,打开说明书,网卡是Atheros ar8151。1. 下载 AR81Family-linux-v1.0.1.14.tar.gz2. 用U盘将文件拷贝到/usr/loal/srccp /mnt/AR81Family-linux-v1.0.1.14.tar.gz /usr/local/src
3. 解压,编译,安装cd /usr/loal/src mkdir drives tar –zxvf AR81Family-Linux-v1.0.1.14.tar -C drives cd drives ./configure# 编译 make # 安装 make install 4. 安装并挂载atl1e.ko模块# 安装模块 install /lib/modules/2.6.32-71.el6.x86_64/kernel/drivers/net/atl1e/atl1e.ko # 挂载模块 modprobe atl1e 5. 编辑网卡,生成ifcfg-eth0文件 使用命令ifconfig可以启动网卡,查看网卡的MAC地址:HWaddr后为MAC地址ifconfig eht0 192.168.1.1 netmask 255.255.255.0 # 查看mac地址 ifconfig eth0eth0...
Proxmox 使用 Q & A Q: 如何从 2.3版本 升级到 3.0版本?A: 2.x 版本如何升级到2.3版本这里不说了,主要说明升级到3.0的流程 1) 先 SSH 到主机,下载一个升级脚本 wget http://download.proxmox.com/debian/dists/wheezy/pve-upgrade-2.3-to-3.0 2)脚本加运行权限 chmod +x pve-upgrade-2.3-to-3.0 3)停止所虚拟主机 4)执行以下命令自动下载相关升级文件 ./pve-upgrade-2.3-to-3.0 --download-only 5)执行脚本 &n...
Proxmox 创建群集与迁移 配置说明 1、在主服务器上创建群集 proxmox:~# pveca -c cluster master successfully created 2、检查群集状态 proxmox:~# pveca -l CID—-IPADDRESS—-ROLE-STATE——–UPTIME—LOAD—-MEM—DISK 1 : 192.168.100.10 M A 2 days 18:21 0.00 29% 3% 3、在节点服务器上连接群集(节点即NODE) proxmox:~# pveca -a -h 192.168.100.10 Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added ‘192.168.100.10′ (RSA) to the list of known hosts. root@192.168.100.10’s password: cluster node successfully created 4、群集创建成功,查看群集运行状态: proxmox:~# pveca -l CID—-IPADDRESS—-ROLE-STATE——–UPTIME—LOAD—-MEM—DISK 1 : 192.168.100.10 M A 2 days 18:52 &n...
1.首先在虚拟机控制台选择调整硬盘容量,弹出窗口为增加的容量2.重启虚拟机,用fdisk –l查看新增容量是否被识别3.用cfdisk创建分区,分区格式为Primary 8e (Linux LVM),重启服务器。 例如 /dev/sda34.使用pvcreate创建物理卷 例如:pvcreate /dev/sda35.使用vgcreate创建卷组,卷组名可随便取。例如:vgcreate amfslvm2 /dev/sda36.使用vgscan检查卷组情况,原本一个卷组(AMFS),新增一个卷组(amfslvm2)7.使用vgmerge合并两个卷组。例如:vgmerge AMFS amfslvm28.使用df -h命令查看未扩展前的分区情况,记录下”/dev/mapper/AMFS-root”9.使用lvextend调整逻辑卷大小。例如:lvextend –l +100%FREE /dev/mapper/AMFS-root10.使用resize2fs动态调整分区大小。例如:resize2fs –p /dev/mapper/AMFS-root11.再用df -h命令查看扩展后的分区情况。
Proxmox 虚拟机使用LVM扩展硬盘容量 近段时间一直在学习 proxmox ,经常会遇到安装虚拟主机时分配硬盘空间不足的问题,下面将以实例说明一下主体思路供大家一起学习。 平台环境: 1) Dell R210 500G HD/ 8G RAM/ X3430 2.4GHz 2) Proxmox VE 2.2 3) 实验虚拟机采用 VM 模式安装 (ubuntu 12.04 server AMD64) 一、 用VM模式先创建一台虚拟机 ,分配硬盘为20G,安装时使用“LVM分配整个硬盘” (安装过程不表) 二、 关闭该虚拟机,按下图进行"resize disk" 三、假设需要修改为100G的硬盘空间,这...
OpenVZ Web Panel InstallationTable of contents:IntroductionInstallation of development versionRequirementsManual installation the buildInstallation from Git repositoryUninstallation1. IntroductionMost preferable way to install the panel is to use automatic installer.wget -O - https://raw.githubusercontent.com/sibprogrammer/owp/master/installer/ai.sh | shInstructions below should be used only if you can not use automatic installer due to some reason.2. Installation of development versionTo be able to test the newest features you can install latest development version.This build is not suitable for production and should be used only for testing purposes.wget -O - https://raw.githubusercontent.com/sibprogrammer/owp/master/installer/ai.sh | \
sh -s DOWNLOAD_URL=http://owp.softunity.com.ru/download/ovz-web-panel-latest.tgz3. RequirementsThe following software is required to be installed on server with panel:Ruby 1.8.7+ (1.9 is not supported)RubyGemsRuby SQLite3 supportThe following softwa...
OpenVZ VPS Creation Error – The ploop image can not be used on ext3 or ext4 When i create a VPS, i got error[root@server70 ~]# vzctl create 102 --ostemplate ubuntu-14.04-x86_64
Creating image: /vz/private/102.tmp/root.hdd/root.hdd size=2306867K
Creating delta /vz/private/102.tmp/root.hdd/root.hdd bs=2048 size=4614144 sectors v2
Storing /vz/private/102.tmp/root.hdd/DiskDescriptor.xml
Error in check_mount_restrictions (ploop.c:1536): The ploop image can not be used on ext3 or ext4 file system without extents
Failed to create image: Error in check_mount_restrictions (ploop.c:1536): The ploop image can not be used on ext3 or ext4 file system without extents [21]
Destroying container private area: /vz/private/102
Creation of container private area failed
[root@server70 ~]#
This is because OpenVZ recently started using ploop image for OpenVZ virtual machines. To fix this, edit /etc/vz/vz.confvi /etc/vz/vz.conf
Find#VE_LAYOUT=ploop
Replace WithVE_LAYOUT=simfs
Now you will b...
Quick installationJump to: navigation,searchThis document briefly describes the steps needed to install OpenVZ on your RHEL 6 (CentOS 6, Scientific Linux 6) machine.For Debian based systems, please see Installation on Debian.A commercial version of OpenVZ is available, which simplifies installation with a single disk as well as supports networked installation using PXE boot. To learn more about Parallels Cloud Server and request a free trial, please see http://www.parallels.com/products/pcs/Contents1 Requirements1.1 /vz file system1.2 yum pre-setup2 Kernel installation3 System configuration3.1 sysctl3.2 SELinux4 Tools installation5 Reboot into OpenVZ6 Download OS templates7 Next steps Requirements This guide assumes you are running RHEL (CentOS, Scientific Linux) 6 on your system. Currently, this is a recommended platform to run OpenVZ on. /vz file system It is recommended to use a separate partition for containers (by default /vz) and format it to ext4. yum pre-setup Download open...
最新评论