大家帮我看看这是怎么回事,卡住不动了,虚拟机是vmware pro17 ,Linux 系统是centos7就是进不去
你清理清理电脑垃圾,多刷几次新,看看驱动显卡
不知道你这个问题是否已经解决, 如果还没有解决的话:
[root@aubin ~]# vgdisplay
— Volume group —
VG Namecentos
System ID
Format lvm2
Metadata Areas 2
Metadata Sequence No 4
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 2
Open LV 2
Max PV 0
Cur PV 2
Act PV 2
VG Size 23.99 GiB
PE Size 4.00 MiB
Total PE 6142
Alloc PE / Size 4863 / <19.00 GiB
Free PE / Size 1279 / <5.00 GiB
VG UUID jasglx-OPLA-G0g2-qpgP-wmS3-nISE-JylLNv
注意这个名字
[root@aubin ~]# mkfs.xfs -f /dev/sda3
meta-data=/dev/sda3 isize=512 agcount=4, agsize=1310720 blks
= sectsz=512 attr=2, projid32bit=1
= crc=1 finobt=0, sparse=0
data = bsize=4096 blocks=5242880, imaxpct=25
= sunit=0 swidth=0 blks
naming =version 2 bsize=4096 ascii-ci=0 ftype=1
log =internal log bsize=4096 blocks=2560, version=2
= sectsz=512 sunit=0 blks, lazy-count=1
realtime =none extsz=4096 blocks=0, rtextents=0
[root@aubin ~]# pvcreate -f /dev/sda3
WARNING: Device for PV dRKew5-i08K-vSGQ-okUo-Qx9M-DY2e-CBGUN6 not found or rejected by a filter.
Couldn’t find device with uuid dRKew5-i08K-vSGQ-okUo-Qx9M-DY2e-CBGUN6.
Wiping xfs signature on /dev/sda3.
Physical volume “/dev/sda3” successfully created.
[root@aubin ~]# vgextend centos /dev/sda3
WARNING: Device for PV dRKew5-i08K-vSGQ-okUo-Qx9M-DY2e-CBGUN6 not found or rejected by a filter.
Couldn’t find device with uuid dRKew5-i08K-vSGQ-okUo-Qx9M-DY2e-CBGUN6.
WARNING: Device for PV dRKew5-i08K-vSGQ-okUo-Qx9M-DY2e-CBGUN6 not found or rejected by a filter.
Volume group “centos” successfully extended
[root@aubin ~]# lvdisplay
WARNING: Device for PV dRKew5-i08K-vSGQ-okUo-Qx9M-DY2e-CBGUN6 not found or rejected by a filter.
Couldn’t find device with uuid dRKew5-i08K-vSGQ-okUo-Qx9M-DY2e-CBGUN6.
— Logical volume —LV Path /dev/centos/swap
LV Name swap
VG Name centos
LV UUID Xgfxxk-caKK-3PtU-m8Hp-1WVU-N5na-NjytY6
LV Write Access read/write
LV Creation host, time localhost.localdomain, 2019-03-28 02:19:24 +0800
LV Status available
#open 2
LV Size 2.00 GiB
Current LE 512
Segments 1
Allocation inherit
Read ahead sectors auto
-currently set to 8192
Block device 253:1— Logical volume —
LV Path /dev/centos/root
LV
Name root
VG Name centos
LV UUID P4AJcd-iOZf-sywl-Acrq-Ge7a-QrTx-3GYgkz
LV Write Access read/write
LV Creation host, time localhost.localdomain, 2019-03-2802:19:25 +0800
LV Status available # open
1 LV Size <17.00 GiB Current LE 4351
Segments 1
Allocation inherit
Read ahead sectors auto
-currently set to 8192
Block device 253:0
注意此处的路径(标红的)
[root@aubin ~]# lvextend /dev/centos/root /dev/sd3
WARNING: Device for PV dRKew5-i08K-vSGQ-okUo-Qx9M-DY2e-CBGUN6 not found or rejected by a filter.
Couldn’t find device with uuid dRKew5-i08K-vSGQ-okUo-Qx9M-DY2e-CBGUN6.
Cannot change VG centos while PVs are missing.
Consider vgreduce --removemissing.
Cannot process volume group centos
[root@aubin ~]# vgreduce --removemissing vgname
Volume group “vgname” not found
Cannot process volume group vgnam
[root@aubin ~]# vgreduce --removemissing centos
WARNING: Device for PV dRKew5-i08K-vSGQ-okUo-Qx9M-DY2e-CBGUN6 not found or rejected by a filter.
Couldn’t find device with uuid dRKew5-i08K-vSGQ-okUo-Qx9M-DY2e-CBGUN6.
Wrote out consistent volume group centos.
[root@aubin ~]# vgdisplay
— Volume group —
VG Name centos
System ID
Format lvm2
Metadata Areas 2
Metadata Sequence No 6
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 2
Open LV 2
Max PV 0
Cur PV 2
Act PV 2
VG Size 38.99 GiB
PE Size 4.00 MiB
Total PE 9982
Alloc PE / Size 4863 / <19.00 GiB
Free PE / Size 5119 / <20.00 GiB
VG UUID jasglx-OPLA-G0g2-qpgP-wmS3-nISE-JylLNv
[root@aubin ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/centos-root 17G 17G 553M 97% /
devtmpfs 894M 0 894M 0% /dev
tmpfs 910M 0 910M 0% /dev/shm
tmpfs 910M 11M 900M 2% /run
tmpfs 910M 0 910M 0% /sys/fs/cgroup
/dev/sda1 1014M 236M 779M 24% /boot
tmpfs 182M 4.0K 182M 1% /run/user/42
tmpfs 182M 20K 182M 1% /run/user/0
[root@aubin ~]# xfs_growfs /dev/centos/root
meta-data=/dev/mapper/centos-root isize=512 agcount=4,
agsize=1113856 blks
= sectsz=512 attr=2, projid32bit=1
= crc=1 finobt=0 spinodes=0 data = bsize=4096 blocks=4455424, imaxpct=25
= sunit=0 swidth=0 blks naming =version 2 bsize=4096 ascii-ci=0 ftype=1 log =internal bsize=4096 blocks=2560, version=2
= sectsz=512 sunit=0 blks, lazy-count=1 realtime =none extsz=4096 blocks=0,
rtextents=0
[root@aubin ~]# df -h
Filesystem Size Used Avail Use%
Mounted on /dev/mapper/centos-root 17G 17G 553M 97% / devtmpfs
894M 0 894M 0% /dev tmpfs 910M 0 910M
0% /dev/shm tmpfs 910M 11M 900M 2% /run tmpfs
910M 0 910M 0% /sys/fs/cgroup /dev/sda1 1014M
236M 779M 24% /boot tmpfs 182M 4.0K 182M 1%
/run/user/42 tmpfs 182M 20K 182M 1%
/run/user/0
[root@aubin ~]# lvextend /dev/centos/root /dev/sd3
Physical Volume
“/dev/sd3” not found in Volume Group “centos”.
[root@aubin ~]# lvextend /dev/centos/root /dev/sda3
Size of logical volume centos/root changed from <17.00 GiB (4351 extents) to 36.99 GiB (9470 extents). Logical volume centos/root successfully resized.
[root@aubin ~]# xfs_growfs /dev/centos/root
meta-data=/dev/mapper/centos-root isize=512 agcount=4,
agsize=1113856 blks
= sectsz=512 attr=2, projid32bit=1
= crc=1 finobt=0 spinodes=0 data = bsize=4096 blocks=4455424, imaxpct=25
= sunit=0 swidth=0 blks naming =version 2 bsize=4096 ascii-ci=0 ftype=1 log =internal bsize=4096 blocks=2560, version=2
= sectsz=512 sunit=0 blks, lazy-count=1 realtime =none extsz=4096 blocks=0,
rtextents=0 data blocks changed from 4455424 to 9697280
[root@aubin ~]# df -h
Filesystem Size Used Avail Use%
Mounted on /dev/mapper/centos-root 37G 17G 21G 45% / devtmpfs
894M 0 894M 0% /dev tmpfs 910M 0 910M
0% /dev/shm tmpfs 910M 11M 900M 2% /run tmpfs
910M 0 910M 0% /sys/fs/cgroup /dev/sda1 1014M
236M 779M 24% /boot tmpfs 182M 4.0K 182M 1%
/run/user/42 tmpfs 182M 20K 182M 1%
/run/user/0
根据提供的参考资料,虚拟机卡在某一步的问题可能是由于以下原因导致的:
网络配置问题:首先确认虚拟机的网络配置是否正确。请检查网络适配器设置是否正确连接到正确的虚拟网络中,并确认虚拟网络是否正常运行。
磁盘配置问题:检查虚拟机磁盘配置是否正确。请确保虚拟机的磁盘大小设置合适,并选择将虚拟磁盘存储为单个文件的选项。
镜像选择问题:确认安装时选择的镜像是否正确。在安装过程中,选择CentOS7 64位的版本进行安装。
分区设置问题:检查分区设置是否正确。确保分配足够的空间给/boot和/根分区,并正确设置swap分区。
硬盘添加问题:检查硬盘添加是否正确完成。确保新添加的硬盘在虚拟机设置中正确出现,并在Linux系统中进行了重启操作。
针对以上可能的问题,下面给出一些解决建议的步骤和命令:
第一步:检查网络配置
请确认虚拟机网络适配器的设置是否正确,并检查虚拟网络是否正常运行。 可以在虚拟机的设置中,找到网络适配器设置,确保选择正确的虚拟网络。
第二步:检查磁盘配置
确认虚拟机磁盘的配置是否正确。 可以在虚拟机的设置中,找到磁盘设置,确保磁盘大小设置合适,并选择将虚拟磁盘存储为单个文件。
第三步:检查镜像选择
请确认在安装过程中选择的镜像是否正确。 在安装虚拟机时,选择CentOS7 64位的版本进行安装。
第四步:检查分区设置
请确认分区设置是否正确。 可以使用以下命令查看分区情况:
fdisk -l
确认/boot和/根分区的设置是否正确,并确保分配了足够的空间给这两个分区。
第五步:检查硬盘添加
请确认新添加的硬盘是否正确添加到虚拟机中,并进行了系统重启。 可以使用以下命令查看硬盘情况:
fdisk -l
确认新添加的硬盘是否正确显示。
如果以上步骤都没有解决问题,还可以尝试以下方法:
更新VMware软件:确保您的VMware软件是最新版本,以避免可能存在的软件错误。
重新安装CentOS7:如果以上解决方案都不起作用,可以尝试重新安装CentOS7操作系统。在重新安装之前,建议删除现有的虚拟机,并确保清理掉与该虚拟机相关的文件和配置。
如果以上建议都没有解决问题,那么很遗憾,我无法提供更多帮助。