botang 发表于 2019-8-15 20:48:48

课程第17/18次

RH1241 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 (P442)
RH1341 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启动过程的区别:



顺便打开vncserver:
# vncpasswd
Password:
Verify:
Would you like to enter a view-only password (y/n)? n
A view-only password is not used
# cd /etc/
# cd sysconfig
# ls
anaconda         ip6tables-configntpdate      saslauthd
atd            iptables-config   qemu-ga      selinux
authconfig       irqbalance      radvd          smartmontools
cbq            kdump             raid-check   sshd
chronyd          kernel            rdisc          sysstat
console          ksm               readonly-rootsysstat.ioconf
cpupower         libvirtd          rhn            virtlockd
crond            man-db            rpcbind      virtlogd
ebtables-configmodules         rpc-rquotad    vncservers
fcoe             netconsole      rsyncd         wpa_supplicant
firewalld      network         rsyslog
grub             network-scripts   run-parts
init             nfs               samba
# vimvncservers
# vnc
vncconfigvncpasswdvncservervncviewer
# vncserver --help

usage: vncserver [:<number>] [-name <desktop-name>] [-depth <depth>]
               [-geometry <width>x<height>]
               [-pixelformat rgbNNN|bgrNNN]
               [-fp <font-path>]
               [-cc <visual>]
               [-fg]
               [-autokill]
               [-noxstartup]
               [-xstartup <file>]
               <Xvnc-options>...

       vncserver -kill <X-display>

       vncserver -list

# vncserver :2 -depth 24-geometry2560x1900

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

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

#
#
#
# firewall-cmd--permanent --add-port=5902
Error: INVALID_PORT: bad port (most likely missing protocol), correct syntax is portid[-portid]/protocol
# firewall-cmd--permanent --add-port=5902/tcp
success
# firewall-cmd--reload
success
# vncserver --help

usage: vncserver [:<number>] [-name <desktop-name>] [-depth <depth>]
               [-geometry <width>x<height>]
               [-pixelformat rgbNNN|bgrNNN]
               [-fp <font-path>]
               [-cc <visual>]
               [-fg]
               [-autokill]
               [-noxstartup]
               [-xstartup <file>]
               <Xvnc-options>...

       vncserver -kill <X-display>

       vncserver -list

# vncserver -kill :2
Killing Xvnc process ID 6733
# vncserver :2 -depth 24-geometry2560x1900

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

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

# vncpasswd
Password:
Verify:
Would you like to enter a view-only password (y/n)? n
A view-only password is not used
#
2019-08-18
完整备份虚拟机:
dd if=/dev/rhel/windowsof=/dev/rhel/windows_oribs=4Mbs的取值:
# vgdisplay /dev/rhel
--- Volume group ---
VG Name               rhel
System ID
Format                lvm2
Metadata Areas      3
Metadata Sequence No9
VG Access             read/write
VG Status             resizable
MAX LV                0
Cur LV                4
Open LV               1
Max PV                0
Cur PV                3
Act PV                3
VG Size               <117.94 GiB
PE Size               4.00 MiB
Total PE            30192
Alloc PE / Size       19754 / 77.16 GiB
FreePE / Size       10438 / 40.77 GiB
VG UUID               GHMwkk-kRUm-qtsh-LxAT-uGIS-ZOll-KJOELP


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

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





页: [1]
查看完整版本: 课程第17/18次