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] Manual p2v

To: Jeff Sturm <jeff.sturm@xxxxxxxxxx>
Subject: Re: [Xen-users] Manual p2v
From: Paras pradhan <pradhanparas@xxxxxxxxx>
Date: Wed, 19 May 2010 14:12:45 -0500
Cc: "Fajar A. Nugraha" <fajar@xxxxxxxxx>, Xen Users <xen-users@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Wed, 19 May 2010 12:13:59 -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=WDPy0MF3PRCaAw3vzkblYlNeWkJN4AG+plc/HXhjax8=; b=YvesR5u2nkRYMK+M4/9NzqQHEIv2xuJTFikglnkySIYECD5dkP08Uqis5n3nQe8k8B 8SoyvuQmltxkSNAWlfW1Yawh8DRZsPW7c7ojev41TKvLjsGYXCc75daRxLVXL9EWjhLX Sr1s+ryeGJSB2giaTT8GveBtY4pWwvGUYhVMw=
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=vEPWtkoEs7U/9lo25Y0VbzGOvaTU4KXe7zxcKSIh1qD+Kyp7CSdhtvMlE6ViEaodm6 CIECQ8KvfoIvw+iZ+1AbkuqJAhm01zKjUMttaRBBYaYSpBwRLEldrZqQZ1sGCNV87p1q U5gNEO3dhqfaHGc0Q3EKXhrwLi8P4kgxr8qZI=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <64D0546C5EBBD147B75DE133D798665F055D928D@xxxxxxxxxxxxxxxxx>
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: <AANLkTikMmc23BnCoYTTJKuL7EWUIp49eNKHt9edDIP6n@xxxxxxxxxxxxxx> <64D0546C5EBBD147B75DE133D798665F055D91F7@xxxxxxxxxxxxxxxxx> <AANLkTimVN1di1CP5laygFrw0U2cQJa5HLXosqHoOr9w9@xxxxxxxxxxxxxx> <AANLkTikekI89YKcKC9V8EEpc3lZUwh1UHTbfDfXwVkWN@xxxxxxxxxxxxxx> <AANLkTil8Fc_u4CzcPwDMynikudczAR9xilfpErn_n7Xr@xxxxxxxxxxxxxx> <AANLkTinH45qtuQIMUFgjqwmc26TZtcAuqi19qGWooReW@xxxxxxxxxxxxxx> <AANLkTimUKlh-CY2A7Gsp-zn_jNy2sSuGdVAsYppLdbpP@xxxxxxxxxxxxxx> <64D0546C5EBBD147B75DE133D798665F055D928D@xxxxxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Jeff,

That was the problem. 

Thanks guys for the help.

Paras.


On Wed, May 19, 2010 at 2:01 PM, Jeff Sturm <jeff.sturm@xxxxxxxxxx> wrote:

Do you have SELinux enabled?  If so, you may need to relabel the filesystem:

 

touch /.autorelabel

 

before you boot.

 

From: xen-users-bounces@xxxxxxxxxxxxxxxxxxx [mailto:xen-users-bounces@xxxxxxxxxxxxxxxxxxx] On Behalf Of Paras pradhan
Sent: Wednesday, May 19, 2010 1:36 PM
To: Fajar A. Nugraha
Cc: Xen Users
Subject: Re: [Xen-users] Manual p2v

 

I think I am close to get this converted VM running. When I try to login to domU I am getting login permission denied..

 

---

localhost.localdomain login: root

Password: 

Last login: Wed May 19 13:17:37 on xvc0

login: no shell: Permission denied.

--

 

Don't know what is wrong here.

 

Thanks!

Paras.

 

 

On Wed, May 19, 2010 at 11:53 AM, Paras pradhan <pradhanparas@xxxxxxxxx> wrote:

Ignore my last email. I missed /boot in at grub.conf.

 

Thanks

Paras.

 

On Wed, May 19, 2010 at 11:49 AM, Paras pradhan <pradhanparas@xxxxxxxxx> wrote:

Here is where I am stuck at:

 

I have a xenifed kernel installed for the PV. When I do: xm create domUname -c

 

I get this:

 

---

 

[root@cvtst1 ~]# xm create centos1 -c

Using config file "/etc/xen/centos1".

Traceback (most recent call last):

  File "/usr/bin/pygrub", line 684, in ?

    data = "">

IOError: [Errno 2] No such file or directory

No handlers could be found for logger "xend"

Error: Boot loader didn't return any data!

Usage: xm create <ConfigFile> [options] [vars]

 

---

 

Looks like it is not finding kernel, initrd (?)

 

---

grub.conf entry is:

title CentOS (2.6.18-194.3.1.el5xen)

          root (hd0,0)

          kernel /xen.gz-2.6.18-194.3.1.el5

          module /vmlinuz-2.6.18-194.3.1.el5xen ro root=/dev/xvda1 console=xvc0

          module /initrd-2.6.18-194.3.1.el5xen.img

---

 

config file for domU is:

 

--

[root@cvtst1 vms]# more centos1

name = "centos1"

maxmem = 1024

memory = 256

vcpus = 1

cpus="1-2"

bootloader = "/usr/bin/pygrub"

>

>

>

disk = [ "tap:aio:/vms/centos1.img,xvda1,w", "tap:aio:/vms/centos1.swap,xvdb1,w" ]

--

 

 

Thanks!

Paras

 

 

On Tue, May 18, 2010 at 10:03 PM, Fajar A. Nugraha <fajar@xxxxxxxxx> wrote:

On Wed, May 19, 2010 at 3:40 AM, Paras pradhan <pradhanparas@xxxxxxxxx> wrote:
> Hi Jeff,
> Thanks for the reply. What I did is:
> * dd a image file and mounted as a loop file.
> * copied everything including /boot except /proc /sys
> I will be using Paravirt and Pygrub. So I am a bit confused how to handle
> /boot using pygrub.

which part are you confused about? As long as you put the disk image
containing /boot first in your domU config file, pygrub should pick it
up just fine. The more important issue, since you'll be using paravirt
(PV) guest, is to prepare your system so it has PV-compatible kernel
and config (grub.conf, fstab, etc.). See http://pastebin.com/f6a5022bf
for example. The example is for converting HVM domU to PV, but some of
the info should also apply to converting physical machine to PV.

--
Fajar

 

 

 


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