Skip to contentSkip to conversation

Hyper and Xen Project

DISCUSSION Stefano Stabellini 3 participants 8 messages Jun 24, 2015 – Jun 25, 2015 12 messages not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): CAC2n1MSrRhEzdNN8Gue8D9iY1r532BObR_ro1U+EmaAmJiKyNA@mail.gmail.com

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): CAC2n1MTcTKkachVUGcab17-=rVD3dVdoD--vz5MiS6Bj+x+VCg@mail.gmail.com

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): CAC2n1MRM_XFQbOpKPdHpw9HOk--zho8=13o98XrOV3sN3iPy6w@mail.gmail.com

A message that is not in the archive (sent off-list or not yet received): D1A9FCFC.1D36C%[email protected]

A message that is not in the archive (sent off-list or not yet received): CAFm1QiAL==0JHt_8SAXEmEmNqDbC74Uc3eGWN5zcLtLtJ_8VFw@mail.gmail.com

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): CAC2n1MT9V7iS6YJSy4ixh7YrHRHY04Yz4w6tbug5+T2s2pexoA@mail.gmail.com

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): CAC2n1MQ=KZ1zztg9-UWy3UhyK_S-_Cw844bFW=Kc33KdwMrEOQ@mail.gmail.com

#12 lore raw

Hi Wang,

I don't know the answer, so I CCed xen-devel (the Xen development list) and a few people that I think will be able to help.

Cheers,

Stefano

Quoted 26 lines · Wang Xu

A problem about channel, where do I found the channel name in the guest, In the document, it says I could found it in sysfs, but looks there isn't a name property:

| root@test-container-create-ubuntu:/sys/bus/xen/devices# udevadm  info --attribute-walk  --path=/devices/console-1 |
[...]

|
|   looking at device '/devices/console-1':
|     KERNEL=="console-1"
|     SUBSYSTEM=="xen"
|     DRIVER=="xenconsole"
|     ATTR{devtype}=="console"
|     ATTR{nodename}=="device/console/1"

and I directly test /dev/hvc1, and it could communicate with the outside socket. Is there some mistake in my channel name configuration?

| static void hyper_config_channel(libxl_device_channel* ch, const char* name, const char* sock, int devid) {
|     libxl_device_channel_init(ch);
|     ch->backend_domid = 0;
|     ch->name = strdup(name);
|     ch->devid = devid;
|     ch->connection = LIBXL_CHANNEL_CONNECTION_SOCKET;
|     ch->u.socket.path = strdup(sock);
| }
Quoted 1 line

I tried to look at the oVirt code as it is mentioned in the dock, but I did not find xen console in its guest agent code.

So the issue is that the name you assign here to the channel, doesn't come up anywhere in the guest. Is that correct?

Quoted 268 lines

Thank you!

On Tue, Jun 23, 2015 at 7:30 PM, Stefano Stabellini <[email protected]> wrote:
On Tue, 23 Jun 2015, Wang Xu wrote:
> On Sat, Jun 20, 2015 at 1:10 AM Stefano Stabellini <[email protected]> wrote:
>       Integrating hyper with Xen using libxl was the right decision and it
>       looks like you did a good job. I think that you can go ahead with the
>       PR!
>
>
>       But I did have a few issues building hyper. I am getting:
>
>       hyperd.go:11:2: cannot find package "hyper/daemon" in any of:
>       [...]
>
> I tried with a clean 0.2-dev branch
> > ./autogen.sh
> > ./configure
> > make
>
> It looks ok, are you work on the 0.2-dev branch, I did not write the branch name in the instruction of Readme, sorry for
> that.

No worries, the most important part at this stage is the code, and that looks OK :-)
Yes, I was using 0.2-dev and followed those steps. As I usually don't program in go, it is likely that my go working environment is missing something, or my go paths are wrong. This is the full error message:

CGO_LDFLAGS="-Lhypervisor/xen -lxenlight -lxenctrl -lhyperxl" godep go build hyperd.go hyperd.go:11:2: cannot find package "hyper/daemon" in any of:
        /local/scratch/sstabellini/go/src/hyper/daemon (from $GOROOT) /local/scratch/sstabellini/hyper/Godeps/_workspace/src/hyper/daemon (from $GOPATH) hyperd.go:10:2: cannot find package "hyper/engine" in any of:
        /local/scratch/sstabellini/go/src/hyper/engine (from $GOROOT) /local/scratch/sstabellini/hyper/Godeps/_workspace/src/hyper/engine (from $GOPATH) hyperd.go:12:2: cannot find package "hyper/lib/glog" in any of:
        /local/scratch/sstabellini/go/src/hyper/lib/glog (from $GOROOT) /local/scratch/sstabellini/hyper/Godeps/_workspace/src/hyper/lib/glog (from $GOPATH) hyperd.go:13:2: cannot find package "hyper/utils" in any of:
        /local/scratch/sstabellini/go/src/hyper/utils (from $GOROOT) /local/scratch/sstabellini/hyper/Godeps/_workspace/src/hyper/utils (from $GOPATH)
godep: go exit status 1

>       Looking through the code, it seems that you are adding a
>       virtio-serial-pci device, why do you need it?  It is not used very much
>       on Xen; the regular Xen uart is specified by setting
>       b_info->u.hvm.serial to "pty", and it looks like you are already doing
>       that. If you need more than one console, you can have a list setting
>       b_info->u.hvm.serial_list.
>
> What the difference between u.hvm.serial_list and channels in domain_config. The channel looks having more features.

Actually I think that you are right: channels are better tested and more flexible.

>       virtio-9p-pci is also not used very much with Xen, but as we don't have
>       an alternative yet, I think it is good for now.
>
>
>       Thanks again,
>
>       Stefano
>
>
>
>       On Fri, 19 Jun 2015, Sarah Conway wrote:
>       > Hi Xu,
>       > I'd be happy to work with you on some PR to promote this work. I'll be in touch with some next steps next
>       week and look
>       > forward to Stefano's feedback.
>       >
>       > Sarah
>       >
>       > On Fri, Jun 19, 2015 at 12:09 PM, Lars Kurth <[email protected]> wrote:
>       >       Xu,
>       > Fantastic! If you wanted to do some PR, such as a joint Xen Project / Linux Foundation and Hyper press
>       release or
>       > other PR, we should start working on that after Stefano had a look
>       > Let me know
>       > Regards
>       > Lars
>       >
>       > From: Wang Xu <[email protected]>
>       > Date: Friday, 19 June 2015 16:54
>       > To: "[email protected]" <[email protected]>
>       > Cc: "[email protected]" <[email protected]>, Sarah Conway <[email protected]>, Lars Kurth >       <[email protected]>,
>       > "[email protected]" <[email protected]>, "[email protected]" <[email protected]> >       > Subject: Re: Hyper and Xen Project
>       >
>       > Hi Stefano and Lars, Sarah,
>       > I'd like to share some progress of Xen support of Hyper with you.
>       >
>       > The source code of hyper with xen support has been pushed to 0.2-dev branch (
>       > https://github.com/hyperhq/hyper/tree/0.2-dev ). Before release the binary packages, there are still some
>       test and
>       > tuning work to do, but I think it's better to share the information with you firstly. >       >
>       > Hyper supports HVM/Xen 4.5 as the first step, in which we used C and Go to talk with Xen through libxl.
>       libxl is
>       > well organized and help us much, though It took us some time to understand/debug the signal processing and
>       nic
>       > hotplug.
>       >
>       > You can check out the code and try to build it from source as description listed in README if you have
>       interests.
>       > And any suggestions on performance and reliability are appreciated.
>       >
>       > Cheers!
>       > Xu
>       >
>       > On Tue, Jun 9, 2015 at 5:41 PM Stefano Stabellini <[email protected]> wrote:
>       >       You are right, we don't really have an equivalent to 9p in the Xen
>       >       ecosystem at the moment.  We had a prototype called XenFS, like you
>       >       wrote, but it had never reached production quality, so it was removed.
>       >       But we now have an OPW student working on a Xen paravirtualized 9p fs
>       >       interface.  Once she finishes the initial prototype, we could prioritize
>       >       it within the community and work together to complete it.
>       >
>       >       How are you using virtio 9p fs?  What Docker storage backend are you
>       >       using?  I am asking because when I looked into running Docker container
>       >       images as Xen VMs, I was able to boot VMs without any filesystem share,
>       >       by using the devices set up by Docker's device mapper backend directly.
>       >       I think that using storage devices directly as backends, when possible,
>       >       is preferable because of performance and security.
>       >
>       >
>       >       On Tue, 9 Jun 2015, Wang Xu wrote:
>       >       > Hi Stefano,
>       >       >
>       >       > Yes, we are working on HVM and using 9p and virt-serial over virtio, and looks 9p do not have a
>       >       similar
>       >       > component in Xen ecosystem. What's the status of XenFS and how do you think about filesystem share
>       in
>       >       Xen?
>       >       >
>       >       > On Mon, Jun 8, 2015 at 6:18 PM Stefano Stabellini <[email protected]> wrote:
>       >       >       Hi Xu,
>       >       >
>       >       >       Thank you for the very quick reply!  I am very happy to hear that Xen >       >       >       support is coming so soon.
>       >       >
>       >       >       >From the technical point of view, I think that HVM guests with the >       >       >       explicit kernel and initrd options is a very good choice for the initial >       >       >       implementation.
>       >       >
>       >       >       PVH will probably be a better alternative going forward because startup >       >       >       times are far lower, but at this stage is still not as stable as regular >       >       >       HVM guests, so I would wait for another Xen release or two before using >       >       >       them.  Old style PV guests might still be a decent alternative for >       >       >       people that really care about startup times, because they boot really >       >       >       quickly. They also have good performance in a nested virtualization >       >       >       environment, such as people deploying containers on Amazon AWS. However >       >       >       on native they offer lower performance than PVH or HVM guests.
>       >       >
>       >       >       You mentioned virtio:  are you using virtio 9p fs or one of the other >       >       >       protocols (block, net, etc)?
>       >       >
>       >       >       Cheers,
>       >       >
>       >       >       Stefano
>       >       >
>       >       >
>       >       >       On Fri, 5 Jun 2015, Wang Xu wrote:
>       >       >       > Hello Stefano,
>       >       >       >
>       >       >       > It is very glad to get message from Xen.
>       >       >       >
>       >       >       > Xen is a great innovation and one of the most widely adopted hypervisor, we believe we
>       should
>       >       >       support it as
>       >       >       > soon as possible.
>       >       >       >
>       >       >       > We are currently busy working on Xen support and will announce the initial support in the
>       next
>       >       >       week.
>       >       >       >
>       >       >       > The initial support is working on Xen 4.5 hvm mode, because it is easy to specify kernel and
>       >       >       initrd during
>       >       >       > boot and support virtio, which we have already used in the kvm version. >       >       >       >
>       >       >       > We also considered PVH on Xen 4.4, but met some trouble with that. >       >       >       >
>       >       >       > We are very interesting in cooperating with Xen upstream to have a better support in the
>       >       >       future.
>       >       >       >
>       >       >       > Thank you for your message!
>       >       >       >
>       >       >       > Cheers!
>       >       >       >
>       >       >       > Xu Wang
>       >       >       > Cofounder & CTO of Hyper
>       >       >       >
>       >       >       >
>       >       >       > Stefano Stabellini <[email protected]>于2015年6月6日周六 00:14写道: >       >       >       >       Hello Xu, Feng, Lei,
>       >       >       >
>       >       >       >       My name is Stefano Stabellini and I lead the Xen Project team within >       >       >       >       Citrix.  I am also one of the Xen maintainers.
>       >       >       >
>       >       >       >       Let me introduce you to Lars Kurth, chair of the Xen Project advisory >       >       >       >       board, and Sarah Conway, that represents the Linux Foundation. As you >       >       >       >       probably know, Xen Project is a Linux Foundation collaborative project. >       >       >       >
>       >       >       >
>       >       >       >       I wanted to get in touch with you regarding your new project, Hyper:  I >       >       >       >       am really glad to see that you are stepping up to bring the security and >       >       >       >       flexibility of hypervisor solutions to the world of containers. I think is >       >       >       >       a key project that will benefit the containers and cloud industry as a >       >       >       >       whole.  In fact I have been investigating the best way to run containers >       >       >       >       on Xen myself during the last few months.
>       >       >       >
>       >       >       >
>       >       >       >       I read that Hyper is hypervisor agnostic and I am glad that Xen is >       >       >       >       already on the roadmap.
>       >       >       >
>       >       >       >       I understand that Hyper is still young, but do you have any timelines on >       >       >       >       when you are planning to introduce Xen support to Hyper?  Would you be >       >       >       >       interested in discussing the best way to do that?
>       >       >       >
>       >       >       >
>       >       >       >       Cheers,
>       >       >       >
>       >       >       >       Stefano
>       >       >       >
>       >       >       >
>       >       >       >
>       >       >
>       >       >
>       >       >
>       >
>       >
>       >
>       >
>       > --
>       > Sarah Conway
>       > PR Manager
>       > The Linux Foundation
>       > [email protected]
>       > (978) 578-5300  Cell
>       > Skype:  sarah.k.conway
>       >
>       >
>
>
>

Quoted 4 lines

--
Wang Xu

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

#13 lore raw
Quoted 27 lines · Stefano Stabellini

Hi Wang,

I don't know the answer, so I CCed xen-devel (the Xen development list) and a few people that I think will be able to help.

Cheers,

Stefano

Quoted 14 lines · Wang Xu

A problem about channel, where do I found the channel name in the guest, In the document, it says I could found it in sysfs, but looks there isn't a name property:

| root@test-container-create-ubuntu:/sys/bus/xen/devices# udevadm info --attribute-walk --path=/devices/console-1 |
[...]

|
|   looking at device '/devices/console-1':
|     KERNEL=="console-1"
|     SUBSYSTEM=="xen"
|     DRIVER=="xenconsole"
|     ATTR{devtype}=="console"
|     ATTR{nodename}=="device/console/1”

I don’t think the frontend driver in Linux knows about the name key. In my testing I wrote a udev script which looks up the ‘name’ key directly in xenstore and created a named device node using that. For reference my script is here:

https://github.com/mirage/mirage-console/blob/master/udev/xenconsole-setup-tty

Cheers,
Dave

Quoted 12 lines
Quoted 12 lines

and I directly test /dev/hvc1, and it could communicate with the outside socket. Is there some mistake in my channel name configuration?

| static void hyper_config_channel(libxl_device_channel* ch, const char* name, const char* sock, int devid) {
|     libxl_device_channel_init(ch);
|     ch->backend_domid = 0;
|     ch->name = strdup(name);
|     ch->devid = devid;
|     ch->connection = LIBXL_CHANNEL_CONNECTION_SOCKET;
|     ch->u.socket.path = strdup(sock);
| }
Quoted 279 lines
Quoted 1 line

I tried to look at the oVirt code as it is mentioned in the dock, but I did not find xen console in its guest agent code.

So the issue is that the name you assign here to the channel, doesn't come up anywhere in the guest. Is that correct?

Quoted 271 lines

Thank you!

On Tue, Jun 23, 2015 at 7:30 PM, Stefano Stabellini <[email protected]> wrote:

     On Tue, 23 Jun 2015, Wang Xu wrote:
Quoted 11 lines · Stefano Stabellini

Integrating hyper with Xen using libxl was the right decision and it looks like you did a good job. I think that you can go ahead with the PR!

But I did have a few issues building hyper. I am getting:

hyperd.go:11:2: cannot find package "hyper/daemon" in any of:
[...]

Quoted 6 lines

I tried with a clean 0.2-dev branch

Quoted 3 lines

./autogen.sh
./configure
make

It looks ok, are you work on the 0.2-dev branch, I did not write the branch name in the instruction of

Readme, sorry for

Quoted 1 line

that.

No worries, the most important part at this stage is the code, and that looks OK :-)
Yes, I was using 0.2-dev and followed those steps. As I usually don't program in go, it is likely that my go working environment is missing something, or my go paths are wrong. This is the full error message:

CGO_LDFLAGS="-Lhypervisor/xen -lxenlight -lxenctrl -lhyperxl" godep go build hyperd.go hyperd.go:11:2: cannot find package "hyper/daemon" in any of:
/local/scratch/sstabellini/go/src/hyper/daemon (from $GOROOT) /local/scratch/sstabellini/hyper/Godeps/_workspace/src/hyper/daemon (from $GOPATH)
hyperd.go:10:2: cannot find package "hyper/engine" in any of:
/local/scratch/sstabellini/go/src/hyper/engine (from $GOROOT) /local/scratch/sstabellini/hyper/Godeps/_workspace/src/hyper/engine (from $GOPATH)
hyperd.go:12:2: cannot find package "hyper/lib/glog" in any of:
/local/scratch/sstabellini/go/src/hyper/lib/glog (from $GOROOT) /local/scratch/sstabellini/hyper/Godeps/_workspace/src/hyper/lib/glog (from $GOPATH)
hyperd.go:13:2: cannot find package "hyper/utils" in any of:
/local/scratch/sstabellini/go/src/hyper/utils (from $GOROOT) /local/scratch/sstabellini/hyper/Godeps/_workspace/src/hyper/utils (from $GOPATH)
godep: go exit status 1

Quoted 8 lines

Looking through the code, it seems that you are adding a virtio-serial-pci device, why do you need it? It is not used very much on Xen; the regular Xen uart is specified by setting b_info->u.hvm.serial to "pty", and it looks like you are already doing that. If you need more than one console, you can have a list setting b_info->u.hvm.serial_list.

What the difference between u.hvm.serial_list and channels in domain_config. The channel looks having more

features.

Actually I think that you are right: channels are better tested and more flexible.

Quoted 6 lines

virtio-9p-pci is also not used very much with Xen, but as we don't have an alternative yet, I think it is good for now.

Thanks again,

Quoted 7 lines

Stefano

On Fri, 19 Jun 2015, Sarah Conway wrote:
> Hi Xu,
> I'd be happy to work with you on some PR to promote this work. I'll be in touch with some next steps

next

Quoted 8 lines

week and look
> forward to Stefano's feedback.
>
> Sarah
>
> On Fri, Jun 19, 2015 at 12:09 PM, Lars Kurth <[email protected]> wrote:
> Xu,
> Fantastic! If you wanted to do some PR, such as a joint Xen Project / Linux Foundation and Hyper

press

Quoted 11 lines

release or
> other PR, we should start working on that after Stefano had a look
> Let me know
> Regards
> Lars
>
> From: Wang Xu <[email protected]>
> Date: Friday, 19 June 2015 16:54
> To: "[email protected]" <[email protected]>
> Cc: "[email protected]" <[email protected]>, Sarah Conway <[email protected]>, Lars Kurth <[email protected]>,

Quoted 8 lines

> "[email protected]" <[email protected]>, "[email protected]" <[email protected]> > Subject: Re: Hyper and Xen Project
>
> Hi Stefano and Lars, Sarah,
> I'd like to share some progress of Xen support of Hyper with you.
>
> The source code of hyper with xen support has been pushed to 0.2-dev branch (
> https://github.com/hyperhq/hyper/tree/0.2-dev ). Before release the binary packages, there are still

some

Quoted 4 lines

test and
> tuning work to do, but I think it's better to share the information with you firstly. >
> Hyper supports HVM/Xen 4.5 as the first step, in which we used C and Go to talk with Xen through

libxl.

Quoted 2 lines

libxl is
> well organized and help us much, though It took us some time to understand/debug the signal

processing and

Quoted 4 lines

nic
> hotplug.
>
> You can check out the code and try to build it from source as description listed in README if you

have

Quoted 18 lines

interests.
> And any suggestions on performance and reliability are appreciated.
>
> Cheers!
> Xu
>
> On Tue, Jun 9, 2015 at 5:41 PM Stefano Stabellini <[email protected]> wrote:
> You are right, we don't really have an equivalent to 9p in the Xen
> ecosystem at the moment. We had a prototype called XenFS, like you
> wrote, but it had never reached production quality, so it was removed.
> But we now have an OPW student working on a Xen paravirtualized 9p fs
> interface. Once she finishes the initial prototype, we could prioritize
> it within the community and work together to complete it.
>
> How are you using virtio 9p fs? What Docker storage backend are you
> using? I am asking because when I looked into running Docker container
> images as Xen VMs, I was able to boot VMs without any filesystem share,
> by using the devices set up by Docker's device mapper backend directly.

Quoted 8 lines

> I think that using storage devices directly as backends, when possible,
> is preferable because of performance and security.
>
>
> On Tue, 9 Jun 2015, Wang Xu wrote:
> > Hi Stefano,
> >
> > Yes, we are working on HVM and using 9p and virt-serial over virtio, and looks 9p do not

have a

Quoted 2 lines

> similar
> > component in Xen ecosystem. What's the status of XenFS and how do you think about filesystem

share

Quoted 28 lines

in
> Xen?
> >
> > On Mon, Jun 8, 2015 at 6:18 PM Stefano Stabellini <[email protected]> wrote:
> > Hi Xu,
> >
> > Thank you for the very quick reply! I am very happy to hear that Xen
> > support is coming so soon.
> >
> > >From the technical point of view, I think that HVM guests with the
> > explicit kernel and initrd options is a very good choice for the initial
> > implementation.
> >
> > PVH will probably be a better alternative going forward because startup
> > times are far lower, but at this stage is still not as stable as regular
> > HVM guests, so I would wait for another Xen release or two before using
> > them. Old style PV guests might still be a decent alternative for
> > people that really care about startup times, because they boot really
> > quickly. They also have good performance in a nested virtualization
> > environment, such as people deploying containers on Amazon AWS. However
> > on native they offer lower performance than PVH or HVM guests.
> >
> > You mentioned virtio: are you using virtio 9p fs or one of the other
> > protocols (block, net, etc)?
> >
> > Cheers,
> >
> > Stefano

Quoted 8 lines

> >
> >
> > On Fri, 5 Jun 2015, Wang Xu wrote:
> > > Hello Stefano,
> > >
> > > It is very glad to get message from Xen.
> > >
> > > Xen is a great innovation and one of the most widely adopted hypervisor, we believe

we

Quoted 5 lines

should
> > support it as
> > > soon as possible.
> > >
> > > We are currently busy working on Xen support and will announce the initial support

in the

Quoted 4 lines

next
> > week.
> > >
> > > The initial support is working on Xen 4.5 hvm mode, because it is easy to specify

kernel and

Quoted 6 lines
       >       >       initrd during
       >       >       > boot and support virtio, which we have already used in the kvm version.
       >       >       >
       >       >       > We also considered PVH on Xen 4.4, but met some trouble with that.
       >       >       >
       >       >       > We are very interesting in cooperating with Xen upstream to have a better support in

the

Quoted 51 lines
       >       >       future.
       >       >       >
       >       >       > Thank you for your message!
       >       >       >
       >       >       > Cheers!
       >       >       >
       >       >       > Xu Wang
       >       >       > Cofounder & CTO of Hyper
       >       >       >
       >       >       >
       >       >       > Stefano Stabellini <[email protected]>于2015年6月6日周六 00:14写道:
       >       >       >       Hello Xu, Feng, Lei,
       >       >       >
       >       >       >       My name is Stefano Stabellini and I lead the Xen Project team within
       >       >       >       Citrix.  I am also one of the Xen maintainers.
       >       >       >
       >       >       >       Let me introduce you to Lars Kurth, chair of the Xen Project advisory
       >       >       >       board, and Sarah Conway, that represents the Linux Foundation. As you
       >       >       >       probably know, Xen Project is a Linux Foundation collaborative project.
       >       >       >
       >       >       >
       >       >       >       I wanted to get in touch with you regarding your new project, Hyper:  I
       >       >       >       am really glad to see that you are stepping up to bring the security and
       >       >       >       flexibility of hypervisor solutions to the world of containers. I think is
       >       >       >       a key project that will benefit the containers and cloud industry as a
       >       >       >       whole.  In fact I have been investigating the best way to run containers
       >       >       >       on Xen myself during the last few months.
       >       >       >
       >       >       >
       >       >       >       I read that Hyper is hypervisor agnostic and I am glad that Xen is
       >       >       >       already on the roadmap.
       >       >       >
       >       >       >       I understand that Hyper is still young, but do you have any timelines on
       >       >       >       when you are planning to introduce Xen support to Hyper?  Would you be
       >       >       >       interested in discussing the best way to do that?
       >       >       >
       >       >       >
       >       >       >       Cheers,
       >       >       >
       >       >       >       Stefano
       >       >       >
       >       >       >
       >       >       >
       >       >
       >       >
       >       >
       >
       >
       >
       >
       > --
Quoted 11 lines
       > Sarah Conway
       > PR Manager
       > The Linux Foundation
       > [email protected]
       > (978) 578-5300  Cell
       > Skype:  sarah.k.conway
       >
       >

--
Wang Xu

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

#14 lore raw
Quoted 27 lines · Dave Scott
Quoted 26 lines · Stefano Stabellini

Hi Wang,

I don't know the answer, so I CCed xen-devel (the Xen development list) and a few people that I think will be able to help.

Cheers,

Stefano

Quoted 14 lines · Wang Xu

A problem about channel, where do I found the channel name in the guest, In the document, it says I could found it in sysfs, but looks there isn't a name property:

| root@test-container-create-ubuntu:/sys/bus/xen/devices# udevadm info --attribute-walk --path=/devices/console-1 |
[...]

|
|   looking at device '/devices/console-1':
|     KERNEL=="console-1"
|     SUBSYSTEM=="xen"
|     DRIVER=="xenconsole"
|     ATTR{devtype}=="console"
|     ATTR{nodename}=="device/console/1”
Quoted 3 lines

I don’t think the frontend driver in Linux knows about the name key. In my testing I wrote a udev script which looks up the ‘name’ key directly in xenstore and created a named device node using that. For reference my script is here:

https://github.com/mirage/mirage-console/blob/master/udev/xenconsole-setup-tty

That's a great workaround. However I think it would be best to make the Linux hvc_xen driver aware of the name key going forward.

Quoted 288 lines
Quoted 288 lines
Quoted 12 lines

and I directly test /dev/hvc1, and it could communicate with the outside socket. Is there some mistake in my channel name configuration?

| static void hyper_config_channel(libxl_device_channel* ch, const char* name, const char* sock, int devid) {
|     libxl_device_channel_init(ch);
|     ch->backend_domid = 0;
|     ch->name = strdup(name);
|     ch->devid = devid;
|     ch->connection = LIBXL_CHANNEL_CONNECTION_SOCKET;
|     ch->u.socket.path = strdup(sock);
| }
Quoted 1 line

I tried to look at the oVirt code as it is mentioned in the dock, but I did not find xen console in its guest agent code.

So the issue is that the name you assign here to the channel, doesn't come up anywhere in the guest. Is that correct?

Quoted 268 lines

Thank you!

On Tue, Jun 23, 2015 at 7:30 PM, Stefano Stabellini <[email protected]> wrote:

     On Tue, 23 Jun 2015, Wang Xu wrote:
Quoted 11 lines · Stefano Stabellini

Integrating hyper with Xen using libxl was the right decision and it looks like you did a good job. I think that you can go ahead with the PR!

But I did have a few issues building hyper. I am getting:

hyperd.go:11:2: cannot find package "hyper/daemon" in any of:
[...]

Quoted 6 lines

I tried with a clean 0.2-dev branch

Quoted 3 lines

./autogen.sh
./configure
make

It looks ok, are you work on the 0.2-dev branch, I did not write the branch name in the instruction of

Readme, sorry for

Quoted 1 line

that.

No worries, the most important part at this stage is the code, and that looks OK :-)
Yes, I was using 0.2-dev and followed those steps. As I usually don't program in go, it is likely that my go working environment is missing something, or my go paths are wrong. This is the full error message:

CGO_LDFLAGS="-Lhypervisor/xen -lxenlight -lxenctrl -lhyperxl" godep go build hyperd.go hyperd.go:11:2: cannot find package "hyper/daemon" in any of:
/local/scratch/sstabellini/go/src/hyper/daemon (from $GOROOT) /local/scratch/sstabellini/hyper/Godeps/_workspace/src/hyper/daemon (from $GOPATH)
hyperd.go:10:2: cannot find package "hyper/engine" in any of:
/local/scratch/sstabellini/go/src/hyper/engine (from $GOROOT) /local/scratch/sstabellini/hyper/Godeps/_workspace/src/hyper/engine (from $GOPATH)
hyperd.go:12:2: cannot find package "hyper/lib/glog" in any of:
/local/scratch/sstabellini/go/src/hyper/lib/glog (from $GOROOT) /local/scratch/sstabellini/hyper/Godeps/_workspace/src/hyper/lib/glog (from $GOPATH)
hyperd.go:13:2: cannot find package "hyper/utils" in any of:
/local/scratch/sstabellini/go/src/hyper/utils (from $GOROOT) /local/scratch/sstabellini/hyper/Godeps/_workspace/src/hyper/utils (from $GOPATH)
godep: go exit status 1

Quoted 8 lines

Looking through the code, it seems that you are adding a virtio-serial-pci device, why do you need it? It is not used very much on Xen; the regular Xen uart is specified by setting b_info->u.hvm.serial to "pty", and it looks like you are already doing that. If you need more than one console, you can have a list setting b_info->u.hvm.serial_list.

What the difference between u.hvm.serial_list and channels in domain_config. The channel looks having more

features.

Actually I think that you are right: channels are better tested and more flexible.

Quoted 6 lines

virtio-9p-pci is also not used very much with Xen, but as we don't have an alternative yet, I think it is good for now.

Thanks again,

Quoted 7 lines

Stefano

On Fri, 19 Jun 2015, Sarah Conway wrote:
> Hi Xu,
> I'd be happy to work with you on some PR to promote this work. I'll be in touch with some next steps

next

Quoted 8 lines

week and look
> forward to Stefano's feedback.
>
> Sarah
>
> On Fri, Jun 19, 2015 at 12:09 PM, Lars Kurth <[email protected]> wrote:
> Xu,
> Fantastic! If you wanted to do some PR, such as a joint Xen Project / Linux Foundation and Hyper

press

Quoted 11 lines

release or
> other PR, we should start working on that after Stefano had a look
> Let me know
> Regards
> Lars
>
> From: Wang Xu <[email protected]>
> Date: Friday, 19 June 2015 16:54
> To: "[email protected]" <[email protected]>
> Cc: "[email protected]" <[email protected]>, Sarah Conway <[email protected]>, Lars Kurth <[email protected]>,

Quoted 8 lines

> "[email protected]" <[email protected]>, "[email protected]" <[email protected]> > Subject: Re: Hyper and Xen Project
>
> Hi Stefano and Lars, Sarah,
> I'd like to share some progress of Xen support of Hyper with you.
>
> The source code of hyper with xen support has been pushed to 0.2-dev branch (
> https://github.com/hyperhq/hyper/tree/0.2-dev ). Before release the binary packages, there are still

some

Quoted 4 lines

test and
> tuning work to do, but I think it's better to share the information with you firstly. >
> Hyper supports HVM/Xen 4.5 as the first step, in which we used C and Go to talk with Xen through

libxl.

Quoted 2 lines

libxl is
> well organized and help us much, though It took us some time to understand/debug the signal

processing and

Quoted 4 lines

nic
> hotplug.
>
> You can check out the code and try to build it from source as description listed in README if you

have

Quoted 18 lines

interests.
> And any suggestions on performance and reliability are appreciated.
>
> Cheers!
> Xu
>
> On Tue, Jun 9, 2015 at 5:41 PM Stefano Stabellini <[email protected]> wrote:
> You are right, we don't really have an equivalent to 9p in the Xen
> ecosystem at the moment. We had a prototype called XenFS, like you
> wrote, but it had never reached production quality, so it was removed.
> But we now have an OPW student working on a Xen paravirtualized 9p fs
> interface. Once she finishes the initial prototype, we could prioritize
> it within the community and work together to complete it.
>
> How are you using virtio 9p fs? What Docker storage backend are you
> using? I am asking because when I looked into running Docker container
> images as Xen VMs, I was able to boot VMs without any filesystem share,
> by using the devices set up by Docker's device mapper backend directly.

Quoted 8 lines

> I think that using storage devices directly as backends, when possible,
> is preferable because of performance and security.
>
>
> On Tue, 9 Jun 2015, Wang Xu wrote:
> > Hi Stefano,
> >
> > Yes, we are working on HVM and using 9p and virt-serial over virtio, and looks 9p do not

have a

Quoted 2 lines

> similar
> > component in Xen ecosystem. What's the status of XenFS and how do you think about filesystem

share

Quoted 28 lines

in
> Xen?
> >
> > On Mon, Jun 8, 2015 at 6:18 PM Stefano Stabellini <[email protected]> wrote:
> > Hi Xu,
> >
> > Thank you for the very quick reply! I am very happy to hear that Xen
> > support is coming so soon.
> >
> > >From the technical point of view, I think that HVM guests with the
> > explicit kernel and initrd options is a very good choice for the initial
> > implementation.
> >
> > PVH will probably be a better alternative going forward because startup
> > times are far lower, but at this stage is still not as stable as regular
> > HVM guests, so I would wait for another Xen release or two before using
> > them. Old style PV guests might still be a decent alternative for
> > people that really care about startup times, because they boot really
> > quickly. They also have good performance in a nested virtualization
> > environment, such as people deploying containers on Amazon AWS. However
> > on native they offer lower performance than PVH or HVM guests.
> >
> > You mentioned virtio: are you using virtio 9p fs or one of the other
> > protocols (block, net, etc)?
> >
> > Cheers,
> >
> > Stefano

Quoted 8 lines

> >
> >
> > On Fri, 5 Jun 2015, Wang Xu wrote:
> > > Hello Stefano,
> > >
> > > It is very glad to get message from Xen.
> > >
> > > Xen is a great innovation and one of the most widely adopted hypervisor, we believe

we

Quoted 5 lines

should
> > support it as
> > > soon as possible.
> > >
> > > We are currently busy working on Xen support and will announce the initial support

in the

Quoted 4 lines

next
> > week.
> > >
> > > The initial support is working on Xen 4.5 hvm mode, because it is easy to specify

kernel and

Quoted 6 lines
       >       >       initrd during
       >       >       > boot and support virtio, which we have already used in the kvm version.
       >       >       >
       >       >       > We also considered PVH on Xen 4.4, but met some trouble with that.
       >       >       >
       >       >       > We are very interesting in cooperating with Xen upstream to have a better support in

the

Quoted 62 lines
       >       >       future.
       >       >       >
       >       >       > Thank you for your message!
       >       >       >
       >       >       > Cheers!
       >       >       >
       >       >       > Xu Wang
       >       >       > Cofounder & CTO of Hyper
       >       >       >
       >       >       >
       >       >       > Stefano Stabellini <[email protected]>于2015年6月6日周六 00:14写道:
       >       >       >       Hello Xu, Feng, Lei,
       >       >       >
       >       >       >       My name is Stefano Stabellini and I lead the Xen Project team within
       >       >       >       Citrix.  I am also one of the Xen maintainers.
       >       >       >
       >       >       >       Let me introduce you to Lars Kurth, chair of the Xen Project advisory
       >       >       >       board, and Sarah Conway, that represents the Linux Foundation. As you
       >       >       >       probably know, Xen Project is a Linux Foundation collaborative project.
       >       >       >
       >       >       >
       >       >       >       I wanted to get in touch with you regarding your new project, Hyper:  I
       >       >       >       am really glad to see that you are stepping up to bring the security and
       >       >       >       flexibility of hypervisor solutions to the world of containers. I think is
       >       >       >       a key project that will benefit the containers and cloud industry as a
       >       >       >       whole.  In fact I have been investigating the best way to run containers
       >       >       >       on Xen myself during the last few months.
       >       >       >
       >       >       >
       >       >       >       I read that Hyper is hypervisor agnostic and I am glad that Xen is
       >       >       >       already on the roadmap.
       >       >       >
       >       >       >       I understand that Hyper is still young, but do you have any timelines on
       >       >       >       when you are planning to introduce Xen support to Hyper?  Would you be
       >       >       >       interested in discussing the best way to do that?
       >       >       >
       >       >       >
       >       >       >       Cheers,
       >       >       >
       >       >       >       Stefano
       >       >       >
       >       >       >
       >       >       >
       >       >
       >       >
       >       >
       >
       >
       >
       >
       > --
       > Sarah Conway
       > PR Manager
       > The Linux Foundation
       > [email protected]
       > (978) 578-5300  Cell
       > Skype:  sarah.k.conway
       >
       >
Quoted 5 lines
Quoted 3 lines
Quoted 3 lines

--
Wang Xu

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

#15 lore raw
In reply to Dave Scott

Thank you Dave, I think I can also get work around for that.

By the way, the document says the name should be global unique, but I can start 2 domains have channels with a same name, is there some potential problems?

Cheers

Xu

Quoted 355 lines · Dave Scott

I don’t think the frontend driver in Linux knows about the name key. In my testing I wrote a udev script which looks up the ‘name’ key directly in xenstore and created a named device node using that. For reference my script is here:

https://github.com/mirage/mirage-console/blob/master/udev/xenconsole-setup-tty

Cheers,
Dave

Quoted 1 line
Quoted 1 line

and I directly test /dev/hvc1, and it could communicate with the

outside socket. Is there some mistake in my channel

Quoted 3 lines
Quoted 3 lines

name configuration?

| static void hyper_config_channel(libxl_device_channel* ch, const

char* name, const char* sock, int devid) {

Quoted 9 lines
Quoted 9 lines
|     libxl_device_channel_init(ch);
|     ch->backend_domid = 0;
|     ch->name = strdup(name);
|     ch->devid = devid;
|     ch->connection = LIBXL_CHANNEL_CONNECTION_SOCKET;
|     ch->u.socket.path = strdup(sock);
| }

I tried to look at the oVirt code as it is mentioned in the dock, but I

did not find xen console in its guest agent code.

Quoted 11 lines

So the issue is that the name you assign here to the channel, doesn't come up anywhere in the guest. Is that correct?

Quoted 4 lines

Thank you!

On Tue, Jun 23, 2015 at 7:30 PM, Stefano Stabellini <

Quoted 2 lines · [email protected]> wrote:
Quoted 2 lines · Wang Xu
Quoted 1 line

On Sat, Jun 20, 2015 at 1:10 AM Stefano Stabellini <

Quoted 1 line · [email protected]> wrote:
Quoted 1 line
Quoted 1 line

Integrating hyper with Xen using libxl was the right decision

and it

Quoted 1 line
Quoted 1 line
Quoted 1 line

looks like you did a good job. I think that you can go ahead

with the

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

PR!

But I did have a few issues building hyper. I am getting:

hyperd.go:11:2: cannot find package "hyper/daemon" in any of:
[...]

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

I tried with a clean 0.2-dev branch

Quoted 3 lines

./autogen.sh
./configure
make

It looks ok, are you work on the 0.2-dev branch, I did not write the

branch name in the instruction of

Quoted 4 lines
Quoted 4 lines

Readme, sorry for

Quoted 1 line

that.

No worries, the most important part at this stage is the code, and

that

Quoted 2 lines
Quoted 2 lines

looks OK :-)
Yes, I was using 0.2-dev and followed those steps. As I usually

don't

Quoted 1 line
Quoted 1 line

program in go, it is likely that my go working environment is

missing

Quoted 1 line
Quoted 1 line

something, or my go paths are wrong. This is the full error

message:

Quoted 2 lines
Quoted 2 lines

CGO_LDFLAGS="-Lhypervisor/xen -lxenlight -lxenctrl -lhyperxl"

godep go build hyperd.go

Quoted 2 lines
Quoted 2 lines

hyperd.go:11:2: cannot find package "hyper/daemon" in any of:
/local/scratch/sstabellini/go/src/hyper/daemon (from

$GOROOT)

Quoted 1 line
Quoted 1 line

/local/scratch/sstabellini/hyper/Godeps/_workspace/src/hyper/daemon (from $GOPATH)

Quoted 2 lines
Quoted 2 lines

hyperd.go:10:2: cannot find package "hyper/engine" in any of:
/local/scratch/sstabellini/go/src/hyper/engine (from

$GOROOT)

Quoted 1 line
Quoted 1 line

/local/scratch/sstabellini/hyper/Godeps/_workspace/src/hyper/engine (from $GOPATH)

Quoted 2 lines
Quoted 2 lines

hyperd.go:12:2: cannot find package "hyper/lib/glog" in any of:
/local/scratch/sstabellini/go/src/hyper/lib/glog (from

$GOROOT)

Quoted 1 line
Quoted 1 line

/local/scratch/sstabellini/hyper/Godeps/_workspace/src/hyper/lib/glog (from $GOPATH)

Quoted 2 lines
Quoted 2 lines

hyperd.go:13:2: cannot find package "hyper/utils" in any of:
/local/scratch/sstabellini/go/src/hyper/utils (from

$GOROOT)

Quoted 1 line
Quoted 1 line

/local/scratch/sstabellini/hyper/Godeps/_workspace/src/hyper/utils (from $GOPATH)

Quoted 5 lines
Quoted 5 lines

godep: go exit status 1

Quoted 2 lines

Looking through the code, it seems that you are adding a virtio-serial-pci device, why do you need it? It is not used

very much

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

on Xen; the regular Xen uart is specified by setting b_info->u.hvm.serial to "pty", and it looks like you are

already doing

Quoted 1 line
Quoted 1 line
Quoted 1 line

that. If you need more than one console, you can have a list

setting

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
       b_info->u.hvm.serial_list.

What the difference between u.hvm.serial_list and channels in

domain_config. The channel looks having more

Quoted 3 lines
Quoted 3 lines

features.

Actually I think that you are right: channels are better tested

and more

Quoted 4 lines
Quoted 4 lines

flexible.

Quoted 1 line

virtio-9p-pci is also not used very much with Xen, but as we

don't have

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

an alternative yet, I think it is good for now.

Thanks again,

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

Stefano

On Fri, 19 Jun 2015, Sarah Conway wrote:
> Hi Xu,
> I'd be happy to work with you on some PR to promote this

work. I'll be in touch with some next steps

Quoted 7 lines
Quoted 7 lines

next

Quoted 6 lines
       week and look
       > forward to Stefano's feedback.
       >
       > Sarah
       >
       > On Fri, Jun 19, 2015 at 12:09 PM, Lars Kurth <
Quoted 2 lines · [email protected]> wrote:
Quoted 2 lines
Quoted 2 lines

> Xu,
> Fantastic! If you wanted to do some PR, such as a joint Xen

Project / Linux Foundation and Hyper

Quoted 3 lines
Quoted 3 lines

press

Quoted 2 lines

release or
> other PR, we should start working on that after Stefano had a

look

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

> Let me know
> Regards
> Lars
>
> From: Wang Xu <[email protected]>
> Date: Friday, 19 June 2015 16:54
> To: "[email protected]" <

[email protected]>

Quoted 1 line
Quoted 1 line
Quoted 1 line

> Cc: "[email protected]" <[email protected]>, Sarah Conway <

[email protected]>, Lars Kurth

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
       <[email protected]>,
       > "[email protected]" <[email protected]>, "[email protected]" <

[email protected]>

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

> Subject: Re: Hyper and Xen Project
>
> Hi Stefano and Lars, Sarah,
> I'd like to share some progress of Xen support of Hyper with

you.

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

>
> The source code of hyper with xen support has been pushed to

0.2-dev branch (

Quoted 1 line
Quoted 1 line
Quoted 1 line
       > https://github.com/hyperhq/hyper/tree/0.2-dev ). Before

release the binary packages, there are still

Quoted 3 lines
Quoted 3 lines

some

Quoted 2 lines

test and
> tuning work to do, but I think it's better to share the

information with you firstly.

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

>
> Hyper supports HVM/Xen 4.5 as the first step, in which we

used C and Go to talk with Xen through

Quoted 3 lines
Quoted 3 lines

libxl.

Quoted 2 lines

libxl is
> well organized and help us much, though It took us some time

to understand/debug the signal

Quoted 5 lines
Quoted 5 lines

processing and

Quoted 4 lines

nic
> hotplug.
>
> You can check out the code and try to build it from source as

description listed in README if you

Quoted 3 lines
Quoted 3 lines

have

Quoted 2 lines

interests.
> And any suggestions on performance and reliability are

appreciated.

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
       >
       > Cheers!
       > Xu
       >
       > On Tue, Jun 9, 2015 at 5:41 PM Stefano Stabellini <
Quoted 1 line · [email protected]> wrote:
Quoted 1 line
Quoted 1 line

> You are right, we don't really have an equivalent to 9p

in the Xen

Quoted 1 line
Quoted 1 line
Quoted 1 line

> ecosystem at the moment. We had a prototype called

XenFS, like you

Quoted 1 line
Quoted 1 line
Quoted 1 line

> wrote, but it had never reached production quality, so

it was removed.

Quoted 1 line
Quoted 1 line
Quoted 1 line

> But we now have an OPW student working on a Xen

paravirtualized 9p fs

Quoted 1 line
Quoted 1 line
Quoted 1 line

> interface. Once she finishes the initial prototype, we

could prioritize

Quoted 1 line
Quoted 1 line
Quoted 1 line

> it within the community and work together to complete

it.

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

>
> How are you using virtio 9p fs? What Docker storage

backend are you

Quoted 1 line
Quoted 1 line
Quoted 1 line

> using? I am asking because when I looked into running

Docker container

Quoted 1 line
Quoted 1 line
Quoted 1 line

> images as Xen VMs, I was able to boot VMs without any

filesystem share,

Quoted 1 line
Quoted 1 line
Quoted 1 line

> by using the devices set up by Docker's device mapper

backend directly.

Quoted 1 line
Quoted 1 line
Quoted 1 line

> I think that using storage devices directly as

backends, when possible,

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

> is preferable because of performance and security.
>
>
> On Tue, 9 Jun 2015, Wang Xu wrote:
> > Hi Stefano,
> >
> > Yes, we are working on HVM and using 9p and

virt-serial over virtio, and looks 9p do not

Quoted 3 lines
Quoted 3 lines

have a

Quoted 2 lines

> similar
> > component in Xen ecosystem. What's the status of

XenFS and how do you think about filesystem

Quoted 5 lines
Quoted 5 lines

share

Quoted 4 lines

in
> Xen?
> >
> > On Mon, Jun 8, 2015 at 6:18 PM Stefano Stabellini <

Quoted 3 lines · [email protected]> wrote:
Quoted 3 lines
Quoted 3 lines
       >       >       Hi Xu,
       >       >
       >       >       Thank you for the very quick reply!  I am very

happy to hear that Xen

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
       >       >       support is coming so soon.
       >       >
       >       >       >From the technical point of view, I think that

HVM guests with the

Quoted 1 line
Quoted 1 line
Quoted 1 line

> > explicit kernel and initrd options is a very

good choice for the initial

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
       >       >       implementation.
       >       >
       >       >       PVH will probably be a better alternative going

forward because startup

Quoted 1 line
Quoted 1 line
Quoted 1 line

> > times are far lower, but at this stage is still

not as stable as regular

Quoted 1 line
Quoted 1 line
Quoted 1 line

> > HVM guests, so I would wait for another Xen

release or two before using

Quoted 1 line
Quoted 1 line
Quoted 1 line

> > them. Old style PV guests might still be a

decent alternative for

Quoted 1 line
Quoted 1 line
Quoted 1 line

> > people that really care about startup times,

because they boot really

Quoted 1 line
Quoted 1 line
Quoted 1 line

> > quickly. They also have good performance in a

nested virtualization

Quoted 1 line
Quoted 1 line
Quoted 1 line

> > environment, such as people deploying

containers on Amazon AWS. However

Quoted 1 line
Quoted 1 line
Quoted 1 line

> > on native they offer lower performance than PVH

or HVM guests.

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

> >
> > You mentioned virtio: are you using virtio 9p

fs or one of the other

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
       >       >       protocols (block, net, etc)?
       >       >
       >       >       Cheers,
       >       >
       >       >       Stefano
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
       >       >
       >       >
       >       >       On Fri, 5 Jun 2015, Wang Xu wrote:
       >       >       > Hello Stefano,
       >       >       >
       >       >       > It is very glad to get message from Xen.
       >       >       >
       >       >       > Xen is a great innovation and one of the most

widely adopted hypervisor, we believe

Quoted 6 lines
Quoted 6 lines

we

Quoted 5 lines

should
> > support it as
> > > soon as possible.
> > >
> > > We are currently busy working on Xen support

and will announce the initial support

Quoted 5 lines
Quoted 5 lines

in the

Quoted 4 lines

next
> > week.
> > >
> > > The initial support is working on Xen 4.5 hvm

mode, because it is easy to specify

Quoted 3 lines
Quoted 3 lines

kernel and

Quoted 2 lines
       >       >       initrd during
       >       >       > boot and support virtio, which we have

already used in the kvm version.

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
       >       >       >
       >       >       > We also considered PVH on Xen 4.4, but met

some trouble with that.

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
       >       >       >
       >       >       > We are very interesting in cooperating with

Xen upstream to have a better support in

Quoted 12 lines
Quoted 12 lines

the

Quoted 11 lines
       >       >       future.
       >       >       >
       >       >       > Thank you for your message!
       >       >       >
       >       >       > Cheers!
       >       >       >
       >       >       > Xu Wang
       >       >       > Cofounder & CTO of Hyper
       >       >       >
       >       >       >
       >       >       > Stefano Stabellini <
Quoted 3 lines · [email protected]>于2015年6月6日周六 00:14写道:
Quoted 3 lines
Quoted 3 lines
       >       >       >       Hello Xu, Feng, Lei,
       >       >       >
       >       >       >       My name is Stefano Stabellini and I

lead the Xen Project team within

Quoted 1 line
Quoted 1 line
Quoted 1 line

> > > Citrix. I am also one of the Xen

maintainers.

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
       >       >       >
       >       >       >       Let me introduce you to Lars Kurth,

chair of the Xen Project advisory

Quoted 1 line
Quoted 1 line
Quoted 1 line

> > > board, and Sarah Conway, that

represents the Linux Foundation. As you

Quoted 1 line
Quoted 1 line
Quoted 1 line

> > > probably know, Xen Project is a Linux

Foundation collaborative project.

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
       >       >       >
       >       >       >
       >       >       >       I wanted to get in touch with you

regarding your new project, Hyper: I

Quoted 1 line
Quoted 1 line
Quoted 1 line

> > > am really glad to see that you are

stepping up to bring the security and

Quoted 1 line
Quoted 1 line
Quoted 1 line

> > > flexibility of hypervisor solutions to

the world of containers. I think is

Quoted 1 line
Quoted 1 line
Quoted 1 line

> > > a key project that will benefit the

containers and cloud industry as a

Quoted 1 line
Quoted 1 line
Quoted 1 line

> > > whole. In fact I have been

investigating the best way to run containers

Quoted 1 line
Quoted 1 line
Quoted 1 line

> > > on Xen myself during the last few

months.

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
       >       >       >
       >       >       >
       >       >       >       I read that Hyper is hypervisor

agnostic and I am glad that Xen is

Quoted 44 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
       >       >       >       already on the roadmap.
       >       >       >
       >       >       >       I understand that Hyper is still young,

but do you have any timelines on

Quoted 1 line
Quoted 1 line
Quoted 1 line

> > > when you are planning to introduce Xen

support to Hyper? Would you be

Quoted 1 line
Quoted 1 line
Quoted 1 line

> > > interested in discussing the best way

to do that?

Quoted 34 lines
Quoted 34 lines
Quoted 16 lines
       >       >       >
       >       >       >
       >       >       >       Cheers,
       >       >       >
       >       >       >       Stefano
       >       >       >
       >       >       >
       >       >       >
       >       >
       >       >
       >       >
       >
       >
       >
       >
       > --
Quoted 11 lines
       > Sarah Conway
       > PR Manager
       > The Linux Foundation
       > [email protected]
       > (978) 578-5300  Cell
       > Skype:  sarah.k.conway
       >
       >

--
Wang Xu

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

#16 lore raw

Hi Xu,

Quoted 5 lines · Wang Xu

Thank you Dave, I think I can also get work around for that.

By the way, the document says the name should be global unique, but I can start 2 domains have channels with a same name, is there some potential problems?

The name needs to be unique within a domain. It’s ok to have

1. domid 10, channel name ‘agent’
2. domid 11, channel name ‘agent’

— this will be common, as multiple domains will have the same ‘agent’ software installed.

but it will cause problems if the name is used twice within a domain. It’s a bad idea to have

1: domid 10, channel name ‘agent’
2: domid 10, channel name ‘agent’

— although this will create 2 distinct /dev/hvc devices, it will be difficult to tell which is which.

If libxl allows the name to be duplicated within a domain, then this is my fault. We should add validation code to check uniqueness.

Thanks,
Dave

Quoted 5 lines

Cheers

Xu

Quoted 300 lines

On Wed, Jun 24, 2015 at 9:03 PM Dave Scott <[email protected]> wrote:
I don’t think the frontend driver in Linux knows about the name key. In my testing I wrote a udev script which looks up the ‘name’ key directly in xenstore and created a named device node using that. For reference my script is here:

https://github.com/mirage/mirage-console/blob/master/udev/xenconsole-setup-tty

Cheers,
Dave

Quoted 291 lines
Quoted 12 lines

and I directly test /dev/hvc1, and it could communicate with the outside socket. Is there some mistake in my channel name configuration?

| static void hyper_config_channel(libxl_device_channel* ch, const char* name, const char* sock, int devid) {
|     libxl_device_channel_init(ch);
|     ch->backend_domid = 0;
|     ch->name = strdup(name);
|     ch->devid = devid;
|     ch->connection = LIBXL_CHANNEL_CONNECTION_SOCKET;
|     ch->u.socket.path = strdup(sock);
| }
Quoted 1 line

I tried to look at the oVirt code as it is mentioned in the dock, but I did not find xen console in its guest agent code.

So the issue is that the name you assign here to the channel, doesn't come up anywhere in the guest. Is that correct?

Quoted 271 lines

Thank you!

On Tue, Jun 23, 2015 at 7:30 PM, Stefano Stabellini <[email protected]> wrote:

     On Tue, 23 Jun 2015, Wang Xu wrote:
Quoted 11 lines · Stefano Stabellini

Integrating hyper with Xen using libxl was the right decision and it looks like you did a good job. I think that you can go ahead with the PR!

But I did have a few issues building hyper. I am getting:

hyperd.go:11:2: cannot find package "hyper/daemon" in any of:
[...]

Quoted 6 lines

I tried with a clean 0.2-dev branch

Quoted 3 lines

./autogen.sh
./configure
make

It looks ok, are you work on the 0.2-dev branch, I did not write the branch name in the instruction of

Readme, sorry for

Quoted 1 line

that.

No worries, the most important part at this stage is the code, and that looks OK :-)
Yes, I was using 0.2-dev and followed those steps. As I usually don't program in go, it is likely that my go working environment is missing something, or my go paths are wrong. This is the full error message:

CGO_LDFLAGS="-Lhypervisor/xen -lxenlight -lxenctrl -lhyperxl" godep go build hyperd.go hyperd.go:11:2: cannot find package "hyper/daemon" in any of:
/local/scratch/sstabellini/go/src/hyper/daemon (from $GOROOT) /local/scratch/sstabellini/hyper/Godeps/_workspace/src/hyper/daemon (from $GOPATH)
hyperd.go:10:2: cannot find package "hyper/engine" in any of:
/local/scratch/sstabellini/go/src/hyper/engine (from $GOROOT) /local/scratch/sstabellini/hyper/Godeps/_workspace/src/hyper/engine (from $GOPATH)
hyperd.go:12:2: cannot find package "hyper/lib/glog" in any of:
/local/scratch/sstabellini/go/src/hyper/lib/glog (from $GOROOT) /local/scratch/sstabellini/hyper/Godeps/_workspace/src/hyper/lib/glog (from $GOPATH)
hyperd.go:13:2: cannot find package "hyper/utils" in any of:
/local/scratch/sstabellini/go/src/hyper/utils (from $GOROOT) /local/scratch/sstabellini/hyper/Godeps/_workspace/src/hyper/utils (from $GOPATH)
godep: go exit status 1

Quoted 8 lines

Looking through the code, it seems that you are adding a virtio-serial-pci device, why do you need it? It is not used very much on Xen; the regular Xen uart is specified by setting b_info->u.hvm.serial to "pty", and it looks like you are already doing that. If you need more than one console, you can have a list setting b_info->u.hvm.serial_list.

What the difference between u.hvm.serial_list and channels in domain_config. The channel looks having more

features.

Actually I think that you are right: channels are better tested and more flexible.

Quoted 6 lines

virtio-9p-pci is also not used very much with Xen, but as we don't have an alternative yet, I think it is good for now.

Thanks again,

Quoted 7 lines

Stefano

On Fri, 19 Jun 2015, Sarah Conway wrote:
> Hi Xu,
> I'd be happy to work with you on some PR to promote this work. I'll be in touch with some next steps

next

Quoted 8 lines

week and look
> forward to Stefano's feedback.
>
> Sarah
>
> On Fri, Jun 19, 2015 at 12:09 PM, Lars Kurth <[email protected]> wrote:
> Xu,
> Fantastic! If you wanted to do some PR, such as a joint Xen Project / Linux Foundation and Hyper

press

Quoted 11 lines

release or
> other PR, we should start working on that after Stefano had a look
> Let me know
> Regards
> Lars
>
> From: Wang Xu <[email protected]>
> Date: Friday, 19 June 2015 16:54
> To: "[email protected]" <[email protected]>
> Cc: "[email protected]" <[email protected]>, Sarah Conway <[email protected]>, Lars Kurth <[email protected]>,

Quoted 8 lines

> "[email protected]" <[email protected]>, "[email protected]" <[email protected]> > Subject: Re: Hyper and Xen Project
>
> Hi Stefano and Lars, Sarah,
> I'd like to share some progress of Xen support of Hyper with you.
>
> The source code of hyper with xen support has been pushed to 0.2-dev branch (
> https://github.com/hyperhq/hyper/tree/0.2-dev ). Before release the binary packages, there are still

some

Quoted 4 lines

test and
> tuning work to do, but I think it's better to share the information with you firstly. >
> Hyper supports HVM/Xen 4.5 as the first step, in which we used C and Go to talk with Xen through

libxl.

Quoted 2 lines

libxl is
> well organized and help us much, though It took us some time to understand/debug the signal

processing and

Quoted 4 lines

nic
> hotplug.
>
> You can check out the code and try to build it from source as description listed in README if you

have

Quoted 18 lines

interests.
> And any suggestions on performance and reliability are appreciated.
>
> Cheers!
> Xu
>
> On Tue, Jun 9, 2015 at 5:41 PM Stefano Stabellini <[email protected]> wrote:
> You are right, we don't really have an equivalent to 9p in the Xen
> ecosystem at the moment. We had a prototype called XenFS, like you
> wrote, but it had never reached production quality, so it was removed.
> But we now have an OPW student working on a Xen paravirtualized 9p fs
> interface. Once she finishes the initial prototype, we could prioritize
> it within the community and work together to complete it.
>
> How are you using virtio 9p fs? What Docker storage backend are you
> using? I am asking because when I looked into running Docker container
> images as Xen VMs, I was able to boot VMs without any filesystem share,
> by using the devices set up by Docker's device mapper backend directly.

Quoted 8 lines

> I think that using storage devices directly as backends, when possible,
> is preferable because of performance and security.
>
>
> On Tue, 9 Jun 2015, Wang Xu wrote:
> > Hi Stefano,
> >
> > Yes, we are working on HVM and using 9p and virt-serial over virtio, and looks 9p do not

have a

Quoted 2 lines

> similar
> > component in Xen ecosystem. What's the status of XenFS and how do you think about filesystem

share

Quoted 28 lines

in
> Xen?
> >
> > On Mon, Jun 8, 2015 at 6:18 PM Stefano Stabellini <[email protected]> wrote:
> > Hi Xu,
> >
> > Thank you for the very quick reply! I am very happy to hear that Xen
> > support is coming so soon.
> >
> > >From the technical point of view, I think that HVM guests with the
> > explicit kernel and initrd options is a very good choice for the initial
> > implementation.
> >
> > PVH will probably be a better alternative going forward because startup
> > times are far lower, but at this stage is still not as stable as regular
> > HVM guests, so I would wait for another Xen release or two before using
> > them. Old style PV guests might still be a decent alternative for
> > people that really care about startup times, because they boot really
> > quickly. They also have good performance in a nested virtualization
> > environment, such as people deploying containers on Amazon AWS. However
> > on native they offer lower performance than PVH or HVM guests.
> >
> > You mentioned virtio: are you using virtio 9p fs or one of the other
> > protocols (block, net, etc)?
> >
> > Cheers,
> >
> > Stefano

Quoted 8 lines

> >
> >
> > On Fri, 5 Jun 2015, Wang Xu wrote:
> > > Hello Stefano,
> > >
> > > It is very glad to get message from Xen.
> > >
> > > Xen is a great innovation and one of the most widely adopted hypervisor, we believe

we

Quoted 5 lines

should
> > support it as
> > > soon as possible.
> > >
> > > We are currently busy working on Xen support and will announce the initial support

in the

Quoted 4 lines

next
> > week.
> > >
> > > The initial support is working on Xen 4.5 hvm mode, because it is easy to specify

kernel and

Quoted 6 lines
       >       >       initrd during
       >       >       > boot and support virtio, which we have already used in the kvm version.
       >       >       >
       >       >       > We also considered PVH on Xen 4.4, but met some trouble with that.
       >       >       >
       >       >       > We are very interesting in cooperating with Xen upstream to have a better support in

the

Quoted 51 lines
       >       >       future.
       >       >       >
       >       >       > Thank you for your message!
       >       >       >
       >       >       > Cheers!
       >       >       >
       >       >       > Xu Wang
       >       >       > Cofounder & CTO of Hyper
       >       >       >
       >       >       >
       >       >       > Stefano Stabellini <[email protected]>于2015年6月6日周六 00:14写道:
       >       >       >       Hello Xu, Feng, Lei,
       >       >       >
       >       >       >       My name is Stefano Stabellini and I lead the Xen Project team within
       >       >       >       Citrix.  I am also one of the Xen maintainers.
       >       >       >
       >       >       >       Let me introduce you to Lars Kurth, chair of the Xen Project advisory
       >       >       >       board, and Sarah Conway, that represents the Linux Foundation. As you
       >       >       >       probably know, Xen Project is a Linux Foundation collaborative project.
       >       >       >
       >       >       >
       >       >       >       I wanted to get in touch with you regarding your new project, Hyper:  I
       >       >       >       am really glad to see that you are stepping up to bring the security and
       >       >       >       flexibility of hypervisor solutions to the world of containers. I think is
       >       >       >       a key project that will benefit the containers and cloud industry as a
       >       >       >       whole.  In fact I have been investigating the best way to run containers
       >       >       >       on Xen myself during the last few months.
       >       >       >
       >       >       >
       >       >       >       I read that Hyper is hypervisor agnostic and I am glad that Xen is
       >       >       >       already on the roadmap.
       >       >       >
       >       >       >       I understand that Hyper is still young, but do you have any timelines on
       >       >       >       when you are planning to introduce Xen support to Hyper?  Would you be
       >       >       >       interested in discussing the best way to do that?
       >       >       >
       >       >       >
       >       >       >       Cheers,
       >       >       >
       >       >       >       Stefano
       >       >       >
       >       >       >
       >       >       >
       >       >
       >       >
       >       >
       >
       >
       >
       >
       > --
Quoted 11 lines
       > Sarah Conway
       > PR Manager
       > The Linux Foundation
       > [email protected]
       > (978) 578-5300  Cell
       > Skype:  sarah.k.conway
       >
       >

--
Wang Xu

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

#17 lore raw

Agree, but I think the document is a bit confused

Quoted 1 line

It is important that channel names are globally unique.

https://github.com/mirage/xen/blob/master/docs/misc/channel.txt#L94

Quoted 395 lines · Dave Scott

Hi Xu,

Quoted 5 lines · Wang Xu

Thank you Dave, I think I can also get work around for that.

By the way, the document says the name should be global unique, but I

can start 2 domains have channels with a same name, is there some potential problems?

The name needs to be unique within a domain. It’s ok to have

1. domid 10, channel name ‘agent’
2. domid 11, channel name ‘agent’

— this will be common, as multiple domains will have the same ‘agent’ software installed.

but it will cause problems if the name is used twice within a domain. It’s a bad idea to have

1: domid 10, channel name ‘agent’
2: domid 10, channel name ‘agent’

— although this will create 2 distinct /dev/hvc devices, it will be difficult to tell which is which.

If libxl allows the name to be duplicated within a domain, then this is my fault. We should add validation code to check uniqueness.

Thanks,
Dave

Quoted 6 lines

Cheers

Xu

On Wed, Jun 24, 2015 at 9:03 PM Dave Scott <[email protected]>

Quoted 1 line · wrote:

I don’t think the frontend driver in Linux knows about the name key. In

my testing I wrote a udev script which looks up the ‘name’ key directly in xenstore and created a named device node using that. For reference my script is here:

Quoted 2 lines

https://github.com/mirage/mirage-console/blob/master/udev/xenconsole-setup-tty

Quoted 5 lines

Cheers,
Dave

Quoted 1 line
Quoted 1 line

and I directly test /dev/hvc1, and it could communicate with the

outside socket. Is there some mistake in my channel

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

name configuration?

| static void hyper_config_channel(libxl_device_channel* ch, const

char* name, const char* sock, int devid) {

Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
|     libxl_device_channel_init(ch);
|     ch->backend_domid = 0;
|     ch->name = strdup(name);
|     ch->devid = devid;
|     ch->connection = LIBXL_CHANNEL_CONNECTION_SOCKET;
|     ch->u.socket.path = strdup(sock);
| }

I tried to look at the oVirt code as it is mentioned in the dock, but

I did not find xen console in its guest agent code.

Quoted 11 lines
Quoted 11 lines

So the issue is that the name you assign here to the channel, doesn't come up anywhere in the guest. Is that correct?

Quoted 4 lines

Thank you!

On Tue, Jun 23, 2015 at 7:30 PM, Stefano Stabellini <

Quoted 2 lines · [email protected]> wrote:
Quoted 2 lines
Quoted 2 lines · Wang Xu
Quoted 1 line

On Sat, Jun 20, 2015 at 1:10 AM Stefano Stabellini <

Quoted 1 line · [email protected]> wrote:
Quoted 1 line
Quoted 1 line
Quoted 1 line

Integrating hyper with Xen using libxl was the right decision

and it

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

looks like you did a good job. I think that you can go ahead

with the

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

PR!

But I did have a few issues building hyper. I am getting:

hyperd.go:11:2: cannot find package "hyper/daemon" in any of:
[...]

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

I tried with a clean 0.2-dev branch

Quoted 3 lines

./autogen.sh
./configure
make

It looks ok, are you work on the 0.2-dev branch, I did not write the

branch name in the instruction of

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

Readme, sorry for

Quoted 1 line

that.

No worries, the most important part at this stage is the code,

and that

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

looks OK :-)
Yes, I was using 0.2-dev and followed those steps. As I usually

don't

Quoted 1 line
Quoted 1 line
Quoted 1 line

program in go, it is likely that my go working environment is

missing

Quoted 1 line
Quoted 1 line
Quoted 1 line

something, or my go paths are wrong. This is the full error

message:

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

CGO_LDFLAGS="-Lhypervisor/xen -lxenlight -lxenctrl -lhyperxl"

godep go build hyperd.go

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

hyperd.go:11:2: cannot find package "hyper/daemon" in any of:
/local/scratch/sstabellini/go/src/hyper/daemon (from

$GOROOT)

Quoted 1 line
Quoted 1 line
Quoted 1 line

/local/scratch/sstabellini/hyper/Godeps/_workspace/src/hyper/daemon (from $GOPATH)

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

hyperd.go:10:2: cannot find package "hyper/engine" in any of:
/local/scratch/sstabellini/go/src/hyper/engine (from

$GOROOT)

Quoted 1 line
Quoted 1 line
Quoted 1 line

/local/scratch/sstabellini/hyper/Godeps/_workspace/src/hyper/engine (from $GOPATH)

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

hyperd.go:12:2: cannot find package "hyper/lib/glog" in any of:
/local/scratch/sstabellini/go/src/hyper/lib/glog (from

$GOROOT)

Quoted 1 line
Quoted 1 line
Quoted 1 line

/local/scratch/sstabellini/hyper/Godeps/_workspace/src/hyper/lib/glog (from $GOPATH)

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

hyperd.go:13:2: cannot find package "hyper/utils" in any of:
/local/scratch/sstabellini/go/src/hyper/utils (from

$GOROOT)

Quoted 1 line
Quoted 1 line
Quoted 1 line

/local/scratch/sstabellini/hyper/Godeps/_workspace/src/hyper/utils (from $GOPATH)

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

godep: go exit status 1

Quoted 2 lines

Looking through the code, it seems that you are adding a virtio-serial-pci device, why do you need it? It is not used

very much

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

on Xen; the regular Xen uart is specified by setting b_info->u.hvm.serial to "pty", and it looks like you are

already doing

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

that. If you need more than one console, you can have a list

setting

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
       b_info->u.hvm.serial_list.

What the difference between u.hvm.serial_list and channels in

domain_config. The channel looks having more

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

features.

Actually I think that you are right: channels are better tested

and more

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

flexible.

Quoted 1 line

virtio-9p-pci is also not used very much with Xen, but as we

don't have

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

an alternative yet, I think it is good for now.

Thanks again,

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

Stefano

On Fri, 19 Jun 2015, Sarah Conway wrote:
> Hi Xu,
> I'd be happy to work with you on some PR to promote this

work. I'll be in touch with some next steps

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

next

Quoted 6 lines
       week and look
       > forward to Stefano's feedback.
       >
       > Sarah
       >
       > On Fri, Jun 19, 2015 at 12:09 PM, Lars Kurth <
Quoted 2 lines · [email protected]> wrote:
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

> Xu,
> Fantastic! If you wanted to do some PR, such as a joint Xen

Project / Linux Foundation and Hyper

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

press

Quoted 2 lines

release or
> other PR, we should start working on that after Stefano had

a look

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

> Let me know
> Regards
> Lars
>
> From: Wang Xu <[email protected]>
> Date: Friday, 19 June 2015 16:54
> To: "[email protected]" <

[email protected]>

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

> Cc: "[email protected]" <[email protected]>, Sarah Conway <

[email protected]>, Lars Kurth

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
       <[email protected]>,
       > "[email protected]" <[email protected]>, "[email protected]" <

[email protected]>

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

> Subject: Re: Hyper and Xen Project
>
> Hi Stefano and Lars, Sarah,
> I'd like to share some progress of Xen support of Hyper

with you.

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

>
> The source code of hyper with xen support has been pushed

to 0.2-dev branch (

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
       > https://github.com/hyperhq/hyper/tree/0.2-dev ). Before

release the binary packages, there are still

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

some

Quoted 2 lines

test and
> tuning work to do, but I think it's better to share the

information with you firstly.

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

>
> Hyper supports HVM/Xen 4.5 as the first step, in which we

used C and Go to talk with Xen through

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

libxl.

Quoted 2 lines

libxl is
> well organized and help us much, though It took us some

time to understand/debug the signal

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

processing and

Quoted 4 lines

nic
> hotplug.
>
> You can check out the code and try to build it from source

as description listed in README if you

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

have

Quoted 2 lines

interests.
> And any suggestions on performance and reliability are

appreciated.

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
       >
       > Cheers!
       > Xu
       >
       > On Tue, Jun 9, 2015 at 5:41 PM Stefano Stabellini <
Quoted 1 line · [email protected]> wrote:
Quoted 1 line
Quoted 1 line
Quoted 1 line

> You are right, we don't really have an equivalent to

9p in the Xen

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

> ecosystem at the moment. We had a prototype called

XenFS, like you

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

> wrote, but it had never reached production quality,

so it was removed.

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

> But we now have an OPW student working on a Xen

paravirtualized 9p fs

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

> interface. Once she finishes the initial prototype,

we could prioritize

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

> it within the community and work together to complete

it.

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

>
> How are you using virtio 9p fs? What Docker storage

backend are you

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

> using? I am asking because when I looked into

running Docker container

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

> images as Xen VMs, I was able to boot VMs without any

filesystem share,

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

> by using the devices set up by Docker's device mapper

backend directly.

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

> I think that using storage devices directly as

backends, when possible,

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

> is preferable because of performance and security.
>
>
> On Tue, 9 Jun 2015, Wang Xu wrote:
> > Hi Stefano,
> >
> > Yes, we are working on HVM and using 9p and

virt-serial over virtio, and looks 9p do not

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

have a

Quoted 2 lines

> similar
> > component in Xen ecosystem. What's the status of

XenFS and how do you think about filesystem

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

share

Quoted 4 lines

in
> Xen?
> >
> > On Mon, Jun 8, 2015 at 6:18 PM Stefano Stabellini <

Quoted 3 lines · [email protected]> wrote:
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
       >       >       Hi Xu,
       >       >
       >       >       Thank you for the very quick reply!  I am

very happy to hear that Xen

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
       >       >       support is coming so soon.
       >       >
       >       >       >From the technical point of view, I think

that HVM guests with the

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

> > explicit kernel and initrd options is a very

good choice for the initial

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
       >       >       implementation.
       >       >
       >       >       PVH will probably be a better alternative

going forward because startup

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

> > times are far lower, but at this stage is

still not as stable as regular

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

> > HVM guests, so I would wait for another Xen

release or two before using

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

> > them. Old style PV guests might still be a

decent alternative for

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

> > people that really care about startup times,

because they boot really

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

> > quickly. They also have good performance in a

nested virtualization

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

> > environment, such as people deploying

containers on Amazon AWS. However

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

> > on native they offer lower performance than

PVH or HVM guests.

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

> >
> > You mentioned virtio: are you using virtio

9p fs or one of the other

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
       >       >       protocols (block, net, etc)?
       >       >
       >       >       Cheers,
       >       >
       >       >       Stefano
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
       >       >
       >       >
       >       >       On Fri, 5 Jun 2015, Wang Xu wrote:
       >       >       > Hello Stefano,
       >       >       >
       >       >       > It is very glad to get message from Xen.
       >       >       >
       >       >       > Xen is a great innovation and one of the

most widely adopted hypervisor, we believe

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

we

Quoted 5 lines

should
> > support it as
> > > soon as possible.
> > >
> > > We are currently busy working on Xen

support and will announce the initial support

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

in the

Quoted 4 lines

next
> > week.
> > >
> > > The initial support is working on Xen 4.5

hvm mode, because it is easy to specify

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

kernel and

Quoted 2 lines
       >       >       initrd during
       >       >       > boot and support virtio, which we have

already used in the kvm version.

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
       >       >       >
       >       >       > We also considered PVH on Xen 4.4, but met

some trouble with that.

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
       >       >       >
       >       >       > We are very interesting in cooperating with

Xen upstream to have a better support in

Quoted 12 lines
Quoted 12 lines
Quoted 12 lines

the

Quoted 11 lines
       >       >       future.
       >       >       >
       >       >       > Thank you for your message!
       >       >       >
       >       >       > Cheers!
       >       >       >
       >       >       > Xu Wang
       >       >       > Cofounder & CTO of Hyper
       >       >       >
       >       >       >
       >       >       > Stefano Stabellini <
Quoted 3 lines · [email protected]>于2015年6月6日周六 00:14写道:
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
       >       >       >       Hello Xu, Feng, Lei,
       >       >       >
       >       >       >       My name is Stefano Stabellini and I

lead the Xen Project team within

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

> > > Citrix. I am also one of the Xen

maintainers.

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
       >       >       >
       >       >       >       Let me introduce you to Lars Kurth,

chair of the Xen Project advisory

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

> > > board, and Sarah Conway, that

represents the Linux Foundation. As you

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

> > > probably know, Xen Project is a Linux

Foundation collaborative project.

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
       >       >       >
       >       >       >
       >       >       >       I wanted to get in touch with you

regarding your new project, Hyper: I

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

> > > am really glad to see that you are

stepping up to bring the security and

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

> > > flexibility of hypervisor solutions

to the world of containers. I think is

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

> > > a key project that will benefit the

containers and cloud industry as a

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

> > > whole. In fact I have been

investigating the best way to run containers

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

> > > on Xen myself during the last few

months.

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
       >       >       >
       >       >       >
       >       >       >       I read that Hyper is hypervisor

agnostic and I am glad that Xen is

Quoted 45 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
       >       >       >       already on the roadmap.
       >       >       >
       >       >       >       I understand that Hyper is still

young, but do you have any timelines on

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

> > > when you are planning to introduce

Xen support to Hyper? Would you be

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

> > > interested in discussing the best way

to do that?

Quoted 35 lines
Quoted 34 lines
Quoted 34 lines
Quoted 16 lines
       >       >       >
       >       >       >
       >       >       >       Cheers,
       >       >       >
       >       >       >       Stefano
       >       >       >
       >       >       >
       >       >       >
       >       >
       >       >
       >       >
       >
       >
       >
       >
       > --
Quoted 11 lines
       > Sarah Conway
       > PR Manager
       > The Linux Foundation
       > [email protected]
       > (978) 578-5300  Cell
       > Skype:  sarah.k.conway
       >
       >

--
Wang Xu

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

#18 lore raw
Quoted 8 lines · Wang Xu

Agree, but I think the document is a bit confused

Quoted 1 line

It is important that channel names are globally unique.

https://github.com/mirage/xen/blob/master/docs/misc/channel.txt#L94

I agree— that wording is definitely confusing. Perhaps the docs should compare the channel names to TCP/UDP port numbers? We could say that

- the IANA port registry ~=~ the channel registry in the docs/ directory
- a single IP can only have one binding for a particular port at a time ~=~ a domain can only have one binding for a particular name at a time
- lots of IPs can bind the same port ~=~ lots of domains can bind the same name

What do you think?

Thanks,
Dave

Quoted 22 lines · Dave Scott

Hi Xu,

Quoted 5 lines · Wang Xu

Thank you Dave, I think I can also get work around for that.

By the way, the document says the name should be global unique, but I can start 2 domains have channels with a same name, is there some potential problems?

The name needs to be unique within a domain. It’s ok to have

1. domid 10, channel name ‘agent’
2. domid 11, channel name ‘agent’

— this will be common, as multiple domains will have the same ‘agent’ software installed.

but it will cause problems if the name is used twice within a domain. It’s a bad idea to have

1: domid 10, channel name ‘agent’
2: domid 10, channel name ‘agent’

Quoted 313 lines

— although this will create 2 distinct /dev/hvc devices, it will be difficult to tell which is which.

If libxl allows the name to be duplicated within a domain, then this is my fault. We should add validation code to check uniqueness.

Thanks,
Dave

Quoted 305 lines

Cheers

Xu

On Wed, Jun 24, 2015 at 9:03 PM Dave Scott <[email protected]> wrote:
I don’t think the frontend driver in Linux knows about the name key. In my testing I wrote a udev script which looks up the ‘name’ key directly in xenstore and created a named device node using that. For reference my script is here:

https://github.com/mirage/mirage-console/blob/master/udev/xenconsole-setup-tty

Cheers,
Dave

Quoted 291 lines
Quoted 12 lines

and I directly test /dev/hvc1, and it could communicate with the outside socket. Is there some mistake in my channel name configuration?

| static void hyper_config_channel(libxl_device_channel* ch, const char* name, const char* sock, int devid) {
|     libxl_device_channel_init(ch);
|     ch->backend_domid = 0;
|     ch->name = strdup(name);
|     ch->devid = devid;
|     ch->connection = LIBXL_CHANNEL_CONNECTION_SOCKET;
|     ch->u.socket.path = strdup(sock);
| }
Quoted 1 line

I tried to look at the oVirt code as it is mentioned in the dock, but I did not find xen console in its guest agent code.

So the issue is that the name you assign here to the channel, doesn't come up anywhere in the guest. Is that correct?

Quoted 271 lines

Thank you!

On Tue, Jun 23, 2015 at 7:30 PM, Stefano Stabellini <[email protected]> wrote:

     On Tue, 23 Jun 2015, Wang Xu wrote:
Quoted 11 lines · Stefano Stabellini

Integrating hyper with Xen using libxl was the right decision and it looks like you did a good job. I think that you can go ahead with the PR!

But I did have a few issues building hyper. I am getting:

hyperd.go:11:2: cannot find package "hyper/daemon" in any of:
[...]

Quoted 6 lines

I tried with a clean 0.2-dev branch

Quoted 3 lines

./autogen.sh
./configure
make

It looks ok, are you work on the 0.2-dev branch, I did not write the branch name in the instruction of

Readme, sorry for

Quoted 1 line

that.

No worries, the most important part at this stage is the code, and that looks OK :-)
Yes, I was using 0.2-dev and followed those steps. As I usually don't program in go, it is likely that my go working environment is missing something, or my go paths are wrong. This is the full error message:

CGO_LDFLAGS="-Lhypervisor/xen -lxenlight -lxenctrl -lhyperxl" godep go build hyperd.go hyperd.go:11:2: cannot find package "hyper/daemon" in any of:
/local/scratch/sstabellini/go/src/hyper/daemon (from $GOROOT) /local/scratch/sstabellini/hyper/Godeps/_workspace/src/hyper/daemon (from $GOPATH)
hyperd.go:10:2: cannot find package "hyper/engine" in any of:
/local/scratch/sstabellini/go/src/hyper/engine (from $GOROOT) /local/scratch/sstabellini/hyper/Godeps/_workspace/src/hyper/engine (from $GOPATH)
hyperd.go:12:2: cannot find package "hyper/lib/glog" in any of:
/local/scratch/sstabellini/go/src/hyper/lib/glog (from $GOROOT) /local/scratch/sstabellini/hyper/Godeps/_workspace/src/hyper/lib/glog (from $GOPATH)
hyperd.go:13:2: cannot find package "hyper/utils" in any of:
/local/scratch/sstabellini/go/src/hyper/utils (from $GOROOT) /local/scratch/sstabellini/hyper/Godeps/_workspace/src/hyper/utils (from $GOPATH)
godep: go exit status 1

Quoted 8 lines

Looking through the code, it seems that you are adding a virtio-serial-pci device, why do you need it? It is not used very much on Xen; the regular Xen uart is specified by setting b_info->u.hvm.serial to "pty", and it looks like you are already doing that. If you need more than one console, you can have a list setting b_info->u.hvm.serial_list.

What the difference between u.hvm.serial_list and channels in domain_config. The channel looks having more

features.

Actually I think that you are right: channels are better tested and more flexible.

Quoted 6 lines

virtio-9p-pci is also not used very much with Xen, but as we don't have an alternative yet, I think it is good for now.

Thanks again,

Quoted 7 lines

Stefano

On Fri, 19 Jun 2015, Sarah Conway wrote:
> Hi Xu,
> I'd be happy to work with you on some PR to promote this work. I'll be in touch with some next steps

next

Quoted 8 lines

week and look
> forward to Stefano's feedback.
>
> Sarah
>
> On Fri, Jun 19, 2015 at 12:09 PM, Lars Kurth <[email protected]> wrote:
> Xu,
> Fantastic! If you wanted to do some PR, such as a joint Xen Project / Linux Foundation and Hyper

press

Quoted 11 lines

release or
> other PR, we should start working on that after Stefano had a look
> Let me know
> Regards
> Lars
>
> From: Wang Xu <[email protected]>
> Date: Friday, 19 June 2015 16:54
> To: "[email protected]" <[email protected]>
> Cc: "[email protected]" <[email protected]>, Sarah Conway <[email protected]>, Lars Kurth <[email protected]>,

Quoted 8 lines

> "[email protected]" <[email protected]>, "[email protected]" <[email protected]> > Subject: Re: Hyper and Xen Project
>
> Hi Stefano and Lars, Sarah,
> I'd like to share some progress of Xen support of Hyper with you.
>
> The source code of hyper with xen support has been pushed to 0.2-dev branch (
> https://github.com/hyperhq/hyper/tree/0.2-dev ). Before release the binary packages, there are still

some

Quoted 4 lines

test and
> tuning work to do, but I think it's better to share the information with you firstly. >
> Hyper supports HVM/Xen 4.5 as the first step, in which we used C and Go to talk with Xen through

libxl.

Quoted 2 lines

libxl is
> well organized and help us much, though It took us some time to understand/debug the signal

processing and

Quoted 4 lines

nic
> hotplug.
>
> You can check out the code and try to build it from source as description listed in README if you

have

Quoted 18 lines

interests.
> And any suggestions on performance and reliability are appreciated.
>
> Cheers!
> Xu
>
> On Tue, Jun 9, 2015 at 5:41 PM Stefano Stabellini <[email protected]> wrote:
> You are right, we don't really have an equivalent to 9p in the Xen
> ecosystem at the moment. We had a prototype called XenFS, like you
> wrote, but it had never reached production quality, so it was removed.
> But we now have an OPW student working on a Xen paravirtualized 9p fs
> interface. Once she finishes the initial prototype, we could prioritize
> it within the community and work together to complete it.
>
> How are you using virtio 9p fs? What Docker storage backend are you
> using? I am asking because when I looked into running Docker container
> images as Xen VMs, I was able to boot VMs without any filesystem share,
> by using the devices set up by Docker's device mapper backend directly.

Quoted 8 lines

> I think that using storage devices directly as backends, when possible,
> is preferable because of performance and security.
>
>
> On Tue, 9 Jun 2015, Wang Xu wrote:
> > Hi Stefano,
> >
> > Yes, we are working on HVM and using 9p and virt-serial over virtio, and looks 9p do not

have a

Quoted 2 lines

> similar
> > component in Xen ecosystem. What's the status of XenFS and how do you think about filesystem

share

Quoted 28 lines

in
> Xen?
> >
> > On Mon, Jun 8, 2015 at 6:18 PM Stefano Stabellini <[email protected]> wrote:
> > Hi Xu,
> >
> > Thank you for the very quick reply! I am very happy to hear that Xen
> > support is coming so soon.
> >
> > >From the technical point of view, I think that HVM guests with the
> > explicit kernel and initrd options is a very good choice for the initial
> > implementation.
> >
> > PVH will probably be a better alternative going forward because startup
> > times are far lower, but at this stage is still not as stable as regular
> > HVM guests, so I would wait for another Xen release or two before using
> > them. Old style PV guests might still be a decent alternative for
> > people that really care about startup times, because they boot really
> > quickly. They also have good performance in a nested virtualization
> > environment, such as people deploying containers on Amazon AWS. However
> > on native they offer lower performance than PVH or HVM guests.
> >
> > You mentioned virtio: are you using virtio 9p fs or one of the other
> > protocols (block, net, etc)?
> >
> > Cheers,
> >
> > Stefano

Quoted 8 lines

> >
> >
> > On Fri, 5 Jun 2015, Wang Xu wrote:
> > > Hello Stefano,
> > >
> > > It is very glad to get message from Xen.
> > >
> > > Xen is a great innovation and one of the most widely adopted hypervisor, we believe

we

Quoted 5 lines

should
> > support it as
> > > soon as possible.
> > >
> > > We are currently busy working on Xen support and will announce the initial support

in the

Quoted 4 lines

next
> > week.
> > >
> > > The initial support is working on Xen 4.5 hvm mode, because it is easy to specify

kernel and

Quoted 6 lines
       >       >       initrd during
       >       >       > boot and support virtio, which we have already used in the kvm version.
       >       >       >
       >       >       > We also considered PVH on Xen 4.4, but met some trouble with that.
       >       >       >
       >       >       > We are very interesting in cooperating with Xen upstream to have a better support in

the

Quoted 51 lines
       >       >       future.
       >       >       >
       >       >       > Thank you for your message!
       >       >       >
       >       >       > Cheers!
       >       >       >
       >       >       > Xu Wang
       >       >       > Cofounder & CTO of Hyper
       >       >       >
       >       >       >
       >       >       > Stefano Stabellini <[email protected]>于2015年6月6日周六 00:14写道:
       >       >       >       Hello Xu, Feng, Lei,
       >       >       >
       >       >       >       My name is Stefano Stabellini and I lead the Xen Project team within
       >       >       >       Citrix.  I am also one of the Xen maintainers.
       >       >       >
       >       >       >       Let me introduce you to Lars Kurth, chair of the Xen Project advisory
       >       >       >       board, and Sarah Conway, that represents the Linux Foundation. As you
       >       >       >       probably know, Xen Project is a Linux Foundation collaborative project.
       >       >       >
       >       >       >
       >       >       >       I wanted to get in touch with you regarding your new project, Hyper:  I
       >       >       >       am really glad to see that you are stepping up to bring the security and
       >       >       >       flexibility of hypervisor solutions to the world of containers. I think is
       >       >       >       a key project that will benefit the containers and cloud industry as a
       >       >       >       whole.  In fact I have been investigating the best way to run containers
       >       >       >       on Xen myself during the last few months.
       >       >       >
       >       >       >
       >       >       >       I read that Hyper is hypervisor agnostic and I am glad that Xen is
       >       >       >       already on the roadmap.
       >       >       >
       >       >       >       I understand that Hyper is still young, but do you have any timelines on
       >       >       >       when you are planning to introduce Xen support to Hyper?  Would you be
       >       >       >       interested in discussing the best way to do that?
       >       >       >
       >       >       >
       >       >       >       Cheers,
       >       >       >
       >       >       >       Stefano
       >       >       >
       >       >       >
       >       >       >
       >       >
       >       >
       >       >
       >
       >
       >
       >
       > --
Quoted 11 lines
       > Sarah Conway
       > PR Manager
       > The Linux Foundation
       > [email protected]
       > (978) 578-5300  Cell
       > Skype:  sarah.k.conway
       >
       >

--
Wang Xu

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

#19 lore raw

That's much clearer :)

Quoted 422 lines · Dave Scott
Quoted 8 lines · Wang Xu

Agree, but I think the document is a bit confused

Quoted 1 line

It is important that channel names are globally unique.

https://github.com/mirage/xen/blob/master/docs/misc/channel.txt#L94

I agree— that wording is definitely confusing. Perhaps the docs should compare the channel names to TCP/UDP port numbers? We could say that

- the IANA port registry ~=~ the channel registry in the docs/ directory
- a single IP can only have one binding for a particular port at a time ~=~ a domain can only have one binding for a particular name at a time
- lots of IPs can bind the same port ~=~ lots of domains can bind the same name

What do you think?

Thanks,
Dave

Quoted 2 lines

On Thu, Jun 25, 2015 at 2:29 AM Dave Scott <[email protected]>

Quoted 7 lines · wrote:

Hi Xu,

Quoted 5 lines · Wang Xu

Thank you Dave, I think I can also get work around for that.

By the way, the document says the name should be global unique, but I

can start 2 domains have channels with a same name, is there some potential problems?

Quoted 7 lines

The name needs to be unique within a domain. It’s ok to have

1. domid 10, channel name ‘agent’
2. domid 11, channel name ‘agent’

— this will be common, as multiple domains will have the same ‘agent’

software installed.

Quoted 2 lines

but it will cause problems if the name is used twice within a domain.

It’s a bad idea to have

Quoted 5 lines

1: domid 10, channel name ‘agent’
2: domid 10, channel name ‘agent’

— although this will create 2 distinct /dev/hvc devices, it will be

difficult to tell which is which.

Quoted 2 lines

If libxl allows the name to be duplicated within a domain, then this is

my fault. We should add validation code to check uniqueness.

Quoted 10 lines

Thanks,
Dave

Quoted 6 lines

Cheers

Xu

On Wed, Jun 24, 2015 at 9:03 PM Dave Scott <[email protected]>

Quoted 1 line · wrote:
Quoted 1 line

I don’t think the frontend driver in Linux knows about the name key.

In my testing I wrote a udev script which looks up the ‘name’ key directly in xenstore and created a named device node using that. For reference my script is here:

Quoted 2 lines
Quoted 2 lines

https://github.com/mirage/mirage-console/blob/master/udev/xenconsole-setup-tty

Quoted 5 lines
Quoted 5 lines

Cheers,
Dave

Quoted 1 line
Quoted 1 line

and I directly test /dev/hvc1, and it could communicate with the

outside socket. Is there some mistake in my channel

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

name configuration?

| static void hyper_config_channel(libxl_device_channel* ch, const

char* name, const char* sock, int devid) {

Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
|     libxl_device_channel_init(ch);
|     ch->backend_domid = 0;
|     ch->name = strdup(name);
|     ch->devid = devid;
|     ch->connection = LIBXL_CHANNEL_CONNECTION_SOCKET;
|     ch->u.socket.path = strdup(sock);
| }

I tried to look at the oVirt code as it is mentioned in the dock,

but I did not find xen console in its guest agent code.

Quoted 11 lines
Quoted 11 lines
Quoted 11 lines

So the issue is that the name you assign here to the channel, doesn't come up anywhere in the guest. Is that correct?

Quoted 4 lines

Thank you!

On Tue, Jun 23, 2015 at 7:30 PM, Stefano Stabellini <

Quoted 2 lines · [email protected]> wrote:
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines · Wang Xu
Quoted 1 line

On Sat, Jun 20, 2015 at 1:10 AM Stefano Stabellini <

Quoted 1 line · [email protected]> wrote:
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

Integrating hyper with Xen using libxl was the right

decision and it

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

looks like you did a good job. I think that you can go

ahead with the

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

PR!

But I did have a few issues building hyper. I am getting:

hyperd.go:11:2: cannot find package "hyper/daemon" in any

of:

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
       [...]

I tried with a clean 0.2-dev branch

Quoted 3 lines

./autogen.sh
./configure
make

It looks ok, are you work on the 0.2-dev branch, I did not write

the branch name in the instruction of

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

Readme, sorry for

Quoted 1 line

that.

No worries, the most important part at this stage is the code,

and that

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

looks OK :-)
Yes, I was using 0.2-dev and followed those steps. As I

usually don't

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

program in go, it is likely that my go working environment is

missing

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

something, or my go paths are wrong. This is the full error

message:

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

CGO_LDFLAGS="-Lhypervisor/xen -lxenlight -lxenctrl -lhyperxl"

godep go build hyperd.go

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

hyperd.go:11:2: cannot find package "hyper/daemon" in any of:
/local/scratch/sstabellini/go/src/hyper/daemon (from

$GOROOT)

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

/local/scratch/sstabellini/hyper/Godeps/_workspace/src/hyper/daemon (from $GOPATH)

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

hyperd.go:10:2: cannot find package "hyper/engine" in any of:
/local/scratch/sstabellini/go/src/hyper/engine (from

$GOROOT)

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

/local/scratch/sstabellini/hyper/Godeps/_workspace/src/hyper/engine (from $GOPATH)

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

hyperd.go:12:2: cannot find package "hyper/lib/glog" in any of:
/local/scratch/sstabellini/go/src/hyper/lib/glog (from

$GOROOT)

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

/local/scratch/sstabellini/hyper/Godeps/_workspace/src/hyper/lib/glog (from $GOPATH)

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

hyperd.go:13:2: cannot find package "hyper/utils" in any of:
/local/scratch/sstabellini/go/src/hyper/utils (from

$GOROOT)

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

/local/scratch/sstabellini/hyper/Godeps/_workspace/src/hyper/utils (from $GOPATH)

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

godep: go exit status 1

Quoted 2 lines

Looking through the code, it seems that you are adding a virtio-serial-pci device, why do you need it? It is not

used very much

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

on Xen; the regular Xen uart is specified by setting b_info->u.hvm.serial to "pty", and it looks like you are

already doing

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

that. If you need more than one console, you can have a

list setting

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
       b_info->u.hvm.serial_list.

What the difference between u.hvm.serial_list and channels in

domain_config. The channel looks having more

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

features.

Actually I think that you are right: channels are better

tested and more

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

flexible.

Quoted 1 line

virtio-9p-pci is also not used very much with Xen, but as

we don't have

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

an alternative yet, I think it is good for now.

Thanks again,

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

Stefano

On Fri, 19 Jun 2015, Sarah Conway wrote:
> Hi Xu,
> I'd be happy to work with you on some PR to promote this

work. I'll be in touch with some next steps

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

next

Quoted 6 lines
       week and look
       > forward to Stefano's feedback.
       >
       > Sarah
       >
       > On Fri, Jun 19, 2015 at 12:09 PM, Lars Kurth <
Quoted 2 lines · [email protected]> wrote:
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

> Xu,
> Fantastic! If you wanted to do some PR, such as a joint

Xen Project / Linux Foundation and Hyper

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

press

Quoted 2 lines

release or
> other PR, we should start working on that after Stefano

had a look

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

> Let me know
> Regards
> Lars
>
> From: Wang Xu <[email protected]>
> Date: Friday, 19 June 2015 16:54
> To: "[email protected]" <

[email protected]>

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

> Cc: "[email protected]" <[email protected]>, Sarah Conway <

[email protected]>, Lars Kurth

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
       <[email protected]>,
       > "[email protected]" <[email protected]>, "[email protected]"

<[email protected]>

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

> Subject: Re: Hyper and Xen Project
>
> Hi Stefano and Lars, Sarah,
> I'd like to share some progress of Xen support of Hyper

with you.

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

>
> The source code of hyper with xen support has been pushed

to 0.2-dev branch (

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
       > https://github.com/hyperhq/hyper/tree/0.2-dev ). Before

release the binary packages, there are still

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

some

Quoted 2 lines

test and
> tuning work to do, but I think it's better to share the

information with you firstly.

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

>
> Hyper supports HVM/Xen 4.5 as the first step, in which we

used C and Go to talk with Xen through

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

libxl.

Quoted 2 lines

libxl is
> well organized and help us much, though It took us some

time to understand/debug the signal

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

processing and

Quoted 4 lines

nic
> hotplug.
>
> You can check out the code and try to build it from

source as description listed in README if you

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

have

Quoted 2 lines

interests.
> And any suggestions on performance and reliability are

appreciated.

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
       >
       > Cheers!
       > Xu
       >
       > On Tue, Jun 9, 2015 at 5:41 PM Stefano Stabellini <
Quoted 1 line · [email protected]> wrote:
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

> You are right, we don't really have an equivalent

to 9p in the Xen

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

> ecosystem at the moment. We had a prototype called

XenFS, like you

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

> wrote, but it had never reached production quality,

so it was removed.

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

> But we now have an OPW student working on a Xen

paravirtualized 9p fs

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

> interface. Once she finishes the initial

prototype, we could prioritize

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

> it within the community and work together to

complete it.

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

>
> How are you using virtio 9p fs? What Docker

storage backend are you

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

> using? I am asking because when I looked into

running Docker container

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

> images as Xen VMs, I was able to boot VMs without

any filesystem share,

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

> by using the devices set up by Docker's device

mapper backend directly.

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

> I think that using storage devices directly as

backends, when possible,

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

> is preferable because of performance and security.
>
>
> On Tue, 9 Jun 2015, Wang Xu wrote:
> > Hi Stefano,
> >
> > Yes, we are working on HVM and using 9p and

virt-serial over virtio, and looks 9p do not

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

have a

Quoted 2 lines

> similar
> > component in Xen ecosystem. What's the status of

XenFS and how do you think about filesystem

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

share

Quoted 4 lines

in
> Xen?
> >
> > On Mon, Jun 8, 2015 at 6:18 PM Stefano Stabellini

Quoted 3 lines · <[email protected]> wrote:
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
       >       >       Hi Xu,
       >       >
       >       >       Thank you for the very quick reply!  I am

very happy to hear that Xen

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
       >       >       support is coming so soon.
       >       >
       >       >       >From the technical point of view, I think

that HVM guests with the

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

> > explicit kernel and initrd options is a

very good choice for the initial

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
       >       >       implementation.
       >       >
       >       >       PVH will probably be a better alternative

going forward because startup

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

> > times are far lower, but at this stage is

still not as stable as regular

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

> > HVM guests, so I would wait for another Xen

release or two before using

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

> > them. Old style PV guests might still be a

decent alternative for

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

> > people that really care about startup

times, because they boot really

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

> > quickly. They also have good performance in

a nested virtualization

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

> > environment, such as people deploying

containers on Amazon AWS. However

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

> > on native they offer lower performance than

PVH or HVM guests.

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

> >
> > You mentioned virtio: are you using virtio

9p fs or one of the other

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
       >       >       protocols (block, net, etc)?
       >       >
       >       >       Cheers,
       >       >
       >       >       Stefano
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
       >       >
       >       >
       >       >       On Fri, 5 Jun 2015, Wang Xu wrote:
       >       >       > Hello Stefano,
       >       >       >
       >       >       > It is very glad to get message from Xen.
       >       >       >
       >       >       > Xen is a great innovation and one of the

most widely adopted hypervisor, we believe

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

we

Quoted 5 lines

should
> > support it as
> > > soon as possible.
> > >
> > > We are currently busy working on Xen

support and will announce the initial support

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

in the

Quoted 4 lines

next
> > week.
> > >
> > > The initial support is working on Xen 4.5

hvm mode, because it is easy to specify

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

kernel and

Quoted 2 lines
       >       >       initrd during
       >       >       > boot and support virtio, which we have

already used in the kvm version.

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
       >       >       >
       >       >       > We also considered PVH on Xen 4.4, but

met some trouble with that.

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
       >       >       >
       >       >       > We are very interesting in cooperating

with Xen upstream to have a better support in

Quoted 12 lines
Quoted 12 lines
Quoted 12 lines
Quoted 12 lines

the

Quoted 11 lines
       >       >       future.
       >       >       >
       >       >       > Thank you for your message!
       >       >       >
       >       >       > Cheers!
       >       >       >
       >       >       > Xu Wang
       >       >       > Cofounder & CTO of Hyper
       >       >       >
       >       >       >
       >       >       > Stefano Stabellini <
Quoted 3 lines · [email protected]>于2015年6月6日周六 00:14写道:
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
       >       >       >       Hello Xu, Feng, Lei,
       >       >       >
       >       >       >       My name is Stefano Stabellini and I

lead the Xen Project team within

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

> > > Citrix. I am also one of the Xen

maintainers.

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
       >       >       >
       >       >       >       Let me introduce you to Lars Kurth,

chair of the Xen Project advisory

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

> > > board, and Sarah Conway, that

represents the Linux Foundation. As you

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

> > > probably know, Xen Project is a

Linux Foundation collaborative project.

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
       >       >       >
       >       >       >
       >       >       >       I wanted to get in touch with you

regarding your new project, Hyper: I

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

> > > am really glad to see that you are

stepping up to bring the security and

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

> > > flexibility of hypervisor solutions

to the world of containers. I think is

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

> > > a key project that will benefit the

containers and cloud industry as a

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

> > > whole. In fact I have been

investigating the best way to run containers

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

> > > on Xen myself during the last few

months.

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
       >       >       >
       >       >       >
       >       >       >       I read that Hyper is hypervisor

agnostic and I am glad that Xen is

Quoted 46 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
       >       >       >       already on the roadmap.
       >       >       >
       >       >       >       I understand that Hyper is still

young, but do you have any timelines on

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

> > > when you are planning to introduce

Xen support to Hyper? Would you be

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

> > > interested in discussing the best

way to do that?

Quoted 36 lines
Quoted 35 lines
Quoted 34 lines
Quoted 34 lines
Quoted 16 lines
       >       >       >
       >       >       >
       >       >       >       Cheers,
       >       >       >
       >       >       >       Stefano
       >       >       >
       >       >       >
       >       >       >
       >       >
       >       >
       >       >
       >
       >
       >
       >
       > --
Quoted 11 lines
       > Sarah Conway
       > PR Manager
       > The Linux Foundation
       > [email protected]
       > (978) 578-5300  Cell
       > Skype:  sarah.k.conway
       >
       >

--
Wang Xu

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel