Author Topic: kvm on zentyal 4  (Read 1614 times)

AbsyntH

  • Zen Apprentice
  • *
  • Posts: 34
  • Karma: +1/-0
    • View Profile
kvm on zentyal 4
« on: November 25, 2014, 11:55:02 pm »
hi,
i've installed kvm on zentyal 4, i've set eth0 static for zentyal's mail and domain and eth1 bridged (static on br1) for kvm guest...but i can not use the same subnet (192.168.1.*) for both eth0 and eth1 and i've to use kvm for a windows
vm (and join it to zentyal's domain)
 If i use different subnet on eth1 i can't reach the default gateway that stands on 192.168.1. , i've also try to edit /etc/network/interfaces to set by myself eth1  but it was overwritten by zentyal, any hints?

robb

  • Guest
Re: kvm on zentyal 4
« Reply #1 on: November 26, 2014, 04:12:49 pm »
Can't you create a route to connect both subnets?

AbsyntH

  • Zen Apprentice
  • *
  • Posts: 34
  • Karma: +1/-0
    • View Profile
Re: kvm on zentyal 4
« Reply #2 on: November 26, 2014, 04:16:43 pm »
yes, but i've to change all the subnet mask....and it's not so easy (all client, windows sbs , printer...)

AbsyntH

  • Zen Apprentice
  • *
  • Posts: 34
  • Karma: +1/-0
    • View Profile
Re: kvm on zentyal 4
« Reply #3 on: November 26, 2014, 04:19:03 pm »
there is a way to script: the remove of defalt gw, put eth0 in bridge, set ip and redefinition of the default gw for eth0 ? (in zentyal i mean not in "linux" of course)

yes i've to do all remotely

jbahillo

  • Zentyal Staff
  • Zen Hero
  • *****
  • Posts: 1444
  • Karma: +77/-2
    • View Profile
Re: kvm on zentyal 4
« Reply #4 on: November 26, 2014, 06:01:44 pm »
I think that you will need a bridge from eth0, not eth1 then

AbsyntH

  • Zen Apprentice
  • *
  • Posts: 34
  • Karma: +1/-0
    • View Profile
Re: kvm on zentyal 4
« Reply #5 on: November 26, 2014, 10:40:20 pm »
yes i know...but how can i put in bridge mode eth0 using a remote connection,i must disable default gw first...but this will close all access  that are not on local machine...in a normal linux setup i can write a script all passages and start it from shell, but in zentyal i don't know where i've to make the changes(there is a database?)

jbahillo

  • Zentyal Staff
  • Zen Hero
  • *****
  • Posts: 1444
  • Karma: +77/-2
    • View Profile
Re: kvm on zentyal 4
« Reply #6 on: November 26, 2014, 10:43:21 pm »
Uhmm perhaps you could write this to redis... but many chances exist taht a single mistake can break ....

If you want to dig around look at redisvi under /usr/share/zentyal/

AbsyntH

  • Zen Apprentice
  • *
  • Posts: 34
  • Karma: +1/-0
    • View Profile
Re: kvm on zentyal 4
« Reply #7 on: November 26, 2014, 11:57:47 pm »
if i try to use zentyal shell i've the same error that is generated from dashboard

zentyal> $network->setIfaceBridged('eth0', 0, -1, 1)
zentyal> $network->save()
The requested operation will cause one of the configured gateways or static routes to become unreachable. Please remove it first if you really want to make this change.1

if I could edit /etc/network/interfaces the solution would be simple... vim&reboot