Re: [qubes-users] How can I add networking to a minimal template VM?

2018-10-18 Thread Zbigniew Łukasiak
On Thu, Oct 18, 2018 at 1:40 PM unman  wrote:
>
> On Thu, Oct 18, 2018 at 04:36:00AM +0200, Zbigniew Łukasiak wrote:
> > I am trying to setup a printer AppVM as described in
> > https://www.qubes-os.org/doc/network-printer/ - i.e. first I am trying
> > to create a template VM and configure printing there.
> >
> > I cloned fedora-28-minimal for the template VM.
> >
> > I tried to configure the printing without networking - that should be
> > possible, but I failed at it and I think it is still useful to be able
> > to switch on networking temporarily in a template VM.
> >
> > Then in "Qube Settings" I changed Networking from "default (none)" to
> > "sys-net (current)" (I tried also "sys-firewall").
> >
> > Unfortunately it boots without networking - so I tried to set it up 
> > manually:
> >
> > bash-4.4# ip addr add 10.137.0.27/32 dev eth0
> > bash-4.4# ip route add default via 10.137.0.6 dev eth0
> > Error: Nexthop has invalid gateway.
> >
> > At one point that worked, but now it stopped with the above error message.
> >
> > --
> > Zbigniew Lukasiak
> > https://medium.com/@zby
> > http://brudnopis.blogspot.com/
> >
>
> have you read www.qubes-os.org/doc/templates/fedora-minimal ?

Yeah - somehow I missed this one. Later I found it - but thanks :)

Eventually I went with the normal fedora template - I need it for the
printer vm and there I need all the packages to display stuff - so I
guess the difference would not be that dramatic anyway.

>
> Your ip command does not work because you dent have a route to the IP your
> are setting as default.

I don't quite get that - because 10.137.0.27 and 10.137.0.6 are in the
same subnet (and I tried /24 as well).
But whatever.

> If you install the relevant qubes-core-agent-networking etc then you
> should get IP set up automatically.
>
Cheers,
Zbigniew

-- 
You received this message because you are subscribed to the Google Groups 
"qubes-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to qubes-users+unsubscr...@googlegroups.com.
To post to this group, send email to qubes-users@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/CAGL_UUuS78pS%2Bnb_WTmDzR76L9bWbtSqsGtQKvBimNGAG8P3Wg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [qubes-users] How can I add networking to a minimal template VM?

2018-10-18 Thread unman
On Thu, Oct 18, 2018 at 04:36:00AM +0200, Zbigniew Łukasiak wrote:
> I am trying to setup a printer AppVM as described in
> https://www.qubes-os.org/doc/network-printer/ - i.e. first I am trying
> to create a template VM and configure printing there.
> 
> I cloned fedora-28-minimal for the template VM.
> 
> I tried to configure the printing without networking - that should be
> possible, but I failed at it and I think it is still useful to be able
> to switch on networking temporarily in a template VM.
> 
> Then in "Qube Settings" I changed Networking from "default (none)" to
> "sys-net (current)" (I tried also "sys-firewall").
> 
> Unfortunately it boots without networking - so I tried to set it up manually:
> 
> bash-4.4# ip addr add 10.137.0.27/32 dev eth0
> bash-4.4# ip route add default via 10.137.0.6 dev eth0
> Error: Nexthop has invalid gateway.
> 
> At one point that worked, but now it stopped with the above error message.
> 
> -- 
> Zbigniew Lukasiak
> https://medium.com/@zby
> http://brudnopis.blogspot.com/
> 

have you read www.qubes-os.org/doc/templates/fedora-minimal ?

Your ip command does not work because you dent have a route to the IP your
are setting as default.
If you install the relevant qubes-core-agent-networking etc then you
should get IP set up automatically.

unman

-- 
You received this message because you are subscribed to the Google Groups 
"qubes-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to qubes-users+unsubscr...@googlegroups.com.
To post to this group, send email to qubes-users@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/20181018114041.5437uufaeyjwjkrs%40thirdeyesecurity.org.
For more options, visit https://groups.google.com/d/optout.


[qubes-users] How can I add networking to a minimal template VM?

2018-10-17 Thread Zbigniew Łukasiak
I am trying to setup a printer AppVM as described in
https://www.qubes-os.org/doc/network-printer/ - i.e. first I am trying
to create a template VM and configure printing there.

I cloned fedora-28-minimal for the template VM.

I tried to configure the printing without networking - that should be
possible, but I failed at it and I think it is still useful to be able
to switch on networking temporarily in a template VM.

Then in "Qube Settings" I changed Networking from "default (none)" to
"sys-net (current)" (I tried also "sys-firewall").

Unfortunately it boots without networking - so I tried to set it up manually:

bash-4.4# ip addr add 10.137.0.27/32 dev eth0
bash-4.4# ip route add default via 10.137.0.6 dev eth0
Error: Nexthop has invalid gateway.

At one point that worked, but now it stopped with the above error message.

-- 
Zbigniew Lukasiak
https://medium.com/@zby
http://brudnopis.blogspot.com/

-- 
You received this message because you are subscribed to the Google Groups 
"qubes-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to qubes-users+unsubscr...@googlegroups.com.
To post to this group, send email to qubes-users@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/CAGL_UUsA3RWa7VAqUfH5CJQY2WSACOVdfQAGDuSq8MDRhvQLZw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.