[리눅스] CPU 정보를 알 수 있는 명령어 LSCPU



CPU 종류는 뭔지 그리고 코어랑 스레드 갯수, 가상화는 지원하는지 등을 알아보려면 lscpu 명령어를 실행해보세요~


# lscpu

Architecture:          x86_64

CPU op-mode(s):        32-bit, 64-bit

Byte Order:            Little Endian

CPU(s):                8

On-line CPU(s) list:   0-7

Thread(s) per core:    2

Core(s) per socket:    4

Socket(s):             1

NUMA node(s):          1

Vendor ID:             GenuineIntel

CPU family:            6

Model:                 158

Model name:            Intel(R) Core(TM) i7-7700 CPU @ 3.60GHz

Stepping:              9

CPU MHz:               900.000

CPU max MHz:           3800.0000

CPU min MHz:           800.0000

BogoMIPS:              7200.00

Virtualization:        VT-x

L1d cache:             32K

L1i cache:             32K

L2 cache:              256K

L3 cache:              8192K

NUMA node0 CPU(s):     0-7

Flags:                 fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch intel_pt ssbd ibrs ibpb stibp tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm mpx rdseed adx smap clflushopt xsaveopt xsavec xgetbv1 dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp spec_ctrl intel_stibp flush_l1d


그냥 단순히 cpu 종류만 확인하려면 cat /proc/cpuinfo | grep name 하면 됩니다.


블로그 이미지

영은파더♥

가상서버호스팅 VPS 리눅스 서버관리 윈도우 IT

,

[CentOS] 7.x KVM virt-install CentOS



리눅스 서버에 가상화 VPS 를 설치하는 방법입니다~


그런데 시간이 너무 오래 걸리는 듯 하네요~



예제1)


virt-install \

--name CentOS7 \

--vcpus 2 \

--memory 4096 \

--hvm \

--os-type linux \

--os-variant rhel7 \

--disk path=/var/lib/libvirt/boot/CentOS-7-x86_64-Minimal-1810.iso,device=cdrom,bus=ide \

--disk path=/var/lib/libvirt/images/CentOS7.qcow2,format=qcow2,size=10,bus=virtio \

--graphics vnc,port=5900,password=vnc1234,listen=0.0.0.0 \

--sound default





예제2)


virt-install \

--name CentOS7 \

--vcpus sockets=1,cores=2,threads=2 \

--memory 2048 \

--os-type linux \

--os-variant rhel7 \

--disk path=/var/lib/libvirt/boot/CentOS-7-x86_64-Minimal-1810.iso,device=cdrom,bus=ide \

--disk path=/var/lib/libvirt/images/CentOS7.img,size=10 \

--graphics vnc,listen=0.0.0.0,port=5901,password=vnc1234


사전에 미리 yum install qemu-kvm libvirt virt-install virt-manager virt-viewer 를 설치하여야 합니다.


로컬의 Virtual Machine Manager 로 해당 서버에 접속하고 비밀번호는 vnc1234 를 입력하면 됩니다.



블로그 이미지

영은파더♥

가상서버호스팅 VPS 리눅스 서버관리 윈도우 IT

,

CentOS 7.x Failed to start Virtualization daemon



가상화 서버를 사용하려고 했더니 아래와 같이 에러가 나면서 안되더군요~


폭풍 검색을 해서 이것저것 다 해봐도 안되더니 yum update 한방에 해결이 되네요~ ㅎ


[root@vps ~]# systemctl start libvirtd

Job for libvirtd.service failed because the control process exited with error code. See "systemctl status libvirtd.service" and "journalctl -xe" for details.


[root@vps ~]# systemctl status libvirtd

● libvirtd.service - Virtualization daemon

   Loaded: loaded (/usr/lib/systemd/system/libvirtd.service; enabled; vendor preset: enabled)

   Active: failed (Result: start-limit) since Thu 2018-12-06 11:12:39 KST; 4s ago

     Docs: man:libvirtd(8)

           https://libvirt.org

  Process: 30787 ExecStart=/usr/sbin/libvirtd $LIBVIRTD_ARGS (code=exited, status=3)

 Main PID: 30787 (code=exited, status=3)

    Tasks: 2 (limit: 32768)

   CGroup: /system.slice/libvirtd.service

           ├─1795 /usr/sbin/dnsmasq --conf-file=/var/lib/libvirt/dnsmasq/default.conf --leasefile-ro --dhcp-script=/usr/libexec/libvirt_leaseshelper

           └─1796 /usr/sbin/dnsmasq --conf-file=/var/lib/libvirt/dnsmasq/default.conf --leasefile-ro --dhcp-script=/usr/libexec/libvirt_leaseshelper


Dec 06 11:12:39 example.com systemd[1]: Failed to start Virtualization daemon.

Dec 06 11:12:39 example.com systemd[1]: Unit libvirtd.service entered failed state.

Dec 06 11:12:39 example.com systemd[1]: libvirtd.service failed.

Dec 06 11:12:39 example.com systemd[1]: libvirtd.service holdoff time over, scheduling restart.

Dec 06 11:12:39 example.com systemd[1]: start request repeated too quickly for libvirtd.service

Dec 06 11:12:39 example.com systemd[1]: Failed to start Virtualization daemon.

Dec 06 11:12:39 example.com systemd[1]: Unit libvirtd.service entered failed state.

Dec 06 11:12:39 example.com systemd[1]: libvirtd.service failed.


# libvirtd -v

...

error : virModuleLoadFile:53 : internal error: Failed to load module '/usr/lib64/libvirt/storage-backend/libvirt_storage_backend_rbd.so': /usr/lib64/libvirt/storage-backend/libvirt_storage_backend_rbd.so: undefined symbol: rbd_diff_iterate2


주기적으로 yum update 를 해야겠습니다.


블로그 이미지

영은파더♥

가상서버호스팅 VPS 리눅스 서버관리 윈도우 IT

,