WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] Re: Reuse QEMU image for HVM?

To: "List: Xen Developers" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] Re: Reuse QEMU image for HVM?
From: "Jun Koi" <junkoi2004@xxxxxxxxx>
Date: Fri, 5 Dec 2008 16:46:59 +0900
Delivery-date: Thu, 04 Dec 2008 23:48:08 -0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=ut5V0A5OJfHAoeYsv1+qfPrgAQMJgG7LH3u7jbaXC7A=; b=Iv7ASdDUypcyqwhoe35bXAaWrZSsNJVV/tsKVREH3mQ6HwSGBAtm4xeO0BuAjf18CE J8whCFalBwYuaYjYYKGiru/K1QyewaF8SdALVkNk6k++RZnmwVfjLH2D1UTGlSXYVE9I Z3glc5VpKh0W//VTEK9o8ttg0jc8g/pFwRt7c=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=sFyt3BrbB6iMO0hhofW4iYK4TzkjuY6zYNkyyi56v8u/LTSeNVXq8HRLS0Oe6kl/Y6 8LXFwncriOWBac3xLth8AV2vRAkYjSzmSE8uemltchHUaeWuFJZC1ogcdIfGumh95Yuq VAevr6xgYxtm76I0Zs855+/pxxKNMKX150QvQ=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <fdaac4d50812042252id6ee0d5u5e0e0c99ee5a2e21@xxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <fdaac4d50812042252id6ee0d5u5e0e0c99ee5a2e21@xxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
On Fri, Dec 5, 2008 at 3:52 PM, Jun Koi <junkoi2004@xxxxxxxxx> wrote:
> Hi,
>
> I have an Windows VM in QEMU format (qcow2: btw, how can I confirm
> that is qcow2, but not other formats?). How can I reuse that to run as
> HVM in Xen?
>

It seems we just run QEMU image normally?

My notes:
- It seems that 3.3.0 (or -unstable tree) no longer sets bridge name
as "xenbr0", but renames it to "vnet0"?
- It took me a long time to notice that hvmloader failed to compile,
as bcc is missing. But the error message that mentions "dev86 package
is needed" was very misleading, and it took me a while to figure it
out that what I really need is "bcc". So I think it is better to fix
this error message so it is more clear to users.

I tried to create HVM from my QEMU image, but have some problems.
Below is my configuration file for my QEMU image (winxp). I started it
with "xm create xp3.cfg", but only saw an VNC window appeared for 1
sec, then crashed when starting to boot the image (BIOS loading seems
to be done at the crashed time). Attached is also qemu-dm.log file.
Please anybody tell me what is the problem?

Thanks,
Jun


xp3.cfg
---------
kernel = '/usr/lib/xen/boot/hvmloader'
builder = 'hvm'
memory = '800'
device_model='/usr/lib/xen/bin/qemu-dm'
disk = ['file:/home/xen/img/img.xp3,ioemu:hda,w']
name = "xp3"
# vif = ['type=ioemu, bridge=xenbr0']
vif = ['type=ioemu, bridge=vnet0']
boot="d"
vnc=1
vncviewer=1
sdl=0



/var/log/xen/qemu-dm-xp3.log
--------------------------------------
domid: 7
qemu: the number of cpus is 1
config qemu network with xen bridge for  tap7.0 vnet0
Watching /local/domain/0/device-model/7/logdirty/next-active
Watching /local/domain/0/device-model/7/command
xs_read(): vncpasswd get error.
/vm/bb7c12a8-25e0-d91b-8ab5-0298eb5ae815/vncpasswd.
qemu_map_cache_init nr_buckets = 4000 size 196608
shared page at pfn 31ffe
buffered io page at pfn 31ffc
Time offset set 0
Register xen platform.
Done register platform.
xs_read(/local/domain/0/device-model/7/xen_extended_power_mgmt): read error
I/O request not ready: 0, ptr: 0, port: 0, data: 0, count: 0, size: 0
stolen video RAM at 317f8000
mapping video RAM from 317f8000
mapping vram to f0000000 - f0800000

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel