| 139 | |
| 140 | = start/shutdown log for VM = |
| 141 | * Ubuntu 12.04 |
| 142 | |
| 143 | * /var/log/libvirt/qemu 以下に、VMごとのログが残される |
| 144 | {{{ |
| 145 | -rw------- 1 root root 3940 Oct 8 00:24 quantal.log |
| 146 | -rw------- 1 root root 12394 Oct 13 23:13 test.log |
| 147 | }}} |
| 148 | * /var/log/libvirt/qemu/xp-vm01.log |
| 149 | {{{ |
| 150 | 2012-10-28 12:46:55.328+0000: starting up |
| 151 | LC_ALL=C PATH=/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/sbin:/sbin:/bin QEMU_AUDIO_DRV=none /usr/bin/kvm -S -M pc-1.0 -enable-kvm -m 1024 -smp 1,sockets=1,cores=1,threads=1 -name xp-vm01 -uuid XXXXXXXX-YYYY-ZZZZ-WWWW-VVVVVVVVVVVV -nodefconfig -nodefaults -chardev socket,id=charmonitor,path=/var/lib/libvirt/qemu/xp-vm01.monitor,server,nowait -mon chardev=charmonitor,id=monitor,mode=control -rtc base=localtime -no-shutdown -drive file=/var/lib/libvirt/images/xp-vm01.img,if=none,id=drive-ide0-0-0,format=raw -device ide-drive,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0,bootindex=2 -drive file=/home/mitty/virtio-win-0.1-30.iso,if=none,media=cdrom,id=drive-ide0-1-0,readonly=on,format=raw -device ide-drive,bus=ide.1,unit=0,drive=drive-ide0-1-0,id=ide0-1-0,bootindex=1 -netdev tap,fd=16,id=hostnet0 -device virtio-net-pci,netdev=hostnet0,id=net0,mac=52:54:00:a8:d0:1d,bus=pci.0,addr=0x3 -usb -device usb-tablet,id=input0 -vnc 127.0.0.1:1 -vga vmware -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x4 |
| 152 | vmsvga_value_read: Bad register 2b |
| 153 | vmsvga_value_read: Bad register 2c |
| 154 | qemu: terminating on signal 15 from pid 1803 |
| 155 | 2012-10-28 12:51:56.141+0000: shutting down |
| 156 | }}} |
| 157 | |
| 158 | == autoshutdown == |
| 159 | * /var/log/libvirt/shutdownlog.log で確認できる |
| 160 | {{{ |
| 161 | libvirt: libvirt-bin: entering pre-stop at Fri Oct 19 23:22:33 JST 2012 |
| 162 | libvirt: libvirt-bin: attempting clean shutdown of xp-vm02 at Fri Oct 19 23:22:33 JST 2012 |
| 163 | libvirt: destroying xp-vm02 |
| 164 | libvirt: libvirt-bin: exiting pre-stop at Fri Oct 19 23:23:06 JST 2012 |
| 165 | libvirt: libvirt-bin: entering pre-stop at Fri Oct 26 23:37:35 JST 2012 |
| 166 | libvirt: libvirt-bin: exiting pre-stop at Fri Oct 26 23:37:35 JST 2012 |
| 167 | libvirt: libvirt-bin: entering pre-stop at Sun Oct 28 21:45:17 JST 2012 |
| 168 | libvirt: libvirt-bin: attempting clean shutdown of xp-vm02 at Sun Oct 28 21:45:17 JST 2012 |
| 169 | libvirt: libvirt-bin: attempting clean shutdown of xp-vm01 at Sun Oct 28 21:45:17 JST 2012 |
| 170 | libvirt: libvirt-bin: exiting pre-stop at Sun Oct 28 21:45:45 JST 2012 |
| 171 | }}} |
| 172 | |
| 173 | * /etc/init/libvirt-bin.conf で制御されている模様 |