系统环境设置
> 开始阶段,首先,用vnc软件进行和服务器的连接
-
vnc软件提供桌面共享服务,是服务端! Server
用户用的是vncviewver,是客户端Client
属于C-S 模型 (即:客户端-服务端模型)
打开vnc:
Applications—–>internel——>vncviewer
输入服务器地址: 172.25.254.250:8
点击虚拟机:
root ——>not list——–>root 密码 ##以管理员进入
student ——–>student 密码 ##以student用户进入
打开命令行(Terminal:bash/shell):
1: Applications ——->Utilities ——–> Terminal ##进入到用户目录下
2 : 右键 ——-> Open in Terminal ##进入到用户桌面目录下
3 : 打开命令行后输入:
[kiosk@foundation77 Desktop]$ gnome-terminal
##再次打开命令行 进入到用户桌面目录下
gnome-session-quit --force // 退出虚拟机
exit //退出命令行
4)系统关机,重启
重启
reboot | init 6 |shutdown -r now
关机
poweroff | init 0 | shutdown -h now
tips:
Applications ———-> System Tools———>Settings——>Shortcuts
自己设置快捷键添加快捷方式
//可以添加的命令如:
gnome-session-quit --force //关闭虚拟机
gnome-terminal //打开命令行
gnome-control-center //打开控制中心
虚拟机控制
[kiosk@foundation9 ~]$ rht-vmctl view desktop ##显示desktop
Error: unable to view desktop - not currently running. ##报错,未运行虚拟机
[kiosk@foundation9 ~]$ rht-vmctl start desktop ##开启虚拟机
Starting desktop.
[kiosk@foundation9 ~]$ rht-vmctl view desktop
[kiosk@foundation9 ~]$ rht-vmctl status desktop ##查看虚拟机状态
desktop RUNNING
[kiosk@foundation9 ~]$ rht-vmctl poweroff desktop ##关闭虚拟机
Powering off desktop..
[kiosk@foundation9 ~]$ rht-vmctl reset desktop ##重置desktop虚拟机
Are you sure you want to reset desktop? (y/n) y ##询问是否重置y表示yes
Resetting desktop. ##正在重置
Powering off desktop.
Creating virtual machine disk overlay for rh124-desktop-vda
Creating virtual machine disk overlay for rh124-desktop-vdb
Starting desktop.
报错解释
[kiosk@foundation9 ~]$ rth-vmctl view desktop
bash: rth-vmctl: command not found... ##命令出错,未找到
[kiosk@foundation9 ~]$ rht-vmctl strt desktop
Error: bad option, strt ##选项出错
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
[kiosk@foundation9 ~]$ rht-vmctl start 17-07
Error: unrecognized VMNAME specified, 17-07. ##名称出错,没有这个名称的虚拟机
linux中的快捷键 :
*
一个非常重要的键——tab键:
在系统中table键可以自动补齐存在的命令,文件名称和某些命令的参数
a+TAB x2 显示系统中所有a开有的命令
**所以它合理的使用可以大幅度的提高工作效率!!!
部分帮助获取网址:
www.redhat.com/docs