1.虚拟机的控制
[kiosk@foundation0 Desktop]$ rht-vmctl view desktop #显示虚拟机
[kiosk@foundation0 Desktop]$ rht-vmctl start desktop #打开虚拟机
[kiosk@foundation0 Desktop]$ rht-vmctl poweroff desktop #关闭虚拟机
[kiosk@foundation0 Desktop]$ rht-vmctl reset desktop #重置虚拟机
注:
kiosk //表示shell的运行人是谁
@foundation0 //shell开启主机的主机名称
Desktop //你当前所在文件夹的名字
2. 虚拟机的报错情况以及改正
[kiosk@foundation0 Desktop]$ rht-vmctl start desktop
Error: desktop not started (is already running) //虚拟机正在运行
Correction:停止‘rht-vmctl start desktop’操作,直接执行当前准备执行的命令
[kiosk@foundation0 Desktop]$ rht-vmctl view desktop
Error: unable to view desktop - not currently running. //虚拟机没有运行
Correction:先执行命令‘rht-vmctl start desktop’,再执行下一步操作
[kiosk@foundation0 Desktop]$ rht-vmct1 start desktop
bash: rht-vmct1: command not found… //命令输入错误
Correction:检查输入的命令‘rht-vmctl’是否正确,注意区分‘数字1’和‘字母l’
[kiosk@foundation0 Desktop]$ rht-vmctl stat desktop
Error: bad option, stat //参数写入错误
Correction:检查输入的参数‘start/view/poweroff/reset’是否正确,注意区分大小写
[kiosk@foundation0 Desktop]$ rht-vmctl start deskop
Error: unrecognized VMNAME specified, deskop. #虚拟机名称错误
Correction:检查输入的名称‘desktop’是否正确,注意区分大小写
linux虚拟机的基本操作
最新推荐文章于 2024-06-12 15:32:20 发布