← Back to team overview

openstack team mailing list archive

Re: Why my vm often change into shut off status by itself?

 

Generally if you use virsh to restart the virtual machine,it seems to be
able to use some time before shutoff again。

$ date
Thu Dec  6 17:04:41 CST 2012

$ virsh start instance-0000006e
Domain instance-0000006e started

$ virsh list
 Id Name                 State
----------------------------------
158 instance-0000006e    running

/var/log/libvirt/qemu$ sudo tail -f instance-0000006e.log
2012-12-03 06:14:13.488+0000: shutting down
qemu: terminating on signal 15 from pid 1957
2012-12-03 06:14:59.819+0000: starting up
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 -cpu
core2duo,+lahf_lm,+aes,+popcnt,+sse4.2,+sse4.1,+cx16,-monitor,-vme
-enable-kvm -m 512 -smp 1,sockets=1,cores=1,threads=1 -name
instance-0000006e -uuid d7798df8-e225-4178-9d0b-f6691d78ce18 -nodefconfig
-nodefaults -chardev
socket,id=charmonitor,path=/var/lib/libvirt/qemu/instance-0000006e.monitor,server,nowait
-mon chardev=charmonitor,id=monitor,mode=control -rtc
base=utc,driftfix=slew -no-kvm-pit-reinjection -no-shutdown -drive
file=/data0/instances/instance-0000006e/disk,if=none,id=drive-virtio-disk0,format=qcow2,cache=none
-device
virtio-blk-pci,bus=pci.0,addr=0x4,drive=drive-virtio-disk0,id=virtio-disk0,bootindex=1
-netdev tap,fd=25,id=hostnet0 -device
rtl8139,netdev=hostnet0,id=net0,mac=fa:16:3e:17:ca:dd,bus=pci.0,addr=0x3
-chardev
file,id=charserial0,path=/data0/instances/instance-0000006e/console.log
-device isa-serial,chardev=charserial0,id=serial0 -chardev
pty,id=charserial1 -device isa-serial,chardev=charserial1,id=serial1 -usb
-device usb-tablet,id=input0 -vnc 0.0.0.0:2 -k en-us -vga cirrus -incoming
fd:23 -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x5
char device redirected to /dev/pts/27
qemu: terminating on signal 15 from pid 1957
2012-12-04 06:54:27.150+0000: shutting down
2012-12-06 09:02:46.343+0000: starting up
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 -cpu
core2duo,+lahf_lm,+aes,+popcnt,+sse4.2,+sse4.1,+cx16,-monitor,-vme
-enable-kvm -m 512 -smp 1,sockets=1,cores=1,threads=1 -name
instance-0000006e -uuid d7798df8-e225-4178-9d0b-f6691d78ce18 -nodefconfig
-nodefaults -chardev
socket,id=charmonitor,path=/var/lib/libvirt/qemu/instance-0000006e.monitor,server,nowait
-mon chardev=charmonitor,id=monitor,mode=control -rtc
base=utc,driftfix=slew -no-kvm-pit-reinjection -no-shutdown -drive
file=/data0/instances/instance-0000006e/disk,if=none,id=drive-virtio-disk0,format=qcow2,cache=none
-device
virtio-blk-pci,bus=pci.0,addr=0x4,drive=drive-virtio-disk0,id=virtio-disk0,bootindex=1
-netdev tap,fd=23,id=hostnet0 -device
rtl8139,netdev=hostnet0,id=net0,mac=fa:16:3e:17:ca:dd,bus=pci.0,addr=0x3
-chardev
file,id=charserial0,path=/data0/instances/instance-0000006e/console.log
-device isa-serial,chardev=charserial0,id=serial0 -chardev
pty,id=charserial1 -device isa-serial,chardev=charserial1,id=serial1 -usb
-device usb-tablet,id=input0 -vnc 0.0.0.0:2 -k en-us -vga cirrus -device
virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x5
char device redirected to /dev/pts/30

We can see this two log:
...
2012-12-03 06:14:59.819+0000: starting up
...
2012-12-04 06:54:27.150+0000: shutting down

The vm shutoff after running one day.


2012/12/6 Veera Reddy <veeraready@xxxxxxxxx>

>
>
> On Thu, Dec 6, 2012 at 8:29 AM, pyw <pengyuwei@xxxxxxxxx> wrote:
>
>> instance-00000040    shut off
>
>
>
>
> Hi,
>
> Try to start vm with virsh command
>
> " virsh start  instance-00000040"
>
> With this  we can see what is actual problem
>
> Regards,
> Veera.
>

Follow ups

References