Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 463
  • Last Modified:

ubuntu kvm bridge

ok settup up ubuntu 12.04 kvm and following this

http://techtips-tom.blogspot.co.uk/2012/05/ubuntu-1204-kvm-server.html

get to Use the following to show bridges
brctl show
shows virbr0, but this is not the bridge I need to be connected to eth0
setup proper bridged network as follows:
sudo nano /etc/network/interfaces
change the following lines
auto eth0
iface eth0 inet dhcp
to
auto eth0
iface eth0 inet manual
auto br0
iface br0 inet dhcp
bridge_ports eth0
bridge_fd 0
bridge_stp off
bridge_maxwait 0



I try and save and I get misplaced option

after reboot I can no longer ssh to the server or ping it
0
IanTh
Asked:
IanTh
  • 3
  • 3
1 Solution
 
Chris SandriniSenior System EngineerCommented:
Did you assign any ipadress either to the bridge or the interface?

This is my config:

auto eth0
iface eth0 inet manual

auto br0
iface br0 inet static
        address 192.168.2.100
        network 192.168.2.0
        netmask 255.255.255.0
        broadcast 192.168.2.255
        gateway 192.168.2.1
        bridge_ports eth0
        bridge_stp off
        bridge_fd 0
        bridge_maxwait 0

Open in new window

0
 
IanThAuthor Commented:
I had an ip address first no communication took it out as the guide I was following said nothing

how does bridging work in Linux I have binned ubuntu there was no web client I found proxmox ve which is a linux iso for virtual machines using KVM or openvz which is based on debian and that needs a network bridge setting up I just dont understand the way a network bridge works in Linux
0
 
Chris SandriniSenior System EngineerCommented:
Hi

There is different ways how you can share your network interfaces between the Host and your VMs.

Bridged network means that the VM are in the same network as the host. If you have a DHCP client on the VM it will get the ip of your DHCP server.

http://iomem.com/archives/4-Ethernet-Bridges-under-Linux.html

You need to make sure that the bridge is actually existing. Did you load the bridge?

ifup br0

Open in new window


Or restart your network service.

You should be able to see your bridge with

brctl show

Open in new window

0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
IanThAuthor Commented:
yes I did have bridge I just couldn't ssh to the machine

I know as a bridge a a physical device to connect disparate networks st fiber and ethernet for instance although a bridge and a switch can be the same thing these days
0
 
Chris SandriniSenior System EngineerCommented:
Can you ssh now then?
0
 
IanThAuthor Commented:
I have rebuilt it now using proxmox it still mentions a bridge as its a type 1 hypervisor based on debian v6 as I was looking for a web client for the ubuntu nodes and I stumbled on proxmox I had a cluster up and running well 85% of the cluster as it was inside esxi free within say 2 hours
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now