Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > HOWTO-Related Questions

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 10th May 2012, 01:03
nzimas nzimas is offline
Member
 
Join Date: May 2007
Posts: 47
Thanks: 0
Thanked 0 Times in 0 Posts
Question ubuntu 12.04 - kvm network interface empty

I have follwee this howto in order to set up a couple of KVM's.
For the most part everything went smoothly, except the virtual network interface, whch has neither an IP (public) nor a GW (public as well), although both have been assigned while building the VM.

Here's what ifconfog says:
Quote:
br0 Link encap:Ethernet HWaddr 00:25:90:71:32:46
inet addr:1.2.3.4 Bcast:1.2.3.5 Mask:255.255.255.0
inet6 addr: fe80::225:90ff:fe71:3246/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:21416 errors:0 dropped:0 overruns:0 frame:0
TX packets:18501 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:117467022 (117.4 MB) TX bytes:1632901 (1.6 MB)

eth0 Link encap:Ethernet HWaddr 00:25:90:71:32:46
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:98249 errors:0 dropped:0 overruns:0 frame:0
TX packets:18873 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:123752134 (123.7 MB) TX bytes:1745755 (1.7 MB)
Interrupt:16 Memory:fbce0000-fbd00000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:673 errors:0 dropped:0 overruns:0 frame:0
TX packets:673 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:82024 (82.0 KB) TX bytes:82024 (82.0 KB)

virbr0 Link encap:Ethernet HWaddr 7a:da:7d:91:c1:cc
inet addr:192.168.122.1 Bcast:192.168.122.255 Mask:255.255.255.0
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

vnet0 Link encap:Ethernet HWaddr fe:54:00:7a:8f:b6
inet6 addr: fe80::fc54:ff:fe7a:8fb6/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:1 carrier:0
collisions:0 txqueuelen:500
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
and route -n says
Quote:
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 1.2.3.4 0.0.0.0 UG 100 0 0 br0
1.2.3.0 0.0.0.0 255.255.255.0 U 0 0 0 br0
192.168.122.0 0.0.0.0 255.255.255.0 U 0 0 0 virbr0
The VM is running:
Quote:
virsh # list
Id Name State
----------------------------------
1 whatever running
but iface-list returns an error
Quote:
virsh # iface-list
error: Failed to list active interfaces
error: this function is not supported by the connection driver: virConnectNumOfInterfaces
Help is much welcome.


[EDIT]

Just in case, /etc/network/interfaces looks as follows (the public IP's are changed for obvious reasons)
Quote:
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet manual


auto br0
iface br0 inet static
address 1.2.3.4
network 1.2.3.0
netmask 255.255.255.0
broadcast 1.2.3.255
gateway 1.2.3.254
bridge_ports eth0
bridge_fd 9
bridge_hello 2
bridge_maxage 12
bridge_stp off

Last edited by nzimas; 10th May 2012 at 01:07. Reason: extra info
Reply With Quote
Sponsored Links
  #2  
Old 11th May 2012, 09:55
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

According to http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=597158, you can try this to fix the problem:

Code:
apt-get install libvirt-bin
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 11th May 2012, 22:10
nzimas nzimas is offline
Member
 
Join Date: May 2007
Posts: 47
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

Thanks for the heads up.
The issue I am currently faced with has to do with networking (final posts down the thread).
I simply can't find a straight howto addressing a scenario where there's only one physical NIC which is used to handle the public IP.
Reply With Quote
Reply

Bookmarks

Tags
kvm, network, ubuntu

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Big warning about network configuration option in Ubuntu on a VPS talkingnews General 0 20th January 2012 16:57
KVM - Slow network kramse HOWTO-Related Questions 1 23rd May 2011 20:59
Network Configuration Server - Ubuntu 10.04 Alf71 HOWTO-Related Questions 4 14th October 2010 02:27
Perfect Xen 3.0 setup for Debian gurneyzap HOWTO-Related Questions 4 26th March 2006 11:30
Is there a testing procedure for ISPConfig? deezone Installation/Configuration 14 22nd January 2006 19:41


All times are GMT +2. The time now is 00:51.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.