Solved

ubuntu kvm bridge

Posted on 2013-01-24
6
447 Views
Last Modified: 2013-11-26
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
Comment
Question by:IanTh
  • 3
  • 3
6 Comments
 
LVL 11

Expert Comment

by:un1x86
Comment Utility
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
 
LVL 30

Author Comment

by:IanTh
Comment Utility
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
 
LVL 11

Accepted Solution

by:
un1x86 earned 500 total points
Comment Utility
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
How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

 
LVL 30

Author Comment

by:IanTh
Comment Utility
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
 
LVL 11

Expert Comment

by:un1x86
Comment Utility
Can you ssh now then?
0
 
LVL 30

Author Comment

by:IanTh
Comment Utility
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Using 'screen' for session sharing, The Simple Edition Step 1: user starts session with command: screen Step 2: other user (logged in with same user account) connects with command: screen -x Done. Both users are connected to the same CLI sessio…
Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now