You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@guacamole.apache.org by Takahiro SUZUKI <zu...@gmail.com> on 2020/08/30 08:37:13 UTC

[Resolved!]Re: How to docker-compose for WOL


Dear Nick.


I was able to solve the problem about guacd's WOL connection problem using
docker-compose.

Thank you very much.

I am very thankful for your advice.



>The most likely cause of this is that the place at which the PostgreSQL
>database is found has changed when you switched to Host networking mode.
>You need to make sure the configuration of your Guacamole Client container
>points to the correct place, and that the PostgreSQL server is actually
>accessible there.

The outline of the change is described below.

——————————————————————————————
#Changed the PosgresSQL configuration
postgresql.conf
# - Connection Settings -
listen_addresses = '*'
====>Make it connectable, from anywhere

pg_hba.conf
# IPv4 local connections:
#host    all             all             127.0.0.1/32            trust
host    all             all              0.0.0.0/0              trust
====>Make it connectable, from anywhere

——————————————————————————————


#Change the docker-compose.yml  and related file configuration
docker-compose.yml 
network_mode: "host"
====> write to all of container

  postgres:
    environment:
      POSTGRES_HOSTNAME: postgres
====> write to posgres container


  guacd:
    environment:
      POSTGRES_HOSTNAME: postgres
====> write to guacd container

  guacamole:
    environment:
      GUACD_HOSTNAME: guacd
      POSTGRES_HOSTNAME: postgres
====> write to guacamole container


#guacamole.properties 
guacd-hostname: guacd
====> write to same name with services name


 etc/hosts 
127.0.0.1	localhost postgres guacd
====> write to resolve the services name and GUACD_HOSTNAME and
POSTGRES_HOSTNAME

The reason why I noticed the above contents was that the following keywords
were output
 when I connected with the log output method set to debug mode.
====> define the logback.xml

my-guacamole3 | ### Cause: org.postgresql.util.PSQLException: The connection
attempt failed.
my-guacamole3 | Caused by: java.net.UnknownHostException: postgres
my-guacamole3 | Caused by: java.net.UnknownHostException: guacd: No address
associated with hostname



——————————————————————————————


>> In connection I have some questions. .
>>
> >1) Does guacamole support docker host mode?
> >Since other WOL docker images written above are compatible with host
> mode,
> >if in host mode,
> >I thought I could use  WOL in guacamole.
>>
>>
>I do not know of any reason why the Guacamole containers would not support
>host mode networking, but you'll need to configure things differently to
>interconnect the various containers.

As I wrote before.

This WOL connectivity issue is not a problem with apache.guacamole,
I understood that it relies on setting up the container interconnect when
using posgress and apache.guacamole.


>>
>> 2) Is the magic packet of wol sent by the guagd process?
>>
>>
>Yes, the magic WoL packet is sent by guacd.
I also confirmed by packet capture.


>> 3)In case of dokcer, do I need to define other WOL docker images?
>>
>>
>>
>No, this is handled completely by guacd - there are no additional
>components required.

I have confirmed that guacd is sending magic packets.


>>
>> 4) Are the guacamoke and guacd images on docker-hub official images?
>> The reason for this question is that OFFICEIAL is not checked.
>>
>> ----------------------------------------------------------------------------
>> # docker search guacamole
>> NAME DESCRIPTION STARS OFFICIAL AUTOMATED
>> guacamole/guacamole Apache Guacamole is a clientless remote desk… 177
> >guacamole/guacd The native server-side proxy used by Apache …83
>
>
>Yes, those are the official images.  I do not know what is required to get
>Docker to tick the "official" box, but perhaps we'll have to dig into that
>on the Project side and see.
OK.
understood.


>
>> ----------------------------------------------------------------------------
>>
>> 5) Are the latest images of guacamoke and guacd on docker-hub 1.2.0 and
>> WOL
> compatible?
>
>
>Yes, WoL support was introduced in 1.2.0, and the Docker images built for
>that version include the support.

I've confirmed. It is possible to send magic packets with version 1.2.0.
And I've confirmed, docker images.

>> Sorry for the very rude question.
>> Checking all possibilities because I am looking for a solution.
>
>
>You have no reason to apologize - the mailing list is here to help provide
>solutions and answer questions like these!  The use-case you're trying to
>accomplish - running Guacamole in Docker but requiring network broadcast
>support for Wake-On-LAN - is slightly complicated and a bit of a corner
>case (not really something Docker is designed to easily handle).  You also
>probably aren't the only one who is struggling with this or will ever
>struggle with it, so hopefully this will help other folks who might be
>trying to accomplish the same thing.


I think my effort was never wasteful, though it took over two weeks.

I sincerely hope to help the apache.guacamole users around the world.

Once again, I would like to thank you again.



--
Sent from: http://apache-guacamole-general-user-mailing-list.2363388.n4.nabble.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@guacamole.apache.org
For additional commands, e-mail: user-help@guacamole.apache.org


Re: [Resolved!]Re: How to docker-compose for WOL

Posted by Nick Couchman <vn...@apache.org>.
On Sun, Aug 30, 2020 at 4:37 AM Takahiro SUZUKI <zu...@gmail.com> wrote:

>
> I was able to solve the problem about guacd's WOL connection problem using
> docker-compose.
>
> Thank you very much.
>
> I am very thankful for your advice.
>
>
Very glad that you got it working, and, I agree, I hope it helps others
looking for similar functionality.

It's also good to hear that the WoL functionality is being put to use :-).

-Nick