[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-users] how to boot a para-virtulized vm from cdrom after installation



Mark,  I tried it, but still failed.


If I use  bootloader="/usr/bin/pygrub" and kernel ,ramdisk paramter,


HjCloud:/mnt/winimg/xen_vm_config # xm cre kernel=/mnt/winimg/xen_vm_config/sles11sp2_iso_boot/vmlinuz-xen ramdisk=/mnt/winimg/xen_vm_config/sles11sp2_iso_boot/initrd-xen sles11sp2pv 
Using config file "./sles11sp2pv".
Error: Boot loader didn't return any data!


so , I commented the bootloader line ,vm's conf is as follows ,but failed too,  I got the screenshot in the attachment.


meanwhile , I find  http://www.gossamer-threads.com/lists/xen/users/187703 ,  maybe for pvm , boot from cdrom is impossible ?


thanks !
 


name="sles11sp2pv"
description="None"
uuid="a53f984b-b4f5-9206-adf8-e84cdbe20ff5"
memory=512
maxmem=512
vcpus=2



localtime=0
keymap="en-us"
builder="linux"
#bootloader="/usr/bin/pygrub"
bootargs=""
extra=" "
##boot="cd" #first disk,then cdrom

kernel="/mnt/winimg/xen_vm_config/sles11sp2_iso_boot/vmlinuz-xen"
ramdisk="/mnt/winimg/xen_vm_config/sles11sp2_iso_boot/initrd-xen"


disk=[

#'file:/mnt/winimg/iso/SLES-11-SP2-DVD-x86_64-GM-DVD1.iso,xvdb:cdrom,r',
'file:/mnt/winimg/iso/SLES-11-SP2-DVD-x86_64-GM-DVD1.iso,hdc:cdrom,r',
'phy:/dev/domu/sp2,xvda,w',
]

vif=[ 'mac=00:16:3e:2d:53:f2,bridge=br0', ]
vfb=['type=vnc,vncunused=1']











> Date: Sat, 6 Oct 2012 10:34:55 -0700
> From: tlviewer@xxxxxxxxx
> To: duanshuidao@xxxxxxxxxxx; xen-users@xxxxxxxxxxxxx; xen-users@xxxxxxxxxxxxxxxxxxx
> Subject: Re: [Xen-users] how to boot a para-virtulized vm from cdrom after installation
>
> Jun,
>
> before you try again, mount the ISO and copy locally the vmlinuz-xen/initrd-xen from the DVD.
>
> Those two files will be referenced from your config or the xm/xl cmdline.
>
> In your disk=[] line, put the DVD first (sometimes it matters).
>
> Now,
> xm create kernel=/home/me/vmlinuz-xen ramdisk=/home/me/initrd-xen xen_vm_config
>
> the boot files should now see the DVD and source it.
>
> --
>
> Mark
>
>
> ________________________________
> From: jun hu <duanshuidao@xxxxxxxxxxx>
> To: "xen-users@xxxxxxxxxxxxx" <xen-users@xxxxxxxxxxxxx>; xen-users <xen-users@xxxxxxxxxxxxxxxxxxx>
> Sent: Saturday, October 6, 2012 6:38 AM
> Subject: [Xen-users] how to boot a para-virtulized vm from cdrom after installation
>
>
>
> how to boot a para-virtulized vm from cdrom  after installation?
>
>
> I tried to modify the vm conf file :boot=“dc", but It still boot from disk quickly.
>
>
>
>
> HjCloud:/mnt/winimg/xen_vm_config # xm li
>
> Name                                        ID   Mem VCPUs      State   Time(s)
> Domain-0                                     0  3336     2     r-----    481.1
> sles10sp4                                        512     2                 0.0
> sles11sp2pv                                  2   512     2     -b----     13.4
> HjCloud:/mnt/winimg/xen_vm_config # cat sles11sp2pv
> name="sles11sp2pv"
> description="None"
> uuid="a53f984b-b4f5-9206-adf8-e84cdbe20ff5"
> memory=512
> maxmem=512
> vcpus=2
>
>
>
> localtime=0
> keymap="en-us"
> builder="linux"
> bootloader="/usr/bin/pygrub"
> bootargs=""
> extra=" "
> boot="dc"
> disk=[ 'phy:/dev/domu/sp2,xvda,w',
> 'file:/mnt/winimg/iso/SLES-11-SP2-DVD-x86_64-GM-DVD1.iso,xvdb:cdrom,r', ]
> vif=[ 'mac=00:16:3e:2d:53:f2,bridge=br0', ]
> vfb=['type=vnc,vncunused=1']
> _______________________________________________
>
> _______________________________________________
> Xen-users mailing list
> Xen-users@xxxxxxxxxxxxx
> http://lists.xen.org/xen-users

Attachment: 1.png
Description: PNG image

Attachment: 2.png
Description: PNG image

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxx
http://lists.xen.org/xen-users

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.