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] guest creation problem on pv dom0 kernel

To: Xen List <xen-users@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-users] guest creation problem on pv dom0 kernel
From: Tapas Mishra <mightydreams@xxxxxxxxx>
Date: Thu, 10 Mar 2011 01:56:45 +0530
Delivery-date: Wed, 09 Mar 2011 12:36:43 -0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type:content-transfer-encoding; bh=iy4AhQyA2UmLCPu0CzUDcvPnI+QK1xJg9Zu6CfVntA4=; b=Hy5PstPosYPbrF5GzSy/tEhnfTSZQK0WjrNqVBMQuQfHDZg1zKgP85kOgArKiVhV3a m0N3pY81i49AZonHrAJvNNum7C9TILg5/kDQ91CQc9BPLLXVoc3EOhYVfgBGYpM1ICjF lDM2lMD3sMWdxldqZxh6knSQP3nnQIvtUvubU=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=W97kAwYPBOD9cA8tes/0wPdWHHm5SU4mTiDiykbVkiUiK+6WD3BFUtUiCPPmgUe/3C yjQWX86xcneq6ubuckPZvVbhLqiJbSqKc/+x2Q4+mBwBEjUnetedkYFyusLEClPTE+RD YVW2cHwOETSsRLNe2aJnNtDImn1hbWf7PqUCs=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <AANLkTik4gN1+hgfHsbb+fRArgVo+2zQR7qqY0tuYcNQd@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: <AANLkTikADUT9nMPim6B9k8k=2Bao0LR9o0MTEazagatT@xxxxxxxxxxxxxx> <BAY148-w4326D4F20AEF5453D1F4C1EFC40@xxxxxxx> <AANLkTikn4pPDQ7x7g5=s4iW0Mzy+ivciS0UaXW06a0Ek@xxxxxxxxxxxxxx> <4D733FC9.4050701@xxxxxxxxxxx> <AANLkTik7qZzW2TSFmu5SxHRRNEAFi0RkHNiOVzVFRhu4@xxxxxxxxxxxxxx> <AANLkTik4gN1+hgfHsbb+fRArgVo+2zQR7qqY0tuYcNQd@xxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
On Wed, Mar 9, 2011 at 7:20 PM, Fajar A. Nugraha <list@xxxxxxxxx> wrote:
>
>
>> What should be the value of parameter kernel.As I am trying to create
>> a PV guest on a non VT 64 bit machine.
>> The guest is 32 bit PV.Do I need to compile a PV  DomU kernel or what
>> exactly do I give in place of kernel?
>
> See
> https://help.ubuntu.com/community/Installation/Netboot
> http://archive.ubuntu.com/ubuntu/dists/maverick/main/installer-i386/current/images/netboot/xen/
>
> Or download initrd.gz and vmlinuz from there, and use a config similar to this
Ok I downloaded the vmlinuz and initrd from

http://archive.ubuntu.com/ubuntu/dists/lucid/main/installer-i386/current/images/netboot/xen/
> #===============================================
> memory = "1000"
>
> vif = [ 'mac=00:16:3E:BD:96:42, bridge=eth0, vifname=u-e0' ]
> disk =  [
>        'phy:/dev/VG/ubuntu-test,xvda,w',
>        ]
>
> vcpus=1
>
> kernel = "/vm/install/ubuntu/vmlinuz"
> ramdisk = "/vm/install/ubuntu/initrd.gz"
>
> vfb=[ "type=vnc,vncunused=1,vnclisten=0.0.0.0" ]
> #===============================================
>
> Note the "bridge" parameter. It might be eth0, xenbr0, or some other
> bridge that you create manually (try runnning "brctl show").
 I am not clear here if I need to create a bridge before I begin the install.
By the time of writing this message I had not configured any bridge.

dd if=/dev/zero of=/mnt/1/vm1.img bs=4096k count=1024
dd if=/dev/zero of=/mnt/1/vm1-swap.img bs=1024k count=512

I want to also mention an entry of my /etc/fstab file

UUID=a20a4466-24bc-42c5-93e2-2193e99847b5 /mnt/1  ext2 defaults 0 0
the /mnt/1 is basically always mounted so I mentioned

here is my /etc/xen/ubuntu.vm


===============================================
memory = "512"
vif = [ 'mac=00:16:3E:BD:96:42, bridge=xenbr0, vifname=u-e0' ]
disk =  [
       'file:/mnt/1/vm1.img,xvda1,w','file:/mnt/1/vm1-swap.img,xvda2,w'
       ]
vcpus=1
kernel = "/home/tapas/Documents/ISO\'s/forvm/vmlinuz"
ramdisk = "/home/tapas/Documents/ISO\'s/forvm/initrd.gz"
vfb=[ "type=vnc,vncunused=1,vnclisten=0.0.0.0" ]
dhcp ="off"
ip="192.168.1.7"
netmask="255.255.255.0"
gateway="192.168.1.1"
hostname="vm01.ubuntu"

===============================================
Now when I do
xm create -c /etc/xen/ubuntu.vm
Two things

1) Error: Device 0 (vif) could not be connected. Hotplug scripts not working.
2) I do not see any thing happening on my screen i.e. in bash if it is
possible to see some out put
as progress then I will be able to understand some thing how can that
be possible?

> After
> installation completes, delete both "kernel" and "ramdisk" line, add
>
> bootloader = "/usr/bin/pygrub"
>
> --
> Fajar
>



-- 
http://mightydreams.blogspot.com

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