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

Re: [Xen-users] xl create argument issue with disk config



On Sun, 2015-11-15 at 18:06 -0600, Yaohua Li wrote:
> Hi
> 
> I am trying to add disk vbd for "Ethos" OS running on x86_64. It did not
> have disk device before but I am adding one and writing file system for
> it.
> 
> Below is the arguments we use to start. Since a Python script is used to
> start xen domain, the below is an array of strings, rather than a single
> string. Note that "disk" argument is the newly added thing.
> 
> ['xl', 'create', '/dev/null', '-p',
> "vif=['mac=aa:00:00:00:00:01,ip=169.254.2.1','mac=aa:00:00:00:00:02,ip=16
> 9.254.2.2']", "disk=['file:/home/yl/test/disk.img,sda,rw']",
> "kernel='/var/lib/xen/images/ethos.x86_64.elf'", "name='client.ethos'",
> "ramdisk='/var/lib/xen/images/initialStore.x86_64.tar'", "memory='256'",
> "on_crash='destroy'", "extra=' sd.port=11112 .mac=fe:ff:ff:ff:ff:ff
> .ip=131.193.36.40 ÂipShadowDaemon=169.254.2.1 ipNetwork=169.254.2.2'"]
> 
> We have been using 2 vif devices for a long time with no problem. But
> after adding "disk" configuration
> (disk=['file:/home/yl/test/disk.img,sda,rw']), the OS cannot find vif1
> but only vif0, with the code below.Â
> 
> Â Â ASSERT(0==netInterfaceCount);
> 
> Â Â while (status == StatusOk)
> Â Â Â Â {
> Â Â Â Â Â Â sprint(path, "device/vif/%d", netInterfaceCount);
> Â Â Â Â Â Â status = xenbus_read(XBT_NIL, path, &str);
> 
> Â Â Â Â Â Â if (status == StatusOk)
> Â Â Â Â Â Â Â Â {
> Â Â Â Â Â Â Â Â Â Â xfree(str);
> Â Â Â Â Â Â Â Â Â Â ++netInterfaceCount;
> Â Â Â Â Â Â Â Â }
> Â Â Â Â }
> 
> Is the configuration itself correct?

It seems to be, or at least I can't spot any obvious problem.

>  Or could it be some bug in the OS code?

Right now that seems most likely. When you say "cannot find" do you mean it
is not finding the xenstore node or is it failing to create the device
after having found it in xenstore?

You can look at the contents of xensto with "xenstore-ls -fp" and see if
the devices are created. You should also look at the logs under
/var/log/xen and see if there is anything there.Â

You may also want to make xl more verbose e.g. "xl -vvv create /dev/null
...etc...".

Ian.



_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxx
http://lists.xen.org/xen-users

 


Rackspace

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