차이

문서의 선택한 두 판 사이의 차이를 보여줍니다.

차이 보기로 링크

양쪽 이전 판 이전 판
다음 판
이전 판
rhel_cloud_qcow_이미지_설정 [2021/08/02 05:34] zzungrhel_cloud_qcow_이미지_설정 [2023/11/07 08:23] (현재) koov
줄 1: 줄 1:
- 
 <WRAP center round info 100%> <WRAP center round info 100%>
 해당 문서는 KVM 에 배포할 redhat qcow guest image 생성하는 방법을 작성한 문서 입니다. 해당 문서는 KVM 에 배포할 redhat qcow guest image 생성하는 방법을 작성한 문서 입니다.
줄 10: 줄 9:
 <WRAP prewrap> <WRAP prewrap>
 <code bash> <code bash>
- # 참고 url : https://access.redhat.com/solutions/894123+ # RHEL6 ~ RHEL7.5 url : https://access.redhat.com/solutions/894123 
 + # RHEL8.4 url : https://access.redhat.com/downloads/content/479/ver=/rhel---8/8.4/x86_64/product-software
 </code> </code>
 </WRAP> </WRAP>
줄 21: 줄 21:
  # yum -y install guestfish  # yum -y install guestfish
  # systemctl start libvirtd  # systemctl start libvirtd
 +</code>
 +</WRAP>
 +
 +  * RHEL 8의 경우
 +<WRAP prewrap>
 +<code bash>
 +[root@localhost ~]# yum -y install libguestfs-tools-c libguestfs-bash-completion
 </code> </code>
 </WRAP> </WRAP>
줄 88: 줄 95:
  
 </code> </code>
 +</WRAP>
 +
 +===== 오류 =====
 +
 +<WRAP prewrap>
 +<code bash>
 +[   0.0] Examining the guest ...
 +virt-customize: error: libguestfs error: could not create appliance through
 +libvirt.
 +
 +Try running qemu directly without libvirt using this environment variable:
 +export LIBGUESTFS_BACKEND=direct
 +
 +Original error from libvirt: Cannot access storage file
 +'/root/Rocky-8-GenericCloud-Base.latest.x86_64.qcow2' (as uid:107,
 +gid:107): Permission denied [code=38 int1=13]
 +
 +If reporting bugs, run virt-customize with debugging enabled and include
 +the complete output:
 +
 +  virt-customize -v -x [...]
 +</code>
 +</WRAP>
 +위의 경우 환경변수에 ''LIBGUESTFS_BACKEND'' 가 설정되어있지 않아 발생하는 오류이다.
 +에러메시지에 나온대로 ''export LIBGUESTFS_BACKEND=direct''를 설정하면 된다.
 +
  • rhel_cloud_qcow_이미지_설정.1627882471.txt.gz
  • 마지막으로 수정됨: 2021/08/02 05:34
  • 저자 zzung