"云存储实验手册:webvirtmgr安装指南"
需积分: 9 73 浏览量
更新于2024-03-22
收藏 1.63MB PDF 举报
本实验是云存储实验手册中的第12个实验,要求学生掌握webvirtmgr的安装方法,熟悉安装过程中可能出现的问题及解决办法,并加深对libvirt安装方法的理解。
在实验开始前,需要通过VMware虚拟化出一台机器,其配置为主机名为webvirtmgr,内存为4G,硬盘为30G,CPU需要开启Intel VT-x/EPT或AMD-V虚拟化,IP地址为192.168.154.130,网络模式为NAT。安装系统时选择最小化安装,完成后需修改虚拟机的IP地址,并使用SecureCRT终端连接工具连接至虚拟机开始安装。
实验步骤如下:
1. 关闭防火墙和SELinux,设置主机名为webvirtmgr,配置系统YUM源为阿里云yum源。
```
[root@localhost ~] # systemctl stop firewalld
[root@localhost ~] # systemctl disable firewalld
[root@localhost ~] # setenforce 0
[root@localhost ~] # sed -i 's/enforcing/disabled/g' /etc/selinux/config
[root@localhost ~] # hostnamectl set-hostname webvirtmgr
[root@localhost ~] # wget -O /etc/yum.repos.d/CentOS-aliyun.repo http://mirrors.aliyun.com/repo/Centos-7.repo
[root@localhost ~] # yum makecache
```
2. 安装必要的软件包,包括epel-release、python3、git、libvirt和一些开发工具。
```
[root@webvirtmgr ~] # yum install epel-release -y
[root@webvirtmgr ~] # yum install python3 git libvirt -y
[root@webvirtmgr ~] # yum groupinstall "Development Tools" -y
```
3. 设置libvirt服务开机自启并启动。
```
[root@webvirtmgr ~] # systemctl enable libvirtd
[root@webvirtmgr ~] # systemctl start libvirtd
```
4. 下载webvirtmgr源码并安装。
```
[root@webvirtmgr ~] # git clone https://github.com/retspen/webvirtmgr.git
[root@webvirtmgr ~] # cd webvirtmgr
[root@webvirtmgr ~] # pip3 install -r requirements.txt
[root@webvirtmgr ~] # python3 manage.py migrate
[root@webvirtmgr ~] # python3 manage.py collectstatic
[root@webvirtmgr ~] # python3 manage.py runserver 0.0.0.0:8000
```
5. 配置防火墙规则允许8000端口的访问。
```
[root@webvirtmgr ~] # firewall-cmd --zone=public --add-port=8000/tcp --permanent
[root@webvirtmgr ~] # firewall-cmd --reload
```
6. 在浏览器中输入http://192.168.154.130:8000访问webvirtmgr的管理页面,并使用默认的用户名admin和密码admin登录。从页面中可管理虚拟机、镜像、存储等。
通过以上实验,学生将掌握webvirtmgr的安装方法,熟悉安装过程中可能出现的问题及解决办法,并加深对libvirt安装方法的理解。这将为学生今后在云存储领域的研究与实践提供重要的基础。
2011-05-19 上传
182 浏览量
163 浏览量
238 浏览量
147 浏览量

wusam
- 粉丝: 528
最新资源
- ARM7TDMI-S指令集详解:入门与汇编指南
- ARM微处理器详解:基于S3C4510B的应用系统设计
- GCC中文手册:C与C++编译器全面指南
- Linux网络基础:TCP/IP、OSI模型与配置详解
- Linux管理员手册:操作系统核心与程序详解
- GCC中文手册:GNU C和C++编译器指南
- Sun培训服务:Java E.2版中文教程,深度解析与考试准备
- ASP.NET编程:三十三个实用代码示例
- 深入探索JavaScript高级教程:从基础到实战应用
- µC/FS文件系统软件手册 Ver1.26
- 优盘文件系统FORC详解
- JAVA语言入门教程:从零开始学习
- Effective STL:深入理解并高效使用STL
- CCNA备考必备:中英文对照笔记
- Windows环境下直接读写硬盘扇区技术解析
- PowerDesigner数据库建模实用指南