14.9.3. libvirt-guests 구성 설정 조작
libvirt-guests 서비스에는 게스트가 올바르게 종료되도록 구성할 수 있는 매개 변수 설정이 있습니다. 이 패키지는 libvirt 설치의 일부이며 기본적으로 설치됩니다. 이 서비스는 호스트가 종료될 때 자동으로 게스트를 디스크에 저장하고 호스트가 재부팅될 때 이전 상태로 복원합니다. 기본적으로 이 설정은 게스트를 일시 중단하도록 설정되어 있습니다. 게스트를 종료하려면 libvirt-guests 구성 파일의 매개 변수 중 하나를 변경해야 합니다.
				절차 14.5. 게스트의 정상 종료를 허용하도록 libvirt-guests 서비스 매개 변수 변경
						여기에 설명된 절차를 통해 호스트 물리적 시스템이 꺼져 있거나 전원이 꺼지거나 다시 시작해야 하는 경우 게스트 가상 시스템의 정상 종료가 허용됩니다.
					
- 구성 파일을 엽니다. 구성 파일은- /etc/sysconfig/libvirt-guests에 있습니다. 파일을 편집하고 주석 표시(#)를 제거하고- ON_SHUTDOWN=suspend를- ON_SHUTDOWN=shutdown으로 변경합니다. 변경 사항을 저장합니다.- Copy to Clipboard Copied! - Toggle word wrap Toggle overflow - ???
- URIS- checks the specified connections for a running guest. The- Defaultsetting functions in the same manner as- virshdoes when no explicit URI is set In addition, one can explicitly set the URI from- /etc/libvirt/libvirt.conf. It should be noted that when using the libvirt configuration file default setting, no probing will be used.
- ???
- ON_BOOT- specifies the action to be done to / on the guests when the host boots. The- startoption starts all guests that were running prior to shutdown regardless on their autostart settings. The- ignoreoption will not start the formally running guest on boot, however, any guest marked as autostart will still be automatically started by libvirtd.
- ???
- TheSTART_DELAY- sets a delay interval in between starting up the guests. This time period is set in seconds. Use the 0 time setting to make sure there is no delay and that all guests are started simultaneously.
- ???
- ON_SHUTDOWN- specifies the action taken when a host shuts down. Options that can be set include:- suspendwhich suspends all running guests using virsh managedsave and- shutdownwhich shuts down all running guests. It is best to be careful with using the- shutdownoption as there is no way to distinguish between a guest which is stuck or ignores shutdown requests and a guest that just needs a longer time to shutdown. When setting the- ON_SHUTDOWN=shutdown, you must also set- SHUTDOWN_TIMEOUTto a value suitable for the guests.
- ???
- PARALLEL_SHUTDOWNDictates that the number of guests on shutdown at any time will not exceed number set in this variable and the guests will be suspended concurrently. If set to- 0, then guests are not shutdown concurrently.
- ???
- Number of seconds to wait for a guest to shut down. IfSHUTDOWN_TIMEOUTis enabled, this timeout applies as a timeout for shutting down all guests on a single URI defined in the variable URIS. IfSHUTDOWN_TIMEOUTis set to0, then there is no time out (use with caution, as guests might not respond to a shutdown request). The default value is 300 seconds (5 minutes).
- ???
- BYPASS_CACHEcan have 2 values, 0 to disable and 1 to enable. If enabled it will by-pass the file system cache when guests are restored. Note that setting this may effect performance and may cause slower operation for some file systems.
 
- libvirt-guests 서비스 시작 서비스를 시작하지 않은 경우 libvirt-guests 서비스를 시작합니다. 서비스를 다시 시작하지 않도록 하면 실행 중인 모든 도메인이 종료됩니다.