用脚本安装虚拟机,并管理虚拟机的简单运行开启等操作安装虚拟机#!bin/bash###定义文件为bin目录下运行的bashvir-install\###开始安装虚拟机--name$1\###命名虚拟机--ram1024\###设定内存大小--file/var/lib/libvirt/p_w_picpaths/$1.img\###设定硬盘文件--file-size8\##硬盘..
分类:
其他好文 时间:
2016-10-20 00:54:06
阅读次数:
122
#######虚拟机快照#####qemu-imgcreate-fqcwo2-bvm2.qcwo2node1.qcow2@@此处注意"\"后不能有任何符号1#!/bin/bash2echopoweroff$1...3virshdestroy$1&>/dev/null4echodel$1.xml...5virshundefine$1&>/dev/null6echocreatedisk...7qemu-imgcreate-fqcow2-b/var/li..
分类:
其他好文 时间:
2016-10-19 14:25:05
阅读次数:
213
#!/bin/bashcase"$1"instart)virshstart$2echostarting$2;;view)virt-viewer$2echoviewing$2;;shutdown)virshshutdown$2echobeingshutdown$2;;destroy)virshdestroy$2echobeingdestroy$2;;restart)echopoweroff$2...virshdestroy$2&>/dev/nullechodel$1.xml...virshunde..
分类:
其他好文 时间:
2016-10-19 14:23:54
阅读次数:
194
#!/bin/bashcase"$1"instart)virshstarthello/开启虚拟机holle;;poweroff)virshdestroyhello/关闭虚拟机holle;;reboot)virshdestroyhello/关闭虚拟机virshstarthello/开启虚拟机virt-viewerhello/显示虚拟机;;teset)echopoweroffhellovirshdestroyhello&>/dev/null/关闭..
分类:
系统相关 时间:
2016-10-18 23:18:33
阅读次数:
176
如何安装vmware tools,按照步骤操作
步骤1.选择安装vmware tools,因本人已经安装过一次,所以显示重新安装
选择后,虚拟机挂载一个命名为vmware tools的文件夹的虚拟设备
步骤2. 命令行执行cp /media/root/VMware\ Tools/VMwareTools-9.9.2-2496486.tar.gz .
将压缩包,copy到当...
分类:
系统相关 时间:
2015-05-12 18:58:43
阅读次数:
238