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

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


  • To: <xen-users@xxxxxxxxxxxxxxxxxxx>
  • From: <cluster@xxxxxxxx>
  • Date: Mon, 19 Apr 2010 10:28:33 +0200
  • Delivery-date: Mon, 19 Apr 2010 01:29:45 -0700
  • List-id: Xen user discussion <xen-users.lists.xensource.com>
  • Thread-index: Acrfmkwsmj+IgICFQtGlXupRS4RLPQ==

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

 


Rackspace

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