WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

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

To: "'David Booher'" <dbooher@xxxxxxxxx>, "'cluster@xxxxxxxxxxxxxxx@xinet.it'"
Subject: R: [Xen-users] [XCP] - How to create a VM from network install
From: <cluster@xxxxxxxx>
Date: Mon, 19 Apr 2010 17:25:20 +0200
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Mon, 19 Apr 2010 08:27:07 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <BBBD019F-F151-4DA8-A67B-389FCC3308B3@xxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <001b01cadf9a$4c4a0f00$e4de2d00$@it> <BBBD019F-F151-4DA8-A67B-389FCC3308B3@xxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcrftTJVwNVPhMCwSLKd6NXY4k+ONwAHquYw

 Thanks a lot for your help.

 

I tried you solution but I alredy have installed the VM and I would like to start it with new kernel after the installation of xen-tools.iso.

 

I’m sure that something is wrong but I don’t know what and the installation manual does not help me L.

 

Regards,

Francesco Gallo

 

Da: David Booher [mailto:dbooher@xxxxxxxxx]
Inviato: lunedì 19 aprile 2010 13:41
A: cluster@xxxxxxxxxxxxxxx@xinet.it
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Oggetto: 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
<Prev in Thread] Current Thread [Next in Thread>