Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

ubuntu kvm bridge

Posted on 2013-01-24
6
Medium Priority
?
461 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:Chris Sandrini
ID: 38830459
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
ID: 38830491
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:
Chris Sandrini earned 2000 total points
ID: 38830502
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
Veeam Task Manager for Hyper-V

Task Manager for Hyper-V provides critical information that allows you to monitor Hyper-V performance by displaying real-time views of CPU and memory at the individual VM-level, so you can quickly identify which VMs are using host resources.

 
LVL 30

Author Comment

by:IanTh
ID: 38830581
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:Chris Sandrini
ID: 38830655
Can you ssh now then?
0
 
LVL 30

Author Comment

by:IanTh
ID: 38830712
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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
Suggested Courses
Course of the Month10 days, 16 hours left to enroll

885 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