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

Re: [Xen-users] [XCP] - How to create a VM from network install



Hi, 

I had the same problem this weekend using Fedora 11 and Fedora 12  DVDs to boot from.  What I did was to locate the kernel and initrd.img on the CD and adjust the VM as follows: 

xe vm-param-set uuid=<vm-uuid> PV-bootloader=pygrub
xe vm-param-set uuid=<vm-uuid> PV-bootloader-args="--kernel /isolunux/vmlinuz --ramdisk=isolinux/initrd.img" 

I placed placed these lines just before the "xe vm-start" command and this got the boot going.  After the install and the first boot from the hard drive, you may have to set the hard disk back to "bootable=yes", detach the cd and take the PV-bootloader-arg line back out: 


Let me know if this helps. 

Dave



On Apr 19, 2010, at 3:28 AM, <cluster@xxxxxxxx> <cluster@xxxxxxxx> wrote:

Hi all,
 
is there someone who could share the right steps to create a CentOS 5.4 X86_64 Virtual machine from cli. According to manual I used this:
 
#Create VM
xe vm-install template="CentOS 5.4 x64" new-name-label="Prima" sr-uuid=7f998a60-e435-3ed8-bb00-51480c26cdb5
 
retval: 84730e38-de64-d7a1-9769-13d52c6e0d93
 
#Get disk uuid
xe vbd-list vm-uuid=84730e38-de64-d7a1-9769-13d52c6e0d93 userdevice=0 params=uuid --minimal
 
retval: ec6c3d30-b7f8-0e1f-1110-dfc0cf004683
 
#Set boot= false
xe vbd-param-set uuid=ec6c3d30-b7f8-0e1f-1110-dfc0cf004683 bootable=false
 
#Get cd-list
xe cd-list
 
retval: CentOS-5.4-x86_64-netinstall.iso
 
#Add cd
xe vm-cd-add vm=Prima cd-name="CentOS-5.4-x86_64-netinstall.iso" device=3
 
#Get cdrom uuid
xe vbd-list vm-uuid=84730e38-de64-d7a1-9769-13d52c6e0d93 type=CD params=uuid --minimal
 
retval: e03b58ed-aa43-8475-1f98-2638111dc11b
 
#Set cd boot=true
xe vbd-param-set uuid=e03b58ed-aa43-8475-1f98-2638111dc11b bootable=true
 
#Set default repository
xe vm-param-set uuid=84730e38-de64-d7a1-9769-13d52c6e0d93 other-config:install-repository=cdrom
 
#Start
xe vm-start vm=Prima
 
retval:
The bootloader returned an error
vm: c4add69a-f3bb-7e33-ada7-537e30ce0af7 (Prima)
msg: Error from bootloader: Failed to parse the output of bootloader: ()
 
Thanks for any suggestion/help.
 
Best regards,
Francesco Gallo
 
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

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

 


Rackspace

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