K
K
Konstantin Rudenkov2015-06-23 10:19:10
Computer networks
Konstantin Rudenkov, 2015-06-23 10:19:10

How to setup private network for kvm?

Hello!
Colleagues. There was some kind of plugging, so I'm asking for help.
There is a server where several qemu-kvm virtual machines are launched through a certain crutch, they do something and then they are deleted. The image is formed dynamically. Because of the crutch, you can't use libvirt.
Actually the question is, I'm trying to set up a bridge on an empty adapter (which is not connected to the network), so that a private grid is made on it and dhcp is spat into it. But in fact, somewhere, I didn’t set up something, and I don’t understand where and what. Poke me please in Mang or help with advice.
ubuntu system 14.04
/etc/network/interfaces

auto eth0
iface eth0 inet static
address 192.168.1.10
netmask 255.255.255.0
gateway 192.168.1.1
dns-nameservers 

auto eth1
iface eth1 inet manual
  #address 10.1.1.1
  #netmask 255.255.255.0
  #gateway 192.168.10.10

# Bridge for KVM (OBS)
auto br0
  iface br0 inet static
  address 10.1.1.1
  netmask 255.255.255.0
  network 10.1.1.0
  broadcast 10.1.1.255
  #gateway 172.16.4.1
  bridge_ports eth1
  bridge_fd 0
  bridge_hello 2
  bridge_maxage 12
  bridge_stp off
  bridge_maxwait 0

dhcp looks at br0
Virtualka gives the following
Internet Systems Consortium DHCP Client 4.2.4
[   99s] Copyright 2004-2012 Internet Systems Consortium.
[   99s] All rights reserved.
[   99s] For info, please visit https://www.isc.org/software/dhcp/
[   99s] 
[   99s] No broadcast interfaces found - exiting.
[   99s] auto eth0
[   99s] iface eth0 inet dhcp
[   99s] 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default 
[   99s]     link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
[   99s]     inet 127.0.0.1/8 scope host lo
[   99s]        valid_lft forever preferred_lft forever
[   99s]     inet6 ::1/128 scope host 
[   99s]        valid_lft forever preferred_lft forever
[   99s] 2: eth0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
[   99s]     link/ether 52:54:00:12:34:56 brd ff:ff:ff:ff:ff:ff

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question