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

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



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=169.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'", " "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? Or could it be some bug in the OS code?

Thanks,
Yaohua
_______________________________________________
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®.