Hi,
I'm sorry that my answer took so long.
I ran a few tests today and it's getting a bit weird.
But first the answers to your questions.
Am 23.12.2011 16:27, schrieb Michael Tokarev:
I read that one and thought about it. But I don't know if
it applies. Sometimes the message states that it's already
the initrd that gets loaded, before it fails.
And it is reproducible, means I can't just reboot and try
again and it will work somehow.
You mean it is NOT reproducible, right?
My problem here is reproducible for me. Everytime I reboot it, it
fails.
Is the address it complains about always the same?
Yes it is.
[]
Then the VM uses 100% of the cpu resources.
This happens with the netinstall cds and it doesn't matter
wether I use the i386 or amd64 netinstall ISO.
Which version of squeeze, exactly, you tried to install?
You didn't answer this question.
debian-6.0.3-amd64-netinst.iso
I thought I mentioned that. Sorry for the for the inconvenience.
But I didn't try "hard enough" - doing just 2 reboots after
install completes.
I don't have to reboot to get the problems. Using spice as
graphics output (and installing the image with spice! Very
important!) it always fails for me. But more after I gave
you all requested informations.
# uname -a
Linux virthost003 3.1.0-1-amd64 #1 SMP Fri Dec 23 16:37:11 UTC 2011
x86_64 GNU/Linux
libvirt0 0.9.8-2
qemu-kvm 1.0+dfsg-2
seabios 1.6.3-2
If this is a grub bug, I could try to build grub from testing
for squeeze, boot with a live CD manually the VM and install
it there, if it helps to figure out what's wrong.
That'd be really helpful.
Not yet tested.
Besides, did these images work with earlier versions of qemu-kvm?
Does anything change when you try 1.0 version?
Yes. They work perfectly fine on a Squeeze system, but with vnc as
graphics output.
Ok, now to the tests I ran today. Somehow I thought this could be
related
to spice.
I created two images:
qemu-img create -f raw test3.img 5G
qemu-img create -f raw test4.img 5G
then I used virt-install to install the same system. One with spice the
other with vnc:
virt-install --name test3 --ram 512 -c
/mnt/fec63632-26d4-4e49-98dc-97e6b0b48f31/images/11111111-1111-1111-1111-111111111111/debian-6.0.3-amd64-netinst.iso
--disk path=/tmp/test3.img --graphics spice,port=5901,listen=0.0.0.0
virt-install --name test4 --ram 512 -c
/mnt/fec63632-26d4-4e49-98dc-97e6b0b48f31/images/11111111-1111-1111-1111-111111111111/debian-6.0.3-amd64-netinst.iso
--disk path=/tmp/test4.img --graphics vnc,port=5901,listen=0.0.0.0
The image I installed with vnc (test4) works fine. The one installed
over spice (test3) wont.
The error message is the same as above.
Then I swaped the config (took the config from test4 changed the name,
image destination, uuid
and mac address and inserted in the editor of virsh edit test3. Did the
same with both
config files).
Test3 runs now, but test4 fails.
The command line for test3:
/usr/bin/kvm -S -M pc-1.0 -enable-kvm -m 512 -smp
1,sockets=1,cores=1,threads=1 -name test3 -uuid
0b1e833b-d9e5-3d0f-c072-c679a2342bd8 -nodefconfig -nodefaults -chardev
socket,id=charmonitor,path=/var/lib/libvirt/qemu/test3.monitor,server,nowait
-mon chardev=charmonitor,id=monitor,mode=control -rtc base=utc
-no-shutdown -drive
file=/tmp/test3.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=1
-drive 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
-netdev tap,fd=18,id=hostnet0 -device
rtl8139,netdev=hostnet0,id=net0,mac=52:54:00:b6:8e:9d,bus=pci.0,addr=0x3
-chardev pty,id=charserial0 -device
isa-serial,chardev=charserial0,id=serial0 -usb -vnc 0.0.0.0:1 -vga
cirrus -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x4
The line for test4:
/usr/bin/kvm -S -M pc-1.0 -enable-kvm -m 512 -smp
1,sockets=1,cores=1,threads=1 -name test4 -uuid
d38a68c2-e1eb-d02e-7592-3aee0b0e8c88 -nodefconfig -nodefaults -chardev
socket,id=charmonitor,path=/var/lib/libvirt/qemu/test4.monitor,server,nowait
-mon chardev=charmonitor,id=monitor,mode=control -rtc base=utc
-no-shutdown -device
virtio-serial-pci,id=virtio-serial0,bus=pci.0,addr=0x4 -drive
file=/tmp/test4.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=1
-drive 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
-netdev tap,fd=18,id=hostnet0 -device
rtl8139,netdev=hostnet0,id=net0,mac=52:54:00:56:67:6d,bus=pci.0,addr=0x3
-chardev pty,id=charserial0 -device
isa-serial,chardev=charserial0,id=serial0 -usb -spice
port=5901,addr=0.0.0.0,disable-ticketing -vga qxl -global
qxl-vga.vram_size=67108864 -device
virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x5
But! If I change the graphics output in the test4 config back to vnc,
it fails over VNC, too.
And if I change the graphics output for test3 to spice the image boots.
So, it looks like virt-inst seems to do something differently, if you
choose between
vnc and spice.
I've added the unaltered xml config files (from virsh dumpxml) as
attachment. Where
test3 is the config that doesn't boot and test4 is the one that works.
You can see that a major difference is the video model. So I tested it
a bit further.
Changing the model from qxl to cirrus lets every bevorehand broken VM
boot.
To test further, I tried a wheezy/testing cd install iso from around
december 12th. (same virt-inst
command line as above with the spice graphics, but different iso). It
works without
any problems and uses qxl as video model.
So the topic should be change to: squeeze-VMs fail to boot with qxl
video.
Regards
Matthias
<domain type='kvm'>
<name>test3</name>
<uuid>0b1e833b-d9e5-3d0f-c072-c679a2342bd8</uuid>
<memory>524288</memory>
<currentMemory>524288</currentMemory>
<vcpu>1</vcpu>
<os>
<type arch='x86_64' machine='pc-1.0'>hvm</type>
<boot dev='hd'/>
</os>
<features>
<acpi/>
<apic/>
<pae/>
</features>
<clock offset='utc'/>
<on_poweroff>destroy</on_poweroff>
<on_reboot>restart</on_reboot>
<on_crash>restart</on_crash>
<devices>
<emulator>/usr/bin/kvm</emulator>
<disk type='file' device='disk'>
<driver name='qemu' type='raw'/>
<source file='/tmp/test3.img'/>
<target dev='hda' bus='ide'/>
<address type='drive' controller='0' bus='0' unit='0'/>
</disk>
<disk type='block' device='cdrom'>
<driver name='qemu' type='raw'/>
<target dev='hdc' bus='ide'/>
<readonly/>
<address type='drive' controller='0' bus='1' unit='0'/>
</disk>
<controller type='ide' index='0'>
<address type='pci' domain='0x0000' bus='0x00' slot='0x01'
function='0x1'/>
</controller>
<controller type='virtio-serial' index='0'>
<address type='pci' domain='0x0000' bus='0x00' slot='0x04'
function='0x0'/>
</controller>
<interface type='bridge'>
<mac address='52:54:00:b6:8e:9d'/>
<source bridge='engine'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x03'
function='0x0'/>
</interface>
<serial type='pty'>
<target port='0'/>
</serial>
<console type='pty'>
<target type='serial' port='0'/>
</console>
<input type='mouse' bus='ps2'/>
<graphics type='spice' port='5901' tlsPort='-1' autoport='no'
listen='0.0.0.0'>
<listen type='address' address='0.0.0.0'/>
</graphics>
<video>
<model type='qxl' vram='65536' heads='1'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x02'
function='0x0'/>
</video>
<memballoon model='virtio'>
<address type='pci' domain='0x0000' bus='0x00' slot='0x05'
function='0x0'/>
</memballoon>
</devices>
</domain>
<domain type='kvm'>
<name>test4</name>
<uuid>d38a68c2-e1eb-d02e-7592-3aee0b0e8c88</uuid>
<memory>524288</memory>
<currentMemory>524288</currentMemory>
<vcpu>1</vcpu>
<os>
<type arch='x86_64' machine='pc-1.0'>hvm</type>
<boot dev='hd'/>
</os>
<features>
<acpi/>
<apic/>
<pae/>
</features>
<clock offset='utc'/>
<on_poweroff>destroy</on_poweroff>
<on_reboot>restart</on_reboot>
<on_crash>restart</on_crash>
<devices>
<emulator>/usr/bin/kvm</emulator>
<disk type='file' device='disk'>
<driver name='qemu' type='raw'/>
<source file='/tmp/test4.img'/>
<target dev='hda' bus='ide'/>
<address type='drive' controller='0' bus='0' unit='0'/>
</disk>
<disk type='block' device='cdrom'>
<driver name='qemu' type='raw'/>
<target dev='hdc' bus='ide'/>
<readonly/>
<address type='drive' controller='0' bus='1' unit='0'/>
</disk>
<controller type='ide' index='0'>
<address type='pci' domain='0x0000' bus='0x00' slot='0x01'
function='0x1'/>
</controller>
<interface type='bridge'>
<mac address='52:54:00:56:67:6d'/>
<source bridge='engine'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x03'
function='0x0'/>
</interface>
<serial type='pty'>
<target port='0'/>
</serial>
<console type='pty'>
<target type='serial' port='0'/>
</console>
<input type='mouse' bus='ps2'/>
<graphics type='vnc' port='5901' autoport='no' listen='0.0.0.0'>
<listen type='address' address='0.0.0.0'/>
</graphics>
<video>
<model type='cirrus' vram='9216' heads='1'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x02'
function='0x0'/>
</video>
<memballoon model='virtio'>
<address type='pci' domain='0x0000' bus='0x00' slot='0x04'
function='0x0'/>
</memballoon>
</devices>
</domain>