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

Re: [Xen-devel] Scrubbing free ram

To: Konrad Rzeszutek Wilk <konrad.wilk@xxxxxxxxxx>
Subject: Re: [Xen-devel] Scrubbing free ram
From: Bei Guan <gbtju85@xxxxxxxxx>
Date: Thu, 6 May 2010 09:48:36 +0800
Cc: Xen Devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Wed, 05 May 2010 18:49:44 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=L2QpX+886KmZNw1AGx0ULF49u5KU16LjLIPSydblDwY=; b=kIUW/aIK2ahp721S7oAIMxrLm/RVFMb9H2hCQk8rmkXmVtUJEJVCOdeAhw/6qRZk+U TnZTStwKUJDnUQyxmcSmTP0KmrjZlIkKatGOk8Q8GfP290H1SCbZfyqgfCvWWbFfmnLk q30NETDXLj11wGcoeZWEpwbR7cGT6vevse/qM=
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 :cc:content-type; b=qpVjGNRlJvoTzvYTIPc/JygBWktz5BiSKekkh99RW0JbaS5lDZfpxOmQOpWIIK+3Xz sgdUf4YxLSY/0wWMXMworadjT1Kg6n/b7OxKda4wn7QELSGChYLuRxEyN/ME4yI1AO37 w0tXgbLYfLpxwDOx+bQXDHQJCklqwxo7UTeGE=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <20100505141224.GB19206@xxxxxxxxxxxxxxxxxxx>
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: <C7FD8858.1155D%keir.fraser@xxxxxxxxxxxxx> <C7FD8980.11560%keir.fraser@xxxxxxxxxxxxx> <w2i48beb8b21004280844qe849adadm3a5530f4ad0e7ea9@xxxxxxxxxxxxxx> <20100504175835.GA32012@xxxxxxxxxxxxxxxxxxx> <m2w48beb8b21005050000tcbd8b6r985e31cfb9cf5789@xxxxxxxxxxxxxx> <20100505141224.GB19206@xxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
>
> Now, I change my domain0 OS to fedora11_x86-64bit and I can successfully
> install the xen 4.0. However I have another problem. When I running the

So you solved your problem by building the 64-bit Dom0. Is your
userspace 64-bit or is it 32-bit? When you say 'change my domain0' was
that a re-install of Fedora Core 11?


Yes, I have re-install the 64-bit Fedora Core 11. My userspace is 64-bit now.


 
> command "xend start", I got the error messages:
>
> [root@localhost ~]# xend start
> ERROR Internal error: Could not obtain handle on privileged command

Run 'modprobe xenfs' and 'modprobe xen-evtchn'


I don't know why my Dom0 don't have the two modules. But I can find them in the source of pvops kernel.
The error of  running the two commands as following.

[root@localhost ~]# modprobe xenfs
WARNING: Deprecated config file /etc/modprobe.conf, all config files belong into /etc/modprobe.d/.
FATAL: Module xenfs not found.
[root@localhost ~]# modprobe xen-evtchn
WARNING: Deprecated config file /etc/modprobe.conf, all config files belong into /etc/modprobe.d/.
FATAL: Module xen_evtchn not found.

 
> interface (2 = No such file or directory)
> Traceback (most recent call last):
>   File "/usr/sbin/xend", line 36, in <module>
>     from xen.xend.server import SrvDaemon
>   File "usr/lib64/python2.6/site-packages/xen/xend/server/SrvDaemon.py",
> line 26, in <module>
>   File "usr/lib64/python2.6/site-packages/xen/xend/server/relocate.py", line
> 28, in <module>
>   File "usr/lib64/python2.6/site-packages/xen/xend/XendDomain.py", line 36,
> in <module>
>   File "usr/lib64/python2.6/site-packages/xen/xend/XendCheckpoint.py", line
> 20, in <module>
>   File "usr/lib64/python2.6/site-packages/xen/xend/image.py", line 46, in
> <module>
> xen.lowlevel.xc.Error: (1, 'Internal error', 'Could not obtain handle on
> privileged command interface (2 = No such file or directory)')
>
> I googled the problem and found it seems to be a bug, which refered here:
> http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=1436
>
>
>
> If I running another command "/etc/init.d/xend start", it can successfully
> start the xend service. But I can not create a PV DomU or HVM DomU. The
> error message as following.

That one is fairly easy. You don't have the right 'root' entry for your
guest (you are missing the right root="/dev/<something, something>").

It looks to be that you are trying to do '/dev/sda1' but since you
changed your disk=['...'] entry to have 'xvda', it should be
'/dev/xvda1'


Yes, I solved this problem. However, I still can not create the PV domU. The process of creating pv domU stopped at the
" * Restarting OpenBSD Secure Shell server sshd   ...done. "  Complete messages is attached. My  PV config file is:

kernel = "/boot/vmlinuz-2.6.31.13"
memory = "256"
name = "ubuntu.9-04"
vif = ['']
#dhcp = "dhcp"
disk = ['file:/root/Xen/img/ubuntu-32/ubuntu.9-04.x86.img,xvda1,w']
root = "/dev/xvda1 ro"
extra = 'xencons=tty'


 
>
> 1. Error of starting a PV DomU
> [root@localhost ubuntu-32]# xm create ubuntu.9-04.x86.xen3.cfg -c
> ……  ……
> [    1.831122] Sending DHCP requests ...
> [   14.320061] ... timed out!
> [   75.986391] IP-Config: Reopening network devices...
> [   77.488086] Sending DHCP requests ...
> [   93.965059] ... timed out!
> [  165.740440] IP-Config: Auto-configuration of network failed.
> [  165.740565] md: Waiting for all devices to be available before autodetect
> [  165.740587] md: If you don't use raid, use raid=noautodetect
> [  165.741555] md: Autodetecting RAID arrays.
> [  165.741577] md: Scanned 0 and added 0 devices.
> [  165.741596] md: autorun ...
> [  165.741614] md: ... autorun DONE.
> [  165.741921] Root-NFS: No NFS server available, giving up.
> [  165.741984] VFS: Unable to mount root fs via NFS, trying floppy.
> [  165.742429] VFS: Cannot open root device "sda1" or unknown-block(2,0)
> [  165.742452] Please append a correct "root=" boot option; here are the
> available partitions:
> [  165.742529] ca01         1025024 xvda1 driver: vbd

                                     ^^^^ - use that one instead of
sda1

> [  165.742566] Kernel panic - not syncing: VFS: Unable to mount root fs on
> unknown-block(2,0)
> [  165.742590] Pid: 1, comm: swapper Not tainted 2.6.31.13 #1
> [  165.742610] Call Trace:
> [  165.742642]  [<ffffffff81591fd2>] panic+0x75/0x130
> [  165.742674]  [<ffffffff8195fafe>] mount_block_root+0x1ce/0x1e5
> [  165.742705]  [<ffffffff8195fb80>] mount_root+0x6b/0x8b
> [  165.742734]  [<ffffffff8195fd10>] prepare_namespace+0x170/0x19d
> [  165.742765]  [<ffffffff8195efc0>] kernel_init+0x1b5/0x1c5
> [  165.742797]  [<ffffffff81033dea>] child_rip+0xa/0x20
> [  165.742827]  [<ffffffff81032fa7>] ? int_ret_from_sys_call+0x7/0x1b
> [  165.742858]  [<ffffffff8103375d>] ? retint_restore_args+0x5/0x6
> [  165.742889]  [<ffffffff81033de0>] ? child_rip+0x0/0x20
>
> (Attached is the complete messages)
>
> 2. Error of starting a HVM DomU
> [root@localhost windowsxp]# xm create winxp2_xen4.hvm
> Using config file "./winxp2_xen4.hvm".
> Error: Domain 'WinXP_HVMDomain' does not exist.
>
> ("WinXP_HVMDomain" is my HVM DomU name)

No idea without cranking up some debug options. Look up
http://wiki.xensource.com/xenwiki/XenParavirtOps at the debug option.

Attachment: message
Description: Binary data

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>