|
1.继续做RHEL7的KERBEROS-NFS的考题
wget完了之后,可以看一下:
- [root@server3 ~]# ktutil
- ktutil: read_kt /etc/krb5.keytab
- ktutil: l
- slot KVNO Principal
- ---- ---- ---------------------------------------------------------------------
- 1 2 host/desktop3.example.com@EXAMPLE.COM
- 2 2 host/desktop3.example.com@EXAMPLE.COM
- 3 2 host/desktop3.example.com@EXAMPLE.COM
- 4 2 host/desktop3.example.com@EXAMPLE.COM
- 5 2 host/desktop3.example.com@EXAMPLE.COM
- 6 2 host/desktop3.example.com@EXAMPLE.COM
- 7 2 host/server3.example.com@EXAMPLE.COM
- 8 2 host/server3.example.com@EXAMPLE.COM
- 9 2 host/server3.example.com@EXAMPLE.COM
- 10 2 host/server3.example.com@EXAMPLE.COM
- 11 2 host/server3.example.com@EXAMPLE.COM
- 12 2 host/server3.example.com@EXAMPLE.COM
- 13 2 nfs/server3.example.com@EXAMPLE.COM
- 14 2 nfs/server3.example.com@EXAMPLE.COM
- 15 2 nfs/server3.example.com@EXAMPLE.COM
- 16 2 nfs/server3.example.com@EXAMPLE.COM
- 17 2 nfs/server3.example.com@EXAMPLE.COM
- 18 2 nfs/server3.example.com@EXAMPLE.COM
- ktutil:
复制代码- [root@desktop3 ~]# ktutil
- ktutil: read_kt /etc/krb5.keytab
- ktutil: l
- slot KVNO Principal
- ---- ---- ---------------------------------------------------------------------
- 1 2 host/desktop3.example.com@EXAMPLE.COM
- 2 2 host/desktop3.example.com@EXAMPLE.COM
- 3 2 host/desktop3.example.com@EXAMPLE.COM
- 4 2 host/desktop3.example.com@EXAMPLE.COM
- 5 2 host/desktop3.example.com@EXAMPLE.COM
- 6 2 host/desktop3.example.com@EXAMPLE.COM
复制代码- [root@desktop3 ~]# showmount -e server3.example.com
- Export list for server3.example.com:
- /rhosts 192.168.0.0/24
- [root@desktop3 ~]# mount server3.example.com:/rhosts /mnt
- [root@desktop3 ~]# mount
- sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime,seclabel)
- proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
- devtmpfs on /dev type devtmpfs (rw,nosuid,seclabel,size=914504k,nr_inodes=228626,mode=755)
- securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
- tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev,seclabel)
- devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,seclabel,gid=5,mode=620,ptmxmode=000)
- tmpfs on /run type tmpfs (rw,nosuid,nodev,seclabel,mode=755)
- tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,seclabel,mode=755)
- cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,seclabel,xattr,release_agent=/usr/lib/systemd/systemd-cgroups-agent,name=systemd)
- pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)
- cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,seclabel,freezer)
- cgroup on /sys/fs/cgroup/hugetlb type cgroup (rw,nosuid,nodev,noexec,relatime,seclabel,hugetlb)
- cgroup on /sys/fs/cgroup/net_cls,net_prio type cgroup (rw,nosuid,nodev,noexec,relatime,seclabel,net_prio,net_cls)
- cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,seclabel,cpuacct,cpu)
- cgroup on /sys/fs/cgroup/perf_event type cgroup (rw,nosuid,nodev,noexec,relatime,seclabel,perf_event)
- cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,seclabel,blkio)
- cgroup on /sys/fs/cgroup/pids type cgroup (rw,nosuid,nodev,noexec,relatime,seclabel,pids)
- cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,seclabel,memory)
- cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,seclabel,cpuset)
- cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,seclabel,devices)
- configfs on /sys/kernel/config type configfs (rw,relatime)
- /dev/mapper/rhel-root on / type xfs (rw,relatime,seclabel,attr2,inode64,noquota)
- selinuxfs on /sys/fs/selinux type selinuxfs (rw,relatime)
- mqueue on /dev/mqueue type mqueue (rw,relatime,seclabel)
- debugfs on /sys/kernel/debug type debugfs (rw,relatime)
- hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime,seclabel)
- systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=34,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=23254)
- /dev/sda1 on /boot type xfs (rw,relatime,seclabel,attr2,inode64,noquota)
- sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw,relatime)
- tmpfs on /run/user/42 type tmpfs (rw,nosuid,nodev,relatime,seclabel,size=186328k,mode=700,uid=42,gid=42)
- tmpfs on /run/user/0 type tmpfs (rw,nosuid,nodev,relatime,seclabel,size=186328k,mode=700)
- gvfsd-fuse on /run/user/0/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,relatime,user_id=0,group_id=0)
- fusectl on /sys/fs/fuse/connections type fusectl (rw,relatime)
- server3.example.com:/rhosts on /mnt type nfs4 (rw,relatime,vers=4.1,rsize=262144,wsize=262144,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=krb5p,clientaddr=192.168.0.3,local_lock=none,addr=192.168.0.103)
- [root@desktop3 ~]#
复制代码
2. 虚拟化,配网桥- [root@server4 ~]# nmcli con show
- NAME UUID TYPE DEVICE
- System ens33 c96bc909-188e-ec64-3a96-6a90982b08ad ethernet ens33
- virbr0 07095ac4-3a41-4e9b-b9a9-ffcc5ddb9765 bridge virbr0
- [root@server4 ~]# nmcli con add con-name br0 type bridge ifname br0
- Connection 'br0' (2d30c372-c4d1-4686-acd1-b54138e59581) successfully added.
- [root@server4 ~]# nmcli con mod br0 ipv4.addresses 192.168.0.104/24 ipv4.gateway 192.168.0.1 ipv4.dns 192.168.0.254 ipv4.method manual connection.autoconnect on
- [root@server4 ~]#
- [root@server4 ~]#
- [root@server4 ~]# nmcli con add con-name br0-port0 type bridge-slave ifname ens33 master br0
- Connection 'br0-port0' (95891e2b-7747-44c1-a090-99313ca859df) successfully added.
- [root@server4 ~]# nmcli con show
- NAME UUID TYPE DEVICE
- System ens33 c96bc909-188e-ec64-3a96-6a90982b08ad ethernet ens33
- virbr0 07095ac4-3a41-4e9b-b9a9-ffcc5ddb9765 bridge virbr0
- br0 2d30c372-c4d1-4686-acd1-b54138e59581 bridge br0
- br0-port0 95891e2b-7747-44c1-a090-99313ca859df ethernet --
- [root@server4 ~]# nmcli con down "System ens33"
- Connection 'System ens33' successfully deactivated (D-Bus active path: /org/freedesktop/NetworkManager/ActiveConnection/1)
- [root@server4 ~]# nmcli con del "System ens33"
- Connection 'System ens33' (c96bc909-188e-ec64-3a96-6a90982b08ad) successfully deleted.
- [root@server4 ~]# nmcli con up br0-port0
- Connection successfully activated (D-Bus active path: /org/freedesktop/NetworkManager/ActiveConnection/6)
- [root@server4 ~]# nmcli con up br0
- Connection successfully activated (master waiting for slaves) (D-Bus active path: /org/freedesktop/NetworkManager/ActiveConnection/7)
- [root@server4 ~]#
复制代码
3. 创建WIN10虚拟机
可选的:
- [root@server4 ~]# top
- top - 21:39:04 up 35 min, 2 users, load average: 0.90, 0.65, 0.70
- Tasks: 371 total, 3 running, 368 sleeping, 0 stopped, 0 zombie
- %Cpu(s): 15.4 us, 16.9 sy, 0.0 ni, 64.9 id, 0.0 wa, 2.3 hi, 0.5 si, 0.0 st
- MiB Mem : 12030.6 total, 4997.9 free, 2195.4 used, 4837.3 buff/cache
- MiB Swap: 1024.0 total, 1024.0 free, 0.0 used. 9516.7 avail Mem
- PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
- 11945 qemu 20 0 5266012 599116 23248 S 148.8 4.9 0:52.26 qemu-kvm
- 7995 root 20 0 178156 30336 8776 S 5.0 0.2 0:50.22 sssd_kcm
- 7982 root 20 0 422672 14868 12744 S 2.0 0.1 0:07.54 goa-iden+
- 11534 root 20 0 1678904 159364 47780 R 1.3 1.3 0:36.68 virt-man+
- 12008 root 20 0 64128 4728 3864 R 1.3 0.0 0:00.27 top
- 10 root 20 0 0 0 0 R 0.7 0.0 0:14.68 rcu_sched
- 930 root 20 0 226452 12028 10532 S 0.7 0.1 0:09.27 vmtoolsd
- 7768 root 20 0 3574800 171112 92144 S 0.7 1.4 1:41.75 gnome-sh+
- 22 root rt 0 0 0 0 S 0.3 0.0 0:00.38 migratio+
- 2188 gdm 20 0 457056 12900 9272 S 0.3 0.1 0:00.89 gsd-smar+
- 8049 root 20 0 809348 51924 41112 S 0.3 0.4 0:02.01 gsd-color
- 8881 root 20 0 159412 5264 4028 S 0.3 0.0 0:00.75 sshd
- 8940 root 20 0 1826088 63172 32056 S 0.3 0.5 0:06.96 libvirtd
- 11501 root 20 0 0 0 0 I 0.3 0.0 0:00.04 kworker/+
- 1 root 20 0 179644 14420 9088 S 0.0 0.1 0:12.80 systemd
- 2 root 20 0 0 0 0 S 0.0 0.0 0:00.13 kthreadd
- 3 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 rcu_gp
- [root@server4 ~]# renice -n -20 11945
复制代码- [root@server4 ~]# ionice -c best-effort -n 0 -p 11945
复制代码
4.
4
|
|