Rainer Sokoll
2010-Apr-29 13:01 UTC
[Xen-users] How to turn a machine running Centos from HV to PV?
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'', ] vfb=[''type=vnc,vncunused=1''] If I want to boot the VM, the lat 5 lines from the console output are these: SCSI subsystem initialized device-mapper: uevent: version 1.0.3 device-mapper: ioctl: 4.11.5-ioctl (2007-12-12) initialised: dm-devel@redhat.com device-mapper: dm-raid45: initialized v0.2594l Kernel panic - not syncing: Attempted to kill init! Any hint is appreciated, Rainer _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Mark Pryor
2010-Apr-29 17:20 UTC
Re: [Xen-users] How to turn a machine running Centos from HV to PV?
--- On Thu, 4/29/10, Rainer Sokoll <rainer@sokoll.com> wrote:> From: Rainer Sokoll <rainer@sokoll.com> > Subject: [Xen-users] How to turn a machine running Centos from HV to PV? > To: Xen-users@lists.xensource.com > 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@lists.xensource.com http://lists.xensource.com/xen-users
Martinx - ジェームズ
2010-Apr-29 21:41 UTC
Re: [Xen-users] How to turn a machine running Centos from HV to PV?
The Xen Live CD teachs how to do that easily! http://wiki.xensource.com/xenwiki/LiveCD <http://wiki.xensource.com/xenwiki/LiveCD> - Example of how to convert Linux virtual machines from HVM to PVM. With the new paravirt_ops, this can be done smoothly. Cheers! - Thiago On 29 April 2010 10:01, Rainer Sokoll <rainer@sokoll.com> wrote:> 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'', ] > vfb=[''type=vnc,vncunused=1''] > > If I want to boot the VM, the lat 5 lines from the console output are > these: > > SCSI subsystem initialized > device-mapper: uevent: version 1.0.3 > device-mapper: ioctl: 4.11.5-ioctl (2007-12-12) initialised: > dm-devel@redhat.com > device-mapper: dm-raid45: initialized v0.2594l > Kernel panic - not syncing: Attempted to kill init! > > Any hint is appreciated, > > Rainer > > > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Fajar A. Nugraha
2010-Apr-30 08:26 UTC
Re: [Xen-users] How to turn a machine running Centos from HV to PV?
On Thu, Apr 29, 2010 at 8:01 PM, Rainer Sokoll <rainer@sokoll.com> wrote:> 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.See http://pastebin.com/f6a5022bf -- Fajar _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users