第一单元
#############虚拟机控制#############
###开启虚拟机###[kiosk@foundation13 ~]$ rht-vmctl start desktop
Starting desktop.
###显示虚拟机窗口###
[kiosk@foundation13 ~]$ rht-vmctl view desktop
###关闭虚拟机###
[kiosk@foundation13 ~]$ rht-vmctl poweroff desktop
Powering off desktop.
###重置虚拟机###
[kiosk@foundation13 ~]$ rht-vmctl reset desktop
Are you sure you want to reset desktop? (y/n) y
Resetting desktop.
Powering off desktop.rht.
Creating virtual machine disk overlay for rh124-desktop-vda
Creating virtual machine disk overlay for rh124-desktop-vdb
Starting desktop.
###报错:不能打开未开启的虚拟机###
[kiosk@foundation13 ~]$ rht-vmctl view desktop
Error: unable to view desktop - not currently running.
###报错:虚拟机不能出重复开启###
[kiosk@foundation13 ~]$ rht-vmctl start desktop
Error: desktop not started (is already running)
#####rht-vmctl的所有指令和参数#########
This utility manages the Red Hat Training supplied VMs on the local
hypervisor.
Usage: rht-vmctl [-q|--quiet] VMCMD VMNAME
rht-vmctl -h|--help
where VMCMD is one of:
reset - poweroff, return to saved or original state, start VMNAME
view - launches console viewer of VMNAME
start - obtain and start up VMNAME
stop - stop a running VMNAME
poweroff - if running, force stop VMNAME
save - stop, backup image, start VMNAME
restore - poweroff, restore image, start VMNAME
fullreset - poweroff, reobtain from server, start VMNAME (bad save/image)
get - if not here, obtain VMNAME from server
status - display libvirt status of VMNAME
#############进入系统#############
student 普通用户,密码:student
root 超级用户,密码:redhat
#############
###第一单元###
#############
#############1.行提示符#############
[kiosk@foundation Desktop]$
kiosk ###打开shell的用户
@ ###分隔符
foundation