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

[Xen-API] Question about VM.create



Hy
I'm starting using the xen api to perform basic operations on vm. I use Xen 3.2.1, my VMs use a nfsroot filesystem with an initrd.

I used to start my VMs using "xm create -f ...", it worked fine. Here is a sample config file:

----
kernel = "/boot/vmlinuz-2.6.26-1-xen-amd64"
ramdisk = "/boot/initrd.img-2.6.26-1-xen-amd64-VM"
root = "/dev/nfs"
nfs_server = '192.168.0.1'
gateway = "192.168.0.1"
netmask = "255.255.255.0"
extra = "xencons=tty1 clocksource=jiffies";
vif = [ 'ip=192.168.0.193' ]
ip="192.168.0.193"
hostname="tinyLenny1"
name="tinyLenny1"
memory=128
---

Now, I want to execute the same task using xenapi (I use a JAVA- binding). So first, I use VM.create() to create my VM with the kernel params to use the ramdisk and to configure the network interface. Then, I create a VIF interface using VIF.create(), I specify again the IP and associate it to the VM UUID previously created.
Finally, I start the VM.

On the console I see the IP-config of the ramdisk with the good values. But after this step, My VM hangs with a timeout: the server can not be connected.

I have read the documentation and others posts, but no solutions appear to be good in my situation. Does anyone has a hint, or a custom protocol to create a VM (using NFSroot) and boot it using xenapi ?

Thanks in advance

Fabien Hermenier

_______________________________________________
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®.