2017-03-11

XenServer 7.x 常用命令

修改SSH

vi /etc/ssh/sshd_config
systemctl restart sshd.service

编辑防火墙

vi /etc/sysconfig/iptables
systemctl restart iptables.service

创建系统镜像ISO到服务器

mkdir /local_iso
xe sr-create name-label=local_iso type=iso device-config:location=/local_iso device-config:legacy_mode=true content-type=iso
cd /local_iso
##下载系统镜像
wget http://archive.kernel.org/centos-vault/6.5/isos/x86_64/CentOS-6.5-x86_64-minimal.iso
wget http://archive.kernel.org/centos-vault/6.7/isos/x86_64/CentOS-6.7-x86_64-minimal.iso
wget http://archive.kernel.org/centos-vault/7.2.1511/isos/x86_64/CentOS-7-x86_64-Minimal-1511.iso
wget http://98.126.36.2:802/iso/cn_windows_server_2008_r2_standard_enterprise_datacenter_and_web_with_sp1_x64_dvd_617598.iso
##如果没有实时显示使用下面命令更新
xe-mount-iso-sr /local_iso
xe-toolstack-restart

添加新硬盘

ls -l /dev/disk/by-id/
xe sr-create type=lvm content-type=user device-config:device=/dev/disk/by-id/ata-TOSHIBA_MK1002TSKB_42N2K7THF name-label="Disk 2"

发表评论(目前尚无评论)

X 请 登录 后发表评论