openstack team mailing list archive
-
openstack team
-
Mailing list archive
-
Message #06186
Windows2008 VM Shut off automatically
I use nova on KVM.
I create Windows 2008 R2 image and upload to glance.
$ glance index
ID Name Disk Format
Container Format Size
---------------- ------------------------------ --------------------
-------------------- --------------
9 Windows2008-X86_64 raw ovf
10737418240
When I boot the instance, I can ping and connect to remote desktop
However, The problem is that the instance is shut down automatically after
about a hour since it is launched.
Nova doesn't know the state of instance because the KVM shut off the
instance.
nova@nova5:~$ nova list | grep Console_Server
| bfff2565-7fcc-46b6-a97f-62018c33517b | Console_Server | ACTIVE |
sds=10.101.0.227, 182.194.2.240 |
Here is a qemu log
$ vi /var/log/libvirt/qemu/instance-00000160.log
1 2011-12-15 13:53:24.304: starting up
2 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-0.14 -enable-kvm -m 10240 -smp
4,sockets=4,cores=1,threads=1 -name in stance-00000160 -uuid
95be861b-b3ae-6afc-d5f3-a7a773cb8da4 -nodefconfig -nodefaults -chardev
socket,id=charmonitor,path=/var/lib/libvirt/qemu/instance-00000160.monitor,server,nowait
-mon chardev=charmonitor,id=monitor,mode=readline -rtc base=utc -boot c
-drive
file=/dev/disk/by-path/ip-10.245.34.2:3260-iscsi-iqn.2003-10.com.lefthandnetworks:c2-z1-swn:1112:volume-000002a
2-lun-0,if=none,id=drive-virtio-disk0,boot=on,format=raw -device
virtio-blk-pci,bus=pci.0,addr=0x4,drive=drive-virtio-disk0,id=virtio-disk0
-drive file=/dev/disk/by-path/ip-10.245.34.2:3
260-iscsi-iqn.2003-10.com.lefthandnetworks:c2-z1-swn:1114:volume-000002a3-lun-0,if=none,id=drive-virtio-disk1,format=raw
-device virtio-blk-pci,bus=pci.0,addr=0x5,drive=drive-virtio-disk
1,id=virtio-disk1 -netdev tap,fd=18,id=hostnet0 -device
rtl8139,netdev=hostnet0,id=net0,mac=02:16:3e:0b:a4:ac,bus=pci.0,addr=0x3
-chardev file,id=charserial0,path=/spcs/instances/instanc
e-00000160/console.log -device isa-serial,chardev=charserial0,id=serial0
-chardev pty,id=charserial1 -device
isa-serial,chardev=charserial1,id=serial1 -usb -vnc 0.0.0.0:1 -k en-us -vga
c irrus -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x6
3 char device redirected to /dev/pts/2
4 kvm: -device
rtl8139,netdev=hostnet0,id=net0,mac=02:16:3e:0b:a4:ac,bus=pci.0,addr=0x3:
pci_add_option_rom: *failed to find romfile "pxe-rtl8139.bin"*
5 2011-12-15 14:53:55.335: shutting down
At first, I tought the problem is cause by pxe-rtl8139.bin failed problem
So I googled and I solved the problem. Her is the URL I found.
http://ubuntuforums.org/archive/index.php/t-1814487.html
http://hugokuo-hugo.blogspot.com/2011/07/build-winxp-image-into-nova.html
Howerver, I coundn't solve the shut-off problem.
$ vi /var/log/libvirt/qemu/instance-00000161.log
1 2011-12-16 07:35:14.328: starting up
2 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-0.14 -enable-kvm -m 10240 -smp
4,sockets=4,cores=1,threads=1 -name in stance-00000161 -uuid
aedfe3a5-0925-aca8-38cb-f5ed9d3c0f42 -nodefconfig -nodefaults -chardev
socket,id=charmonitor,path=/var/lib/libvirt/qemu/instance-00000161.monitor,server,nowait
-mon chardev=charmonitor,id=monitor,mode=readline -rtc base=utc -boot c
-drive
file=/dev/disk/by-path/ip-10.245.34.1:3260-iscsi-iqn.2003-10.com.lefthandnetworks:c1-z1-swn:1905:volume-000002a
4-lun-0,if=none,id=drive-virtio-disk0,boot=on,format=raw -device
virtio-blk-pci,bus=pci.0,addr=0x4,drive=drive-virtio-disk0,id=virtio-disk0
-drive file=/dev/disk/by-path/ip-10.245.34.1:3
260-iscsi-iqn.2003-10.com.lefthandnetworks:c1-z1-swn:1907:volume-000002a5-lun-0,if=none,id=drive-virtio-disk1,format=raw
-device virtio-blk-pci,bus=pci.0,addr=0x5,drive=drive-virtio-disk
1,id=virtio-disk1 -netdev tap,fd=17,id=hostnet0 -device
rtl8139,netdev=hostnet0,id=net0,mac=02:16:3e:25:1c:d2,bus=pci.0,addr=0x3
-chardev file,id=charserial0,path=/spcs/instances/instanc
e-00000161/console.log -device isa-serial,chardev=charserial0,id=serial0
-chardev pty,id=charserial1 -device
isa-serial,chardev=charserial1,id=serial1 -usb -vnc 0.0.0.0:0 -k en-us -vga
c irrus -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x6
3 char device redirected to /dev/pts/1
4 2011-12-16 08:35:41.770: shutting down
5 2011-12-16 08:48:57.058: starting up
6 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-0.14 -enable-kvm -m 10240 -smp
4,sockets=4,cores=1,threads=1 -name in stance-00000161 -uuid
aedfe3a5-0925-aca8-38cb-f5ed9d3c0f42 -nodefconfig -nodefaults -chardev
socket,id=charmonitor,path=/var/lib/libvirt/qemu/instance-00000161.monitor,server,nowait
-mon chardev=charmonitor,id=monitor,mode=readline -rtc base=utc -boot c
-drive
file=/dev/disk/by-path/ip-10.245.34.1:3260-iscsi-iqn.2003-10.com.lefthandnetworks:c1-z1-swn:1905:volume-000002a
4-lun-0,if=none,id=drive-virtio-disk0,boot=on,format=raw -device
virtio-blk-pci,bus=pci.0,addr=0x4,drive=drive-virtio-disk0,id=virtio-disk0
-drive file=/dev/disk/by-path/ip-10.245.34.1:3
260-iscsi-iqn.2003-10.com.lefthandnetworks:c1-z1-swn:1907:volume-000002a5-lun-0,if=none,id=drive-virtio-disk1,format=raw
-device virtio-blk-pci,bus=pci.0,addr=0x5,drive=drive-virtio-disk
1,id=virtio-disk1 -netdev tap,fd=18,id=hostnet0 -device
rtl8139,netdev=hostnet0,id=net0,mac=02:16:3e:25:1c:d2,bus=pci.0,addr=0x3
-chardev file,id=charserial0,path=/spcs/instances/instanc
e-00000161/console.log -device isa-serial,chardev=charserial0,id=serial0
-chardev pty,id=charserial1 -device
isa-serial,chardev=charserial1,id=serial1 -usb -vnc 0.0.0.0:0 -k en-us -vga
c irrus -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x6
7 char device redirected to /dev/pts/1
8 2011-12-16 09:49:25.310: shutting down
The problem is still doing
The Windows instance is shut off after 1 hour.
Anybody has a same problem? How solve this problem??
Thanks
Seungjin Han