How can I add networking to a minimal template VM?

58 views
Skip to first unread message

Zbigniew Łukasiak

unread,
Oct 17, 2018, 10:36:18 PM10/17/18
to qubes-users
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/

unman

unread,
Oct 18, 2018, 7:40:43 AM10/18/18
to qubes-users
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

Zbigniew Łukasiak

unread,
Oct 18, 2018, 1:13:27 PM10/18/18
to un...@thirdeyesecurity.org, qubes-users
On Thu, Oct 18, 2018 at 1:40 PM unman <un...@thirdeyesecurity.org> 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
Reply all
Reply to author
Forward
0 new messages