From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Teo En Ming (Zhang Enming)" Subject: Re: Cannot Start Linux Paravirtualized (PV) Guests with Xen 4.2-unstable Date: Mon, 19 Mar 2012 08:09:25 +0800 Message-ID: <4F667935.6070207@gmail.com> References: <4F65CAB6.9050600@gmail.com> <4F65F407.4020306@gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============6629648067700426997==" Return-path: In-Reply-To: <4F65F407.4020306@gmail.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: "Teo En Ming (Zhang Enming)" Cc: "xen-users@lists.xen.org" , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org This is a multi-part message in MIME format. --===============6629648067700426997== Content-Type: multipart/alternative; boundary="------------050406040801040706070007" This is a multi-part message in MIME format. --------------050406040801040706070007 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Any ideas? There has been very few documentation on XL domain configuration files on the internet. Yours sincerely, Teo En Ming (Zhang Enming) On 18/03/2012 22:41, Teo En Ming (Zhang Enming) wrote: > Hi, > > I have attached error logs. Please help. > > Thank you very much. > > Yours sincerely, > > Teo En Ming (Zhang Enming) > > > On 18/03/2012 19:44, Teo En Ming (Zhang Enming) wrote: >> Hi, >> >> I cannot start Linux PV guests. "sudo xl create -c" reports that a >> domain has successfully started but "ps -ef | grep qemu" returns no >> output and "sudo xl list" doesn't show that the PV domain has started. >> >> Please review the following installation steps which I have written >> and see if there are any mistakes. >> >> *XL****Domain****Configuration****File****for****Fedora****16****x86_64****PV****domU****(Incomplete****Configuration,****Not****Tested,****Do****Not****Use)* >> >> >> You will need to install apache2 and create a local http mirror. >> >> >> sudo apt-get install apache2 >> >> >> cd /media >> >> sudo mkdir fedora >> >> cd ~/Downloads >> >> sudo mount -o loop _Fedora-16-x86_64-DVD.iso >> _ >> /media/fedora >> >> cd >> >> mkdir -p vms/f16 >> >> cd /media/fedora/images/pxeboot >> >> cp vmlinuz initrd.img ~/vms/f16/ >> >> >> >> sudo nano /etc/xen/Fedora16x86_64 >> >> >> # Kernel image to boot >> >> >> kernel = "/home/teo-en-ming/vms/f16/vmlinuz" >> >> >> >> >> # Ramdisk (optional) >> >> >> ramdisk = "/home/teo-en-ming/vms/f16/initrd.img" >> >> >> >> #bootloader="/usr/bin/pygrub" >> >> >> cd /etc/xen/images/ >> >> sudo dd if=/dev/zero of=fedora16x86_64.img bs=1024k seek=10000 count=0 >> >> >> To install Fedora 16 x86_64 as a paravirtualized guest domain, >> >> >> sudo xl create -c Fedora16x86_64 >> >> >> After installing Fedora 16 x86_64 PV domU, >> >> >> sudo nano /etc/xen/Fedora16x86_64 >> >> >> # Kernel image to boot >> >> >> #kernel = "/home/teo-en-ming/vms/f16/vmlinuz" >> >> >> >> >> # Ramdisk (optional) >> >> >> #ramdisk = "/home/teo-en-ming/vms/f16/initrd.img" >> >> >> >> bootloader="/usr/bin/pygrub" >> >> >> # XL domain configuration file for Fedora 16 x86_64 PV domU >> >> # Please refer to "man xl.cfg" for further explanations. >> >> # See also docs/misc/xl-network-configuration.markdown and >> >> # docs/misc/xl-disk-configuration.txt >> >> >> # Written by Teo En Ming (Zhang Enming) >> >> # Email: teo.en.ming@gmail.com >> >> # Mobile Phone: +65-8369-2618 >> >> # Country: Singapore >> >> # Date: 18 Mar 2012 Sun >> >> >> name="Fedora16x86_64" >> >> >> builder="generic" >> >> >> vcpus=2 >> >> >> memory=1024 >> >> >> on_poweroff="destroy" >> >> on_reboot="restart" >> >> on_crash="destroy" >> >> >> disk=[ 'format=raw, vdev=hda, access=rw, >> target=/etc/xen/images/fedora16x86_64.img' ] >> >> >> vif=[ 'bridge=virbr0' ] >> >> >> vfb=[ >> 'vnc=1,vnclisten=localhost,vncdisplay=2,vncunused=1,vncpasswd=,sdl=0' ] >> >> >> gfx_passthru=0 >> >> >> # Step 1 >> >> # To install Fedora 16 x86_64 PV domU, configure the kernel, ramdisk, >> and extra keys below and comment out bootloader. >> >> # Kernel image to boot >> >> kernel = "/home/teo-en-ming/vms/f16/vmlinuz" >> >> >> # Ramdisk (optional) >> >> ramdisk = "/home/teo-en-ming/vms/f16/initrd.img" >> >> >> # Kernel command line options >> >> #extra = "root=/dev/xvda1" >> >> >> # Step 2 >> >> # To boot the already installed Fedora 16 x86_64 PV domU, comment out >> the keys in Step 1 and uncomment bootloader below. >> >> >> #bootloader="/usr/bin/pygrub" >> >> Please advise. >> >> Thank you very much. >> >> Yours sincerely, >> >> Teo En Ming (Zhang Enming) >> >> >> >> > --------------050406040801040706070007 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Any ideas? There has been very few documentation on XL domain configuration files on the internet.

Yours sincerely,

Teo En Ming (Zhang Enming)

On 18/03/2012 22:41, Teo En Ming (Zhang Enming) wrote:
Hi,

I have attached error logs. Please help.

Thank you very much.

Yours sincerely,

Teo En Ming (Zhang Enming)


On 18/03/2012 19:44, Teo En Ming (Zhang Enming) wrote:
Hi,

I cannot start Linux PV guests. "sudo xl create -c" reports that a domain has successfully started but "ps -ef | grep qemu" returns no output and "sudo xl list" doesn't show that the PV domain has started.

Please review the following installation steps which I have written and see if there are any mistakes.

XL Domain Configuration File for Fedora 16 x86_64 PV domU (Incomplete Configuration, Not Tested, Do Not Use)


You will need to install apache2 and create a local http mirror.


sudo apt-get install apache2


cd /media

sudo mkdir fedora

cd ~/Downloads

sudo mount -o loop Fedora-16-x86_64-DVD.iso /media/fedora

cd

mkdir -p vms/f16

cd /media/fedora/images/pxeboot

cp vmlinuz initrd.img ~/vms/f16/



sudo nano /etc/xen/Fedora16x86_64


# Kernel image to boot


kernel = "/home/teo-en-ming/vms/f16/vmlinuz"




# Ramdisk (optional)


ramdisk = "/home/teo-en-ming/vms/f16/initrd.img"



#bootloader="/usr/bin/pygrub"


cd /etc/xen/images/

sudo dd if=/dev/zero of=fedora16x86_64.img bs=1024k seek=10000 count=0


To install Fedora 16 x86_64 as a paravirtualized guest domain,


sudo xl create -c Fedora16x86_64


After installing Fedora 16 x86_64 PV domU,


sudo nano /etc/xen/Fedora16x86_64


# Kernel image to boot


#kernel = "/home/teo-en-ming/vms/f16/vmlinuz"




# Ramdisk (optional)


#ramdisk = "/home/teo-en-ming/vms/f16/initrd.img"



bootloader="/usr/bin/pygrub"


# XL domain configuration file for Fedora 16 x86_64 PV domU

# Please refer to "man xl.cfg" for further explanations.

# See also docs/misc/xl-network-configuration.markdown and

# docs/misc/xl-disk-configuration.txt


# Written by Teo En Ming (Zhang Enming)

# Email: teo.en.ming@gmail.com

# Mobile Phone: +65-8369-2618

# Country: Singapore

# Date: 18 Mar 2012 Sun


name="Fedora16x86_64"


builder="generic"


vcpus=2


memory=1024


on_poweroff="destroy"

on_reboot="restart"

on_crash="destroy"


disk=[ 'format=raw, vdev=hda, access=rw, target=/etc/xen/images/fedora16x86_64.img' ]


vif=[ 'bridge=virbr0' ]


vfb=[ 'vnc=1,vnclisten=localhost,vncdisplay=2,vncunused=1,vncpasswd=,sdl=0' ]


gfx_passthru=0


# Step 1

# To install Fedora 16 x86_64 PV domU, configure the kernel, ramdisk, and extra keys below and comment out bootloader.

# Kernel image to boot

kernel = "/home/teo-en-ming/vms/f16/vmlinuz"


# Ramdisk (optional)

ramdisk = "/home/teo-en-ming/vms/f16/initrd.img"


# Kernel command line options

#extra = "root=/dev/xvda1"


# Step 2

# To boot the already installed Fedora 16 x86_64 PV domU, comment out the keys in Step 1 and uncomment bootloader below.


#bootloader="/usr/bin/pygrub"

Please advise.

Thank you very much.

Yours sincerely,

Teo En Ming (Zhang Enming)






--------------050406040801040706070007-- --===============6629648067700426997== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel --===============6629648067700426997==--