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-api

[Xen-API] python xenapi VM.create()

To: xen-api@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-API] python xenapi VM.create()
From: Ismail El Helw <ielhelw@xxxxxxxxx>
Date: Sat, 20 Feb 2010 13:24:04 +0100
Delivery-date: Sat, 20 Feb 2010 04:24:05 -0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=vnSxR9X0sixzCQnQuRg6C/eG8L5R4IxvEqhNObMwDQk=; b=Vp3iAt1w01clebOnU0l8WhQexCLRz9uMsHPHHqsn1NG9FNMIF4OnTen68m7GtGCg+m 1ReWuu0APEEDxxA0PjZcDKc+npal+IZoWjGEgxMxTm73M0YsDQDtauI/sBe2ugBWa3c+ 7iWAYqUPcGfuYiw3tHggB6/tiq3DBrz6WFd9w=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=sy7JO8npEMGPg0YWRvRH1Izn8xZs3sPhSmq2Zb4BVHejaNkf4FfudbY3c0XulScsbn 0+8UGQIwnJOWeRIhUjOCrmKWJiyPK4O3GHZi+rQK+B3oa14GLO0V7AHpyleAghbqYBYx TIN0r1odhhyYSrRRpb1byB0IEVtEwr8EQdXZY=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-api-request@lists.xensource.com?subject=help>
List-id: Discussion of API issues surrounding Xen <xen-api.lists.xensource.com>
List-post: <mailto:xen-api@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-api-bounces@xxxxxxxxxxxxxxxxxxx
Hi,

Does anyone know how to use VM.create() then create and assign a disk
to the newly created VM?

I've been using the python bindings to start/stop VMs and get
information about them from metrics. However, I failed to create and
start a new VM from scratch. I successfully created a new VM but I
failed to create a disk for it. I am using a single disk image for my
VM configurations so my config looks like this
#############
bootloader = "/usr/bin/pygrub"
memory = 512
vif = ['bridge=xenbr0']
disk = ['file:/path/to/file.img,hda1,w']
dhcp = "dhcp"
name = "hostname"
hostname = "hostname"
root = "/dev/hda1 rw"
extra = "4"
vfb = [ "type=vnc,vncunused=1" ]
#############

I am using Xen 3.4.2.

--
Regards,

Ismail El Helw

_______________________________________________
xen-api mailing list
xen-api@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/mailman/listinfo/xen-api

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-API] python xenapi VM.create(), Ismail El Helw <=