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-users

Re: [Xen-users] Xen 3.1.4: HVM Configuration

To: deshantm@xxxxxxxxx
Subject: Re: [Xen-users] Xen 3.1.4: HVM Configuration
From: "Omer Khalid" <Omer.Khalid@xxxxxxx>
Date: Thu, 21 Aug 2008 18:12:47 +0200
Cc: "xen-users@xxxxxxxxxxxxxxxxxxx" <xen-users@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Thu, 21 Aug 2008 09:13:29 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender :to:subject:cc:in-reply-to:mime-version:content-type:references :x-google-sender-auth; bh=LpHhGvELMqYlJ/XXJ8UUD+iutja06MfbdE8N2YSZmQ4=; b=sm46RO3uWgx96T0p4QMja+slQheaBhLdhikvXKUGtCSEeZkH9DSapxe4cqRAYsAyqw gR9A4X/ss6wJRaMs+MHora8Fp9N1j2COSxc1twjBSnVDKGNDhqtd2zE30PrdLbuQnUiQ qSNwNVl+hCNw3Lva42GK/4EJ0YrM6K6EUMdM8=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version :content-type:references:x-google-sender-auth; b=ZNrIGWUX1mCFvdLFgeTbo2jY153GogJBpCXmi6RTGad4pS0vijxnbxsKMdVbGFFBoL 8l1urnBaddmDQ2R2bCR49oyZdQrzTz9sGpAVuiAjblPXbK9M+UstxcjnP9R65LBAUPAT F4YY1y3I2AvDyqDCBPzSjkVSjUk+WlYcD1Dp8=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <1e16a9ed0808171742m58c7904bre03a607fb919b7f7@xxxxxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <77e5896b0808170851k2388ce2end4ebdc2d299e123b@xxxxxxxxxxxxxx> <1e16a9ed0808171742m58c7904bre03a607fb919b7f7@xxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Hi,

I manage to configure my xen 3.1.4 HVM installation and launch the VM but "xm console <id>" seem not to work! I have a HVM Linux guest running. The error I get is following:

xenconsole: Could not read tty from store: No such file or directory

Is some thing missing in my configuration? Further, I am using the following xen configuration file:

kernel="/usr/lib/xen/boot/hvmloader"
builder='hvm'
device_model='/usr/lib64/xen/bin/qemu-dm'
memory=2048
name='Atlas-14.2.10'
hostname='xxx.cern.ch'
vif=[ 'type=ioemu,bridge=xenbr0' ]
gateway= "128.xxx.xxx.xxx"
netmask = "255.xxx.xxx.xxx"
disk=['phy:/dev/vg1/slc4_hvm,ioemu:hda1,w','phy:/dev/vg1/slc4_swap, ioemu:hda2,w','phy:/dev/vg1/athena-14.2.10,ioemu:hdb1,w']
root= "/dev/hda1 ro"
boot='d'
on_reboot   = 'restart'
on_crash    = 'restart'
>

Thanks for your help. Regards

Omer

On Mon, Aug 18, 2008 at 2:42 AM, Todd Deshane <deshantm@xxxxxxxxx> wrote:
On Sun, Aug 17, 2008 at 11:51 AM, Omer Khalid <Omer.Khalid@xxxxxxx> wrote:
> Hi,
> I just installed Xen 3.1.4 on an x86_64 machine, and as I verified for the
> HVM configuration file for my VM e.g.
> kernel="/usr/lib/xen/boot/hvmloader"
> builder='hvm'
> device_model='/usr/lib/xen/bin/qemu-dm'
> memory=4188
> name='SLC4_64'
> vif=[ 'type=ioemu,bridge=xenbr0' ]
> disk=['phy:/dev/sda6,ioemu:hda,w','file:/usr/local/iso/edgy_amd64.iso,hdc:cdrom,r']
> boot='d'
> #vcpu=
> #cpu=
> Q1: I noticed that there is no /usr/lib/xen/bin/qemu-dm file for the
> device_model entry. Why this line is required in the configuration file, and
> how could I get this qemu-dm file.

The device model entry tells Xen which backend device model to use.
For paravirtual (PV)
guests this is the standard front/back PV device model, so it is
assumed. For full
virtualization (HVM) guests it is typically the QEMU device model.

The location of the qemu-dm binary depends on how you installed Xen
(by source or by
a distribution package.).

a simple way to find it is to do:
updatedb
locate qemu-dm

it is typically in

/usr/<your architecture lib directory>/xen/bin/


> Q2: Secondly, in the disk entry: can I use "xvda1" or "xvda2" rather than
> "ioemu:hda"? Why "ioemu:hda" necessary?

Since HVM guests use the QEMU device model by default you can't use xvda
devices unless you install the PV drivers on the HVM guest. You can get the
latest GPL PV drivers from:

http://wiki.xensource.com/xenwiki/XenWindowsGplPv

Cheers,
Todd

--
Todd Deshane
http://todddeshane.net
check out our book: http://runningxen.com



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