Bo's Oracle Station

查看: 1772|回复: 0

课程第17/18次

[复制链接]

1005

主题

1469

帖子

1万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
12012
发表于 2019-8-15 20:48:48 | 显示全部楼层 |阅读模式
RH124  1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 (P442)
RH134  1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 (P342)
RH254 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15  (P435)

RHEL6和RHEL7启动过程的区别:
QQ图片20190815212426.png


顺便打开vncserver:
  1. [root@station157 ~]# vncpasswd
  2. Password:
  3. Verify:
  4. Would you like to enter a view-only password (y/n)? n
  5. A view-only password is not used
  6. [root@station157 ~]# cd /etc/
  7. [root@station157 etc]# cd sysconfig
  8. [root@station157 sysconfig]# ls
  9. anaconda         ip6tables-config  ntpdate        saslauthd
  10. atd              iptables-config   qemu-ga        selinux
  11. authconfig       irqbalance        radvd          smartmontools
  12. cbq              kdump             raid-check     sshd
  13. chronyd          kernel            rdisc          sysstat
  14. console          ksm               readonly-root  sysstat.ioconf
  15. cpupower         libvirtd          rhn            virtlockd
  16. crond            man-db            rpcbind        virtlogd
  17. ebtables-config  modules           rpc-rquotad    vncservers
  18. fcoe             netconsole        rsyncd         wpa_supplicant
  19. firewalld        network           rsyslog
  20. grub             network-scripts   run-parts
  21. init             nfs               samba
  22. [root@station157 sysconfig]# vim  vncservers
  23. [root@station157 sysconfig]# vnc
  24. vncconfig  vncpasswd  vncserver  vncviewer
  25. [root@station157 sysconfig]# vncserver --help

  26. usage: vncserver [:<number>] [-name <desktop-name>] [-depth <depth>]
  27.                  [-geometry <width>x<height>]
  28.                  [-pixelformat rgbNNN|bgrNNN]
  29.                  [-fp <font-path>]
  30.                  [-cc <visual>]
  31.                  [-fg]
  32.                  [-autokill]
  33.                  [-noxstartup]
  34.                  [-xstartup <file>]
  35.                  <Xvnc-options>...

  36.        vncserver -kill <X-display>

  37.        vncserver -list

  38. [root@station157 sysconfig]# vncserver :2 -depth 24  -geometry  2560x1900

  39. New 'station157.example.com:2 (root)' desktop is station157.example.com:2

  40. Starting applications specified in /root/.vnc/xstartup
  41. Log file is /root/.vnc/station157.example.com:2.log

  42. [root@station157 sysconfig]#
  43. [root@station157 sysconfig]#
  44. [root@station157 sysconfig]#
  45. [root@station157 sysconfig]# firewall-cmd  --permanent --add-port=5902
  46. Error: INVALID_PORT: bad port (most likely missing protocol), correct syntax is portid[-portid]/protocol
  47. [root@station157 sysconfig]# firewall-cmd  --permanent --add-port=5902/tcp
  48. success
  49. [root@station157 sysconfig]# firewall-cmd  --reload
  50. success
  51. [root@station157 sysconfig]# vncserver --help

  52. usage: vncserver [:<number>] [-name <desktop-name>] [-depth <depth>]
  53.                  [-geometry <width>x<height>]
  54.                  [-pixelformat rgbNNN|bgrNNN]
  55.                  [-fp <font-path>]
  56.                  [-cc <visual>]
  57.                  [-fg]
  58.                  [-autokill]
  59.                  [-noxstartup]
  60.                  [-xstartup <file>]
  61.                  <Xvnc-options>...

  62.        vncserver -kill <X-display>

  63.        vncserver -list

  64. [root@station157 sysconfig]# vncserver -kill :2
  65. Killing Xvnc process ID 6733
  66. [root@station157 sysconfig]# vncserver :2 -depth 24  -geometry  2560x1900

  67. New 'station157.example.com:2 (root)' desktop is station157.example.com:2

  68. Starting applications specified in /root/.vnc/xstartup
  69. Log file is /root/.vnc/station157.example.com:2.log

  70. [root@station157 sysconfig]# vncpasswd
  71. Password:
  72. Verify:
  73. Would you like to enter a view-only password (y/n)? n
  74. A view-only password is not used
  75. [root@station157 sysconfig]#
复制代码
2019-08-18
完整备份虚拟机:
  1. dd if=/dev/rhel/windows  of=/dev/rhel/windows_ori  bs=4M
复制代码
bs的取值:
  1. [root@station157 ~]# vgdisplay /dev/rhel
  2.   --- Volume group ---
  3.   VG Name               rhel
  4.   System ID
  5.   Format                lvm2
  6.   Metadata Areas        3
  7.   Metadata Sequence No  9
  8.   VG Access             read/write
  9.   VG Status             resizable
  10.   MAX LV                0
  11.   Cur LV                4
  12.   Open LV               1
  13.   Max PV                0
  14.   Cur PV                3
  15.   Act PV                3
  16.   VG Size               <117.94 GiB
  17.   PE Size               4.00 MiB
  18.   Total PE              30192
  19.   Alloc PE / Size       19754 / 77.16 GiB
  20.   Free  PE / Size       10438 / 40.77 GiB
  21.   VG UUID               GHMwkk-kRUm-qtsh-LxAT-uGIS-ZOll-KJOELP
复制代码
QQ图片20190818202815.png

上图中红色的箭头天生VirtIO, 绿色的箭头应该设成VirtIO(Linux的虚拟机默认被设置成VirtIO而Windows的没有)

https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/archive-virtio/virtio-win-0.1.171-1/





回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|手机版|Bo's Oracle Station   

GMT+8, 2024-5-10 03:57 , Processed in 0.137039 second(s), 27 queries .

快速回复 返回顶部 返回列表