All of lore.kernel.org
 help / color / mirror / Atom feed
* Setting IP address for stubdom?
@ 2012-02-07 19:28 Joanna Rutkowska
  2012-02-07 19:58 ` Joanna Rutkowska
  2012-02-08 16:35 ` Ian Campbell
  0 siblings, 2 replies; 5+ messages in thread
From: Joanna Rutkowska @ 2012-02-07 19:28 UTC (permalink / raw)
  To: xen-devel


[-- Attachment #1.1: Type: text/plain, Size: 345 bytes --]

Is there a convenient way to setup the IP address for the _stubdom_ (to
connect to the vnc server running there) from within the corresponding
HVM config file on Xen 4.1? Or should one use dhcpd?

Thanks,
joanna.

ps. Sorry for posting this to xen-devel, instead of xen-users -- next
time I will subscribe to the latter, I promise ;)


[-- Attachment #1.2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 455 bytes --]

[-- Attachment #2: Type: text/plain, Size: 138 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Setting IP address for stubdom?
  2012-02-07 19:28 Setting IP address for stubdom? Joanna Rutkowska
@ 2012-02-07 19:58 ` Joanna Rutkowska
  2012-02-08 16:35 ` Ian Campbell
  1 sibling, 0 replies; 5+ messages in thread
From: Joanna Rutkowska @ 2012-02-07 19:58 UTC (permalink / raw)
  To: xen-devel


[-- Attachment #1.1: Type: text/plain, Size: 424 bytes --]

On 02/07/12 20:28, Joanna Rutkowska wrote:
> Is there a convenient way to setup the IP address for the _stubdom_
> (to connect to the vnc server running there) from within the
> corresponding HVM config file on Xen 4.1? Or should one use dhcpd?
> 
...in which case, wouldn't there be a race between the time lwip
obtains the dhcp packet, and the time when qemu is trying to do bind()
for its vncserver?

joanna.


[-- Attachment #1.2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 455 bytes --]

[-- Attachment #2: Type: text/plain, Size: 138 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Setting IP address for stubdom?
  2012-02-07 19:28 Setting IP address for stubdom? Joanna Rutkowska
  2012-02-07 19:58 ` Joanna Rutkowska
@ 2012-02-08 16:35 ` Ian Campbell
  2012-02-08 17:25   ` Stefano Stabellini
  2012-02-08 17:35   ` Joanna Rutkowska
  1 sibling, 2 replies; 5+ messages in thread
From: Ian Campbell @ 2012-02-08 16:35 UTC (permalink / raw)
  To: Joanna Rutkowska; +Cc: xen-devel

On Tue, 2012-02-07 at 19:28 +0000, Joanna Rutkowska wrote:
> Is there a convenient way to setup the IP address for the _stubdom_ (to
> connect to the vnc server running there) from within the corresponding
> HVM config file on Xen 4.1? Or should one use dhcpd?

Currently the model with stubdomains is that the stub domain runs a PVFB
device against a backend in dom0 (actually, another qemu) which does the
vnc export etc so there is no networking to the stub dom.

I can see valid reasons why you would want to have the stubdom itself do
the vnc export and therefore have a network of its own but I don't think
the toolstack can express that right now. I think it was done in the
early days of stubdoms, but I suspect in some hacky way (or perhaps just
DHCP), and I don't know if that functionality has persisted to the
present day.

Patches would be welcome.

Ian.

> 
> Thanks,
> joanna.
> 
> ps. Sorry for posting this to xen-devel, instead of xen-users -- next
> time I will subscribe to the latter, I promise ;)
> 

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Setting IP address for stubdom?
  2012-02-08 16:35 ` Ian Campbell
@ 2012-02-08 17:25   ` Stefano Stabellini
  2012-02-08 17:35   ` Joanna Rutkowska
  1 sibling, 0 replies; 5+ messages in thread
From: Stefano Stabellini @ 2012-02-08 17:25 UTC (permalink / raw)
  To: Ian Campbell; +Cc: xen-devel, Joanna Rutkowska

On Wed, 8 Feb 2012, Ian Campbell wrote:
> On Tue, 2012-02-07 at 19:28 +0000, Joanna Rutkowska wrote:
> > Is there a convenient way to setup the IP address for the _stubdom_ (to
> > connect to the vnc server running there) from within the corresponding
> > HVM config file on Xen 4.1? Or should one use dhcpd?
> 
> Currently the model with stubdomains is that the stub domain runs a PVFB
> device against a backend in dom0 (actually, another qemu) which does the
> vnc export etc so there is no networking to the stub dom.
> 
> I can see valid reasons why you would want to have the stubdom itself do
> the vnc export and therefore have a network of its own but I don't think
> the toolstack can express that right now. I think it was done in the
> early days of stubdoms, but I suspect in some hacky way (or perhaps just
> DHCP), and I don't know if that functionality has persisted to the
> present day.

I recall having removed that option a long time ago to simplify stubdom
configs.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Setting IP address for stubdom?
  2012-02-08 16:35 ` Ian Campbell
  2012-02-08 17:25   ` Stefano Stabellini
@ 2012-02-08 17:35   ` Joanna Rutkowska
  1 sibling, 0 replies; 5+ messages in thread
From: Joanna Rutkowska @ 2012-02-08 17:35 UTC (permalink / raw)
  To: Ian Campbell; +Cc: xen-devel


[-- Attachment #1.1: Type: text/plain, Size: 1858 bytes --]

On 02/08/12 17:35, Ian Campbell wrote:
> On Tue, 2012-02-07 at 19:28 +0000, Joanna Rutkowska wrote:
>> Is there a convenient way to setup the IP address for the _stubdom_ (to
>> connect to the vnc server running there) from within the corresponding
>> HVM config file on Xen 4.1? Or should one use dhcpd?
> 
> Currently the model with stubdomains is that the stub domain runs a PVFB
> device against a backend in dom0 (actually, another qemu) which does the
> vnc export etc so there is no networking to the stub dom.
> 
> I can see valid reasons why you would want to have the stubdom itself do
> the vnc export and therefore have a network of its own but I don't think
> the toolstack can express that right now. I think it was done in the
> early days of stubdoms, but I suspect in some hacky way (or perhaps just
> DHCP), and I don't know if that functionality has persisted to the
> present day.
> 

Actually I just wanted to access VNC in the stubdom for some testing --
in the long term I don't think this is a desirable option, because: 1)
using VNC adds lots of overhead -- e.g. it's unable to do zero-copy
framebuffer virtualization in contrast to e.g. our Qubes GUI daemon, and
2) in order to keep it on a reasonably secure level, one would need to
have one more domain (a "vncviewer" domain) which would be connected to
the stubdom's vncserver (note that in Qubes we don't have networking in
Dom0 -- and we don't want to have it).

The pvfb solution will work just fine for me testing purposes for now
(but only for testing, as any solution that requires me to run qemu in
Dom0 is not satisfactory from the security point of view IMHO).

So, many thanks for pointing this out -- I was so convinced that a
stubdom runs its own vncserver, that I missed all those qemu processes
in my Dom0 ;)

Thanks!
joanna.


[-- Attachment #1.2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 455 bytes --]

[-- Attachment #2: Type: text/plain, Size: 138 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-02-08 17:35 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-02-07 19:28 Setting IP address for stubdom? Joanna Rutkowska
2012-02-07 19:58 ` Joanna Rutkowska
2012-02-08 16:35 ` Ian Campbell
2012-02-08 17:25   ` Stefano Stabellini
2012-02-08 17:35   ` Joanna Rutkowska

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.