Bootlog file problem

Asked by Laurent Borensky

Hi,

I start the VM with qemu, but I always have a bootlog file empty.

root@server1:# euca-get-console-output i-00000018 –debug <CR>
i-00000016
2011-05-26T17:04:46Z
root@server1:#
root@server1:/var/lib/nova/instances/instance-00000018# ls –l <CR>
total 4108
-rw-r----- 1 nova kvm 0 2011-05-26 19:02 console.log
-rw-r--r-- 1 libvirt-qemu kvm 6291968 2011-05-26 19:02 disk
-rw-r--r-- 1 nova nogroup 1498 2011-05-26 19:02 libvirt.xml
root@server1:/home/localadmin/creds# ps -ef | grep kvm <CR>
root 1166 2 0 20:43 ? 00:00:00 [kvm-irqfd-clean]
108 2599 1 77 20:51 ? 00:00:35 /usr/bin/kvm -S -M pc-0.14 -enable-kvm -m 512 -smp 1,sockets=1,cores=1,threads=1 -name instance-00000018 -uuid 8f1220ab-2e46-dcbc-866d-3f48b9a852bd -nodefconfig -nodefaults -chardev socket,id=charmonitor,path=/var/lib/libvirt/qemu/instance-00000018.monitor,server,nowait -mon chardev=charmonitor,id=monitor,mode=readline -rtc base=utc -boot c -drive file=/var/lib/nova/instances/instance-00000018/disk,if=none,id=drive-virtio-disk0,boot=on,format=qcow2 -device virtio-blk-pci,bus=pci.0,addr=0x4,drive=drive-virtio-disk0,id=virtio-disk0 -netdev tap,fd=17,id=hostnet0 -device rtl8139,netdev=hostnet0,id=net0,mac=02:16:3e:02:b6:6b,bus=pci.0,addr=0x3 -chardev file,id=charserial0,path=/var/lib/nova/instances/instance-00000018/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 cirrus -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x5
root 2600 2 0 20:51 ? 00:00:00 [kvm-pit-wq]
root 2607 2077 0 20:52 pts/0 00:00:00 grep --color=auto kvm
root@server1:/var/lib/libvirt/qemu# ls –l <CR>
total 12
drwxr-xr-x 2 root root 4096 2011-05-05 09:47 dump
srwxr-xr-x 1 libvirt-qemu kvm 0 2011-05-10 14:17 instance-00000001.monitor
srwxr-xr-x 1 libvirt-qemu kvm 0 2011-05-10 14:37 instance-00000002.monitor

srwxr-xr-x 1 libvirt-qemu kvm 0 2011-05-22 17:10 instance-00000011.monitor
srwxr-xr-x 1 libvirt-qemu kvm 0 2011-05-26 19:02 instance-00000016.monitor
srwxr-xr-x 1 libvirt-qemu kvm 0 2011-05-26 20:51 instance-00000018.monitor
drwxr-xr-x 2 libvirt-qemu kvm 4096 2011-05-05 09:47 save
drwxr-xr-x 2 libvirt-qemu kvm 4096 2011-05-05 09:47 snapshot
root@server1:/var/lib/libvirt/qemu#

Do you have an idea? Thank you

Question information

Language:
English Edit question
Status:
Solved
For:
OpenStack Compute (nova) Edit question
Assignee:
No assignee Edit question
Solved by:
Laurent Borensky
Solved:
Last query:
Last reply:
Revision history for this message
Vish Ishaya (vishvananda) said :
#1

Since you don't have a kernel and ramdisk in there I assume that you are trying to boot a whole disk image. Generally this is because of a corrupt image / badly constructed image / 64 bit image on a 32 bit host.
Vish

On May 31, 2011, at 1:31 PM, Laurent Borensky wrote:

> New question #159806 on OpenStack Compute (nova):
> https://answers.launchpad.net/nova/+question/159806
>
> Hi,
>
> I start the VM with qemu, but I always have a bootlog file empty.
>
> root@server1:# euca-get-console-output i-00000018 –debug <CR>
> i-00000016
> 2011-05-26T17:04:46Z
> root@server1:#
> root@server1:/var/lib/nova/instances/instance-00000018# ls –l <CR>
> total 4108
> -rw-r----- 1 nova kvm 0 2011-05-26 19:02 console.log
> -rw-r--r-- 1 libvirt-qemu kvm 6291968 2011-05-26 19:02 disk
> -rw-r--r-- 1 nova nogroup 1498 2011-05-26 19:02 libvirt.xml
> root@server1:/home/localadmin/creds# ps -ef | grep kvm <CR>
> root 1166 2 0 20:43 ? 00:00:00 [kvm-irqfd-clean]
> 108 2599 1 77 20:51 ? 00:00:35 /usr/bin/kvm -S -M pc-0.14 -enable-kvm -m 512 -smp 1,sockets=1,cores=1,threads=1 -name instance-00000018 -uuid 8f1220ab-2e46-dcbc-866d-3f48b9a852bd -nodefconfig -nodefaults -chardev socket,id=charmonitor,path=/var/lib/libvirt/qemu/instance-00000018.monitor,server,nowait -mon chardev=charmonitor,id=monitor,mode=readline -rtc base=utc -boot c -drive file=/var/lib/nova/instances/instance-00000018/disk,if=none,id=drive-virtio-disk0,boot=on,format=qcow2 -device virtio-blk-pci,bus=pci.0,addr=0x4,drive=drive-virtio-disk0,id=virtio-disk0 -netdev tap,fd=17,id=hostnet0 -device rtl8139,netdev=hostnet0,id=net0,mac=02:16:3e:02:b6:6b,bus=pci.0,addr=0x3 -chardev file,id=charserial0,path=/var/lib/nova/instances/instance-00000018/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 cirrus -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x5
> root 2600 2 0 20:51 ? 00:00:00 [kvm-pit-wq]
> root 2607 2077 0 20:52 pts/0 00:00:00 grep --color=auto kvm
> root@server1:/var/lib/libvirt/qemu# ls –l <CR>
> total 12
> drwxr-xr-x 2 root root 4096 2011-05-05 09:47 dump
> srwxr-xr-x 1 libvirt-qemu kvm 0 2011-05-10 14:17 instance-00000001.monitor
> srwxr-xr-x 1 libvirt-qemu kvm 0 2011-05-10 14:37 instance-00000002.monitor
> …
> srwxr-xr-x 1 libvirt-qemu kvm 0 2011-05-22 17:10 instance-00000011.monitor
> srwxr-xr-x 1 libvirt-qemu kvm 0 2011-05-26 19:02 instance-00000016.monitor
> srwxr-xr-x 1 libvirt-qemu kvm 0 2011-05-26 20:51 instance-00000018.monitor
> drwxr-xr-x 2 libvirt-qemu kvm 4096 2011-05-05 09:47 save
> drwxr-xr-x 2 libvirt-qemu kvm 4096 2011-05-05 09:47 snapshot
> root@server1:/var/lib/libvirt/qemu#
>
> Do you have an idea? Thank you
>
> --
> You received this question notification because you are a member of Nova
> Core, which is an answer contact for OpenStack Compute (nova).

Revision history for this message
Laurent Borensky (laurent-borensky) said :
#2

Hi Vish,

No, I try to start the instance with the following context and the command:

# nova flavor-list <CR>
+----+-----------+-----------+------+----------+-------+------------+----------+
| ID | Name | Memory_MB | Swap | Local_GB | VCPUs | RXTX_Quota | RXTX_Cap |
+----+-----------+-----------+------+----------+-------+------------+----------+
| 1 | m1.tiny | | | | | | |
| 2 | m1.small | | | | | | |
| 3 | m1.medium | | | | | | |
| 4 | m1.large | | | | | | |
| 5 | m1.xlarge | | | | | | |
+----+-----------+-----------+------+----------+-------+------------+----------+
# nova image-list <CR>
+----+---------------------+--------+
| ID | Name | Status |
+----+---------------------+--------+
| 1 | Lunix-tty-ramdisk | ACTIVE |
| 2 | Lunix-tty-kernel | ACTIVE |
| 3 | Lunix-tty-image | ACTIVE |
| 4 | Lunix-lucid-ramdisk | ACTIVE |
| 5 | Lunix-lucid-kernel | ACTIVE |
| 6 | Lunix-lucid-image | ACTIVE |
+----+---------------------+--------+

# mysql -uroot -pnova -e "connect nova; select * from instance_types;" <CR>
created_at updated_at deleted_at deleted name id memory_mb vcpus local_gb flavorid swap rxtx_quota rxtx_cap
NULL NULL NULL 0 m1.medium 1 4096 2 40 3 0 0 0
NULL NULL NULL 0 m1.tiny 2 512 1 0 1 0 0 0
NULL NULL NULL 0 m1.large 3 8192 4 80 4 0 0 0
NULL NULL NULL 0 m1.xlarge 4 16384 8 160 5 0 0 0
NULL NULL NULL 0 m1.small 5 2048 1 20 2 0 0 0

# nova boot VM05 --flavor 1 --image 2 <CR>
+----+-----------+--------+-----------+-------------+
| ID | Name | Status | Public IP | Private IP |
+----+-----------+--------+-----------+-------------+
| 25 | Server 25 | ACTIVE | | 192.168.3.3 |
| 26 | VM05 | ACTIVE | | 192.168.3.4 |
+----+-----------+--------+-----------+-------------+

# cd /var/log/libvirt/qemu; cat instance-*1a.log <CR>
2011-06-01 09:12:03.207: 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-0.14 -enable-kvm -m 512 -smp 1,sockets=1,cores=1,threads=1 -name instance-0000001a -uuid 2a93c1ee-423b-10b2-c6ee-c0b4b41caf03 -nodefconfig -nodefaults -chardev socket,id=charmonitor,path=/var/lib/libvirt/qemu/instance-0000001a.monitor,server,nowait -mon chardev=charmonitor,id=monitor,mode=readline -rtc base=utc -boot c -drive file=/var/lib/nova/instances/instance-0000001a/disk,if=none,id=drive-virtio-disk0,boot=on,format=qcow2 -device virtio-blk-pci,bus=pci.0,addr=0x4,drive=drive-virtio-disk0,id=virtio-disk0 -netdev tap,fd=17,id=hostnet0 -device rtl8139,netdev=hostnet0,id=net0,mac=02:16:3e:4f:be:33,bus=pci.0,addr=0x3 -chardev file,id=charserial0,path=/var/lib/nova/instances/instance-0000001a/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 cirrus -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x5
char device redirected to /dev/pts/0

# cd /var/lib/nova/instances; ls -l *1a <CR>
total 4108
-rw-r----- 1 libvirt-qemu kvm 0 2011-06-01 09:12 console.log
-rw-r--r-- 1 libvirt-qemu kvm 6291968 2011-06-01 09:12 disk
-rw-r--r-- 1 nova nogroup 1498 2011-06-01 09:12 libvirt.xml

# ps -ef | grep glance <CR>
glance 833 1 0 08:21 ? 00:00:00 su -c glance-api glance
glance 888 833 0 08:21 ? 00:00:00 /usr/bin/python /usr/bin/glance-api
glance 1444 1 0 08:21 ? 00:00:00 su -c glance-registry glance
glance 1448 1444 0 08:21 ? 00:00:00 /usr/bin/python /usr/bin/glance-registry
root 2851 2068 0 09:25 tty1 00:00:00 grep --color=auto glance

# cd /var/lib/glance; ls -l images <CR>
images:
total 558436
-rw-r--r-- 1 root root 5882349 2011-05-05 15:33 1
-rw-r--r-- 1 root root 4404752 2011-05-05 15:33 2
-rw-r--r-- 1 root root 25165824 2011-05-05 15:33 3
-rw-r--r-- 1 root root 7988037 2011-05-05 15:33 4
-rw-r--r-- 1 root root 4099360 2011-05-05 15:33 5
-rw-r--r-- 1 root root 524288000 2011-05-05 15:33 6

What should I use as reference to start an instance?

Revision history for this message
Laurent Borensky (laurent-borensky) said :
#3

Hi,

Thank you Vish. The kernels of my two servers are in 32 bits and the images of VM are in 64 bits. Instead of reinstalling each server in 64 bits, I search an image of VM in 32 bits.