From: K D Subject: Problem with QEMU / KVM Date: Tue, 4 May 2010 14:30:49 -0700 (PDT) Message-ID: <709452.86446.qm@web55508.mail.re4.yahoo.com> References: <20100421003632.GV11723@shareable.org> <4BD02936.1050307@redhat.com> <4BE02202.9030802@linux.vnet.ibm.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0-1232763801-1273008649=:86446" Cc: qemu-devel@nongnu.org, kvm@vger.kernel.org, Gerd Hoffmann To: Anthony Liguori , Gerhard Wiesinger Return-path: In-Reply-To: <4BE02202.9030802@linux.vnet.ibm.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+gceq-qemu-devel=gmane.org@nongnu.org Errors-To: qemu-devel-bounces+gceq-qemu-devel=gmane.org@nongnu.org List-Id: kvm.vger.kernel.org --0-1232763801-1273008649=:86446 Content-Type: text/plain; charset=us-ascii Hi I built 2.6.27.10 kernel with KVM configured as built-in. CONFIG_HAVE_KVM=y CONFIG_VIRTUALIZATION=y CONFIG_KVM=y CONFIG_KVM_INTEL=y I built qemu-kvm 0.12.2 from sources pointing to above kernel. When I spawn a VM, it hangs at boot. Pl see below. I copied qemu-kvm binary and bios, vga etc binaries. I installed grub on a manually created img file. This image has nothing but grub, its stage1,1_5,stage2, my kernel and initrd files. Am spawning VM as below: qemu-system-x86_64 -hda vmhd.img -L . -curses -show-cursor grub> root (hd0,0) Filesystem type is ext2fs, partition type 0x83 grub> kernel /boot/vmos root=/dev/ram0 ramdisk_size=32768 rw single [Linux-bzImage, setup=0x1800, size=0x1cb9b0] grub> initrd /boot/initrdfs.gz [Linux-initrd @ 0x6751000, 0x189b587 bytes] grub> boot I copied all these binaries from my dev host to this linux box. -rw-r--r-- 1 root root 131072 May 2 21:31 bios.bin -rw-r--r-- 1 root root 1025 May 2 21:31 linuxboot.bin -rw-r--r-- 1 root root 1024 May 2 21:31 multiboot.bin -rw-r--r-- 1 root root 524288 May 2 21:31 ppc_rom.bin -rw-r--r-- 1 root root 72192 May 2 21:31 pxe-e1000.bin -rw-r--r-- 1 root root 56832 May 2 21:31 pxe-i82559er.bin -rw-r--r-- 1 root root 56320 May 2 21:31 pxe-ne2k_pci.bin -rw-r--r-- 1 root root 56832 May 2 21:31 pxe-pcnet.bin -rw-r--r-- 1 root root 56320 May 2 21:31 pxe-rtl8139.bin -rw-r--r-- 1 root root 56320 May 2 21:31 pxe-virtio.bin -rwxr-xr-x 1 root root 8960 May 2 21:31 vapic.bin -rw-r--r-- 1 root root 35840 May 2 21:31 vgabios-cirrus.bin -rw-r--r-- 1 root root 39936 May 2 21:31 vgabios.bin Appreciate your help. ________________________________ From: Anthony Liguori To: Gerhard Wiesinger Cc: qemu-devel@nongnu.org; Gerd Hoffmann Sent: Tue, May 4, 2010 6:32:50 AM Subject: Re: [Qemu-devel] Problem with QEMU on KVM On 05/04/2010 12:09 AM, Gerhard Wiesinger wrote: > On Sat, 24 Apr 2010, Gerhard Wiesinger wrote: >>> Guess problems comes from the following commit (not yet verified): >>> commit 37c34d9d5d87ea9d51760310c8863b82cb8c055a >>> Author: Anthony Liguori >>> Date: Wed Mar 10 09:38:29 2010 -0600 >>> >>> input: make vnc use mouse mode notifiers >>> >>> When we switch to absolute mode, we send out a notification (if the client >>> supports it). Today, we only send this notification when the client sends us >>> a mouse event and we're in the wrong mode. >>> >>> Signed-off-by: Anthony Liguori >> >> >> Ok, verified: >> git revert -n 37c34d9d5d87ea9d51760310c8863b82cb8c055a >> => works well. > > Still got no feedback and saw no further changes to fix this problem. Fix is on the list. Regards, Anthony Liguori > Thnx. > > Ciao, > Gerhard > > -- http://www.wiesinger.com/ > --0-1232763801-1273008649=:86446 Content-Type: text/html; charset=us-ascii
Hi

I built 2.6.27.10 kernel with KVM configured as built-in.

CONFIG_HAVE_KVM=y
CONFIG_VIRTUALIZATION=y
CONFIG_KVM=y
CONFIG_KVM_INTEL=y

I built qemu-kvm 0.12.2 from sources pointing to above kernel. When I spawn a VM, it hangs at boot. Pl see below. I copied qemu-kvm binary and bios, vga etc binaries. I installed grub on a manually created img file. This image has nothing but grub, its stage1,1_5,stage2, my kernel and initrd files.

Am spawning VM as below:

qemu-system-x86_64 -hda vmhd.img -L . -curses -show-cursor

grub> root (hd0,0)
 Filesystem type is ext2fs, pa rtition type 0x83

grub> kernel /boot/vmos root=/dev/ram0 ramdisk_size=32768 rw single
   [Linux-bzImage, setup=0x1800, size=0x1cb9b0]

grub> initrd /boot/initrdfs.gz
   [Linux-initrd @ 0x6751000, 0x189b587 bytes]

grub> boot


I copied all these binaries from my dev host to this linux box.
 
-rw-r--r-- 1 root root 131072 May  2 21:31 bios.bin
-rw-r--r-- 1 root root   1025 May  2 21:31 linuxboot.bin
-rw-r--r-- 1 root root   1024 May  2 21:31 multiboot.bin
-rw-r--r-- 1 root root 524288 May  2 21:31 ppc_rom.bin
-rw-r--r-- 1 root root  72192 May  2 21:31 pxe-e1000.bin
-rw-r--r-- 1 root root  56832 May  2 21:31 pxe-i82559er.bin
-rw-r--r-- 1 root root  56320 May  2 21:31 pxe-ne2k_pci.bin
-rw-r--r-- 1 root root  56832 May  2 21:31 pxe-pcnet.bin
-rw- r--r-- 1 root root  56320 May  2 21:31 pxe-rtl8139.bin
-rw-r--r-- 1 root root  56320 May  2 21:31 pxe-virtio.bin
-rwxr-xr-x 1 root root   8960 May  2 21:31 vapic.bin
-rw-r--r-- 1 root root  35840 May  2 21:31 vgabios-cirrus.bin
-rw-r--r-- 1 root root  39936 May  2 21:31 vgabios.bin


Appreciate your help.


From: Anthony Liguori <aliguori@linux.vnet.ibm.com>
To: Gerhard Wiesinger <lists@wiesinger.com>
Cc: qemu-devel@nongnu.org; Gerd Hoffmann <kraxel@redhat.com>
Sent: Tue, May 4, 2010 6:32:50 AM
Subject: Re: [Qemu-devel] Problem with QEMU on KVM

On 05/04/2010 12:09 AM, Gerhard Wiesinger wrote:
> On Sat, 24 Apr 2010, Gerhard Wiesinger wrote:
>>> Guess problems comes from the following commit (not yet verified):
>>> commit 37c34d9d5d87ea9d51760310c8863b82cb8c055a
>>> Author: Anthony Liguori <aliguori@us.ibm.com>
>>> Date:  Wed Mar 10 09:38:29 2010 -0600
>>>
>>>    input: make vnc use mouse mode notifiers
>>>
>>>    When we switch to absolute mode, we send out a notification (if the client
>>>    supports it).  Today, we only send this notification when the client sends us
>>>  &n bsp; a mouse event and we're in the wrong mode.
>>>
>>>    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
>>
>>
>> Ok, verified:
>> git revert -n 37c34d9d5d87ea9d51760310c8863b82cb8c055a
>> => works well.
>
> Still got no feedback and saw no further changes to fix this problem.

Fix is on the list.

Regards,

Anthony Liguori

> Thnx.
>
> Ciao,
> Gerhard
>
> -- http://www.wiesinger.com/
>




--0-1232763801-1273008649=:86446--