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] How to turn a machine running Centos from HV to PV?

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-users] How to turn a machine running Centos from HV to PV?
From: Mark Pryor <tlviewer@xxxxxxxxx>
Date: Thu, 29 Apr 2010 10:20:04 -0700 (PDT)
Delivery-date: Thu, 29 Apr 2010 10:21:28 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1272561605; bh=kXEgk1UF32l+8NgpkOfa5d6D1scFpaUfJf+XQ9i/UQM=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=jHRBHRaA2fwXolnqDjAk28TtnyvA3YNpNaVYLCDGhQyG0d9aB2KqaT7Dh23vu6TVOUJ9l56/3HyTODKBvtl8kJQSdGQDCZisAEYBN4t56MYAxlQEl6NTSVMHRF14/L+3yCRL2h/vIY1Jztm+zdYY9pEEw/VjKNftotHKPIvovC8=
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=hwfdSSEyGyJ+qlmK36/v3f5RYxe1ZHwzUhXFJHsbOQ6MqIslWAfNBr1OsCg4BJfZqgPzrzd4CXxKYRBEa25xRJo5BjMpzq7sazzjMbwrOvJ5F4gL6NDWjjx8ERmJs83M2XrDnbWsLDe2ZA/CG7bs9oQwCpwsxg0ZKA3D9mO7Tjw=;
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <20100429130128.GC3873@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>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx

--- On Thu, 4/29/10, Rainer Sokoll <rainer@xxxxxxxxxx> wrote:

> From: Rainer Sokoll <rainer@xxxxxxxxxx>
> Subject: [Xen-users] How to turn a machine running Centos from HV to PV?
> To: Xen-users@xxxxxxxxxxxxxxxxxxx
> Date: Thursday, April 29, 2010, 6:01 AM
> Hello,
> 
> really new to CentOS, I need a VM running CentOS. Right
> now, it is
> running in full virtualized mode, but I want to switch to
> paravitualization.
> What I did:
> yum install kernel-xen
> Changed menu.lst to boot xen kernel per default
> 
> My configuration in dom0 (OpenSuse):
> 
> name="centos5"
> uuid="6e50b775-3b29-f38a-610d-9368dda96dd1"
> memory=1536
> maxmem=1536
> vcpus=1
> on_poweroff="destroy"
> on_reboot="restart"
> on_crash="destroy"
> localtime=0
> keymap="de"
> builder="linux"
> bootloader="/usr/lib/xen/boot/domUloader.py"
> bootargs="--entry=xvda1:/boot/vmlinuz-2.6.18-164.15.1.el5xen,/boot/initrd-2.6.18-164.15.1.el5xen.img"
> extra=" "
> disk=[ 'phy:/dev/xen/centos5,hda,w', ]
> vif=[ 'bridge=br1,model=rtl8139', ]

bootloader = "/usr/bin/pygrub"
bootargs = "-q"
extra = " console=xvc0"
disk=[ 'phy:/dev/xen/centos5,xvda,w' ]
vif=[ 'bridge=br1' ]

the first time you bring up the br1, use
ifconfig

to get the mac address, then go add it back to your cfg
vif=[ 'bridge=br1,mac=vv:ww:xx:yy:zz' ]

this way your IP address will be fixed by your DHCP via mac.

-- 
Mark



      

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

<Prev in Thread] Current Thread [Next in Thread>