1.通过控制面板中的“Windows功能”添加失败 ![img](https://public-1251015552.cos.ap-guangzhou.myqcloud.com/Uploads/image/2023-07-27/114744d4862c1.jpeg) 2.使用离线安装包进行安装.NET Framework 3.5 下载“Win10离线安装netfx35.zip”压缩包并解压 解压后双击“离线安装.exe” ![img](https://public-1251015552.cos.ap-guangzhou.myqcloud.com/Uploads/image/2023-07-27/11474871d2f09.jpeg) 点击“更多信息”选择“仍要运行” ![img](https://public-1251015552.cos.ap-guangzhou.myqcloud.com/Uploads/image/2023-07-27/114751ba52a69.jpeg) ![img](https://public-1251015552.cos.ap-guangzhou.myqcloud.com/Uploads/image/2023-07-27/11475452f5dbb.jpeg) 运行软件后点击“开始安装”,等待自动化安装即可 ![img](https://public-1251015552.cos.ap-guangzhou.myqcloud.com/Uploads/image/2023-07-27/1147583fa59c0.jpeg) 3.安装完毕 ![img](https://public-1251015552.cos.ap-guangzhou.myqcloud.com/Uploads/image/2023-07-27/1147345e78649.jpeg)
1.查看当前硬盘大小:`lsblk -l /dev/sda` ![img](https://public-1251015552.cos.ap-guangzhou.myqcloud.com/Uploads/image/2023-08-22/150120a4c2ee3.jpeg) 查看硬盘 sda 总大小为40G,cloud--vg-root类型为lvm,大小为18.8G 2.操作cloud--vg-root进行lvm扩容 parted -s -a opt /dev/sda 'resizepart 2 100%' parted -s -a opt /dev/sda 'resizepart 5 100%' pvresize -vd /dev/sda5 lvextend -l +100%FREE /dev/mapper/cloud--vg-root resize2fs /dev/mapper/cloud--vg-root ![img](https://public-1251015552.cos.ap-guangzhou.myqcloud.com/Uploads/image/2023-08-22/15012208d0b29.jpeg) 3.查看是否扩容成功:`lsblk -l /dev/sda` ![img](https://public-1251015552.cos.ap-guangzhou.myqcloud.com/Uploads/image/2023-08-22/150127b15d495.jpeg)
1.先关闭机器,再重新启动机器,并在出现Windows系统Logo的时候强制关机 ![img](https://public-1251015552.cos.ap-guangzhou.myqcloud.com/Uploads/image/2023-08-22/150417685ec8b.jpeg) 2.再次开机,直到出现以下提示 ![img](https://public-1251015552.cos.ap-guangzhou.myqcloud.com/Uploads/image/2023-08-22/150420db2b703.jpeg) 4.出现以下画面,选择“高级选项” ![img](https://public-1251015552.cos.ap-guangzhou.myqcloud.com/Uploads/image/2023-08-22/1504243da8a7b.jpeg) 5.选择“疑难解惑”-“高级选项” ![img](https://public-1251015552.cos.ap-guangzhou.myqcloud.com/Uploads/image/2023-08-22/150427c1f94c1.jpeg) ![img](https://public-1251015552.cos.ap-guangzhou.myqcloud.com/Uploads/image/2023-08-22/150431239b127.jpeg) 6.选择“启动设置”,并选择“重启” ![img](https://public-1251015552.cos.ap-guangzhou.myqcloud.com/Uploads/image/2023-08-22/1504339f3a6f1.jpeg) ![img](https://public-1251015552.cos.ap-guangzhou.myqcloud.com/Uploads/image/2023-08-22/15043640c1849.jpeg) 7.重启后根据选项选择对应的启动项即可,如:安全模式,按下4 ![img](https://public-1251015552.cos.ap-guangzhou.myqcloud.com/Uploads/image/2023-08-22/150439370c18f.jpeg)
1.安装parted apt install parted -y 2.查看当前硬盘大小 parted命令查看空闲硬盘空间 parted /dev/sda print free ![img](https://public-1251015552.cos.ap-guangzhou.myqcloud.com/Uploads/image/2023-08-22/15081378f28d3.jpeg) 查看已分配的/dev/sda1大小 df -hT / ![img](https://public-1251015552.cos.ap-guangzhou.myqcloud.com/Uploads/image/2023-08-22/150815409b38a.jpeg) 3.扩容操作 parted /dev/sda resizepart 1 Warning: Partition /dev/sda1 is being used. Are you sure you want to continue? Yes/No? y End? [21.5GB]? 100% Information: You may need to update /etc/fstab. ![img](https://public-1251015552.cos.ap-guangzhou.myqcloud.com/Uploads/image/2023-08-22/150818f705848.jpeg) 4.更新FileSystem大小,并查看是否扩容成功 resize2fs /dev/sda1 ; df -hT / ![img](https://public-1251015552.cos.ap-guangzhou.myqcloud.com/Uploads/image/2023-08-22/150821b36856b.jpeg)
1.打开“管理工具”找到“性能监视器”,然后双击打开。 ![img](https://public-1251015552.cos.ap-guangzhou.myqcloud.com/Uploads/image/2023-08-22/152053b928a24.jpeg) 2.先点击“监视工具”然后点击“性能监视器”,再点击右边的“添加符号”。 ![img](https://public-1251015552.cos.ap-guangzhou.myqcloud.com/Uploads/image/2023-08-22/152055885502b.jpeg) 3.先找到“Hyper-V Virtual Network Adapter”然后选择“Bytes Received/sec”跟“Bytes Sent/sec”,然后在“选择对象的实例”里面找到需要查看的机器,选择网卡是“Bridge”的那个,然后点击“添加”在点击“确实”即可。 ![img](https://public-1251015552.cos.ap-guangzhou.myqcloud.com/Uploads/image/2023-08-22/152058adf54ba.jpeg) ![img](https://public-1251015552.cos.ap-guangzhou.myqcloud.com/Uploads/image/2023-08-22/15210040c0ab1.jpeg)