[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [libvirt] regression in finding boot device



On 06/27/2011 05:50 AM, Jiri Denemark wrote:
On Sat, Jun 25, 2011 at 00:21:29 -0400, Laine Stump wrote:
(bootindex was showing up as "1" in the log; not knowing anything about
how it worked, I decided to try just changing it to "0". That  didn't
work. Switching back to the old method *did* work, though.)

This system is running qemu-kvm-0.14-7.fc14.x86_64.
If you'd like a look at the domain XML, the qemu logs, or access to the
machine, just let me know.
Yeah, sending the domain XML and qemu command line to which it was transformed
would be great.


Sure. I've attached the XML at the end. Here's the non-working commandline (split into multiple lines for readability):

LC_ALL=C PATH=/sbin:/usr/sbin:/bin:/usr/bin HOME=/root USER=laine
LOGNAME=laine QEMU_AUDIO_DRV=none
/usr/bin/qemu-kvm -S -M pc-0.14 -enable-kvm -m 1024 -smp 1,sockets=1,cores=1,threads=1 -name F15 -uuid 5091aadb-136d-56a7-76c8-b829ad934c1a -nodefconfig -nodefaults -chardev socket,id=charmonitor,path=/var/lib/libvirt/qemu/F15.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,multifunction=on,addr=0x7.0x0 -drive file=/var/lib/libvirt/images/F15.img,if=none,id=drive-virtio-disk0,format=raw -device virtio-blk-pci,bus=pci.0,multifunction=on,addr=0x5.0x0,drive=drive-virtio-disk0,id=virtio-disk0,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=24,id=hostnet0
-device virtio-net-pci,netdev=hostnet0,id=net0,mac=52:54:00:48:27:1d,bus=pci.0,multifunction=on,addr=0x3.0x0 -chardev pty,id=charserial0 -device isa-serial,chardev=charserial0,id=serial0
-usb -device usb-tablet,id=input0 -vnc 127.0.0.1:1 -vga cirrus
-device AC97,id=sound0,bus=pci.0,multifunction=on,addr=0x4.0x0
-device virtio-balloon-pci,id=balloon0,bus=pci.0,multifunction=on,addr=0x6.0x0

Just for reference, here's the working commandline:

LC_ALL=C PATH=/sbin:/usr/sbin:/bin:/usr/bin QEMU_AUDIO_DRV=none
/usr/bin/qemu-kvm -S -M pc-0.14 -enable-kvm -m 1024 -smp 1,sockets=1,cores=1,threads=1 -name F15 -uuid 5091aadb-136d-56a7-76c8-b829ad934c1a -nodefconfig -nodefaults -chardev socket,id=charmonitor,path=/var/lib/libvirt/qemu/F15.monitor,server,nowait
-mon chardev=charmonitor,id=monitor,mode=control -rtc base=utc -no-shutdown
-boot c
-device virtio-serial-pci,id=virtio-serial0,bus=pci.0,multifunction=on,addr=0x7.0x0 -drive file=/var/lib/libvirt/images/F15.img,if=none,id=drive-virtio-disk0,boot=on,format=raw -device virtio-blk-pci,bus=pci.0,multifunction=on,addr=0x5.0x0,drive=drive-virtio-disk0,id=virtio-disk0
-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=27,id=hostnet0 -device virtio-net-pci,netdev=hostnet0,id=net0,mac=52:54:00:48:27:1d,bus=pci.0,multifunction=on,addr=0x3.0x0 -chardev pty,id=charserial0 -device isa-serial,chardev=charserial0,id=serial0
-usb -device usb-tablet,id=input0 -vnc 127.0.0.1:1 -vga cirrus
-device AC97,id=sound0,bus=pci.0,multifunction=on,addr=0x4.0x0
-device virtio-balloon-pci,id=balloon0,bus=pci.0,multifunction=on,addr=0x6.0x0


  However, since you say you see bootindex=1 (in qemu command
line I suppose), I think everything should work fine on libvirt side... What
version of seabios do you have?

The console screen says SeaBIOS is 0.6.0 and rpm -q says "seabios-bin-0.6.0-1.fc14.noarch".
<domain type='kvm'>
  <name>F15</name>
  <uuid>5091aadb-136d-56a7-76c8-b829ad934c1a</uuid>
  <memory>1048576</memory>
  <currentMemory>1048576</currentMemory>
  <vcpu>1</vcpu>
  <os>
    <type arch='x86_64' machine='pc-0.14'>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/qemu-kvm</emulator>
    <disk type='file' device='disk'>
      <driver name='qemu' type='raw'/>
      <source file='/var/lib/libvirt/images/F15.img'/>
      <target dev='vda' bus='virtio'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/>
    </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='virtio-serial' index='0'>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0'/>
    </controller>
    <controller type='ide' index='0'>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/>
    </controller>
    <interface type='network'>
      <mac address='52:54:00:48:27:1d'/>
      <source network='ipv6'/>
      <model type='virtio'/>
      <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='tablet' bus='usb'/>
    <input type='mouse' bus='ps2'/>
    <graphics type='vnc' port='-1' autoport='yes'/>
    <sound model='ac97'>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>
    </sound>
    <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='0x06' function='0x0'/>
    </memballoon>
  </devices>
</domain>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]