728x90

    [증상]

    # hugepage 설정된 KVM Host에서 virsh start 시 Cannot allocate memory 에러나며 실행 불가

    [root@director-host ~]# virsh start director
    error: Failed to start domain director
    error: internal error: process exited while connecting to monitor: ioctl(KVM_CREATE_VM) failed: 12 Cannot allocate memory
    2021-09-30T01:43:10.316038Z qemu-kvm: failed to initialize KVM: Cannot allocate memory

     

    [조치방법]

    [root@director-host ~]# free -m
                  total        used        free      shared  buff/cache   available
    Mem:         386655      363228        3491        2215       19935       20367
    Swap:          4095        2196        1899


    [root@director-host ~]# sync
    [root@director-host ~]# echo 3 > /proc/sys/vm/drop_caches

    [root@director-host ~]# virsh start director
    Domain director started

    [root@director-host ~]# virsh list --all
     Id    Name                           State
    ----------------------------------------------------
     51    director                running

     

    'OS > RHEL7' 카테고리의 다른 글

    yaml 편집시 유용한 vi 환경 설정  (0) 2021.07.16
    ip 주소 확인  (0) 2021.07.12
    rpm 패키지 압축 풀기  (0) 2021.07.06
    rpm change log 확인  (0) 2021.07.06
    특정 명령어 없을때 yum 패키지 이름 찾기  (0) 2021.06.06
    • 네이버 블러그 공유하기
    • 네이버 밴드에 공유하기
    • 페이스북 공유하기
    • 카카오스토리 공유하기