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

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


  • To: xen-api@xxxxxxxxxxxxxxxxxxx
  • 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
  • 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=
  • List-id: Discussion of API issues surrounding Xen <xen-api.lists.xensource.com>

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


 


Rackspace

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