LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-05-2014, 07:22 PM   #1
Ryanms3030
Member
 
Registered: Jan 2014
Distribution: Debian, Mint, CentOS, Ubuntu
Posts: 261

Rep: Reputation: Disabled
Help setting up networking on KVM


My laptop is running Debian 7. I am running KVM/Virtual Machine Manager for vms and have installed Arch as a guest but I can't get networking working.

I also have KVM running on Debian on my home server. On the server I set up a bridge but I am using ethernet. On my laptop I am using wifi and don't want to set up the bridge because that involved stopping Network Manager and I prefer to have that on for ease of use with wifi connections.

What are my best options?
 
Old 03-05-2014, 07:59 PM   #2
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,

I'm doing almost the same thing as you but I'm using wicd instead of network manager on my laptop. I use virt-manager to look after my VMs and bridged virtual network. It works flawlessly.

Evo2.
 
Old 03-05-2014, 11:30 PM   #3
Ryanms3030
Member
 
Registered: Jan 2014
Distribution: Debian, Mint, CentOS, Ubuntu
Posts: 261

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by evo2 View Post
Hi,

I'm doing almost the same thing as you but I'm using wicd instead of network manager on my laptop. I use virt-manager to look after my VMs and bridged virtual network. It works flawlessly.

Evo2.
maybe a stupid question, but are you bridging your wifi ?

I tried to set up it up with br0 bridged to my wlan0 and I get an error that wlan0 can't be added to br0. I also tried setting up a virtual network through Virtual Machine Manager's gui and get :

Error creating virtual network: internal error Network is already in use by interface wlan0
 
Old 03-06-2014, 12:07 AM   #4
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,
Quote:
Originally Posted by Ryanms3030 View Post
maybe a stupid question, but are you bridging your wifi ?
Perfectly valid question, the answer is yes.

Quote:
I tried to set up it up with br0 bridged to my wlan0 and I get an error that wlan0 can't be added to br0. I also tried setting up a virtual network through Virtual Machine Manager's gui and get :

Error creating virtual network: internal error Network is already in use by interface wlan0
Did you first remove all traces of your manually created bridge? (setup in /etc/network/interfaces?). If so there should already be a "default" network that will work through any physical device. Launch virt-manager, from the "Edit" menu select "Connection Details" and then select the "Virtual Networks" tab. There should be a network there called "default" with "Forwarding:" set to "NAT".

Can you confirm this?

Evo2.
 
Old 03-07-2014, 11:19 PM   #5
Ryanms3030
Member
 
Registered: Jan 2014
Distribution: Debian, Mint, CentOS, Ubuntu
Posts: 261

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by evo2 View Post
Hi,

Perfectly valid question, the answer is yes.


Did you first remove all traces of your manually created bridge? (setup in /etc/network/interfaces?). If so there should already be a "default" network that will work through any physical device. Launch virt-manager, from the "Edit" menu select "Connection Details" and then select the "Virtual Networks" tab. There should be a network there called "default" with "Forwarding:" set to "NAT".

Can you confirm this?

Evo2.
Sorry, just got back to this. So, default network forward to NAT does exist. I have deleted all traces of bridge interfaces. still can't connect to network. I have not been able to install a desktop on Arch (i'm assuming because I can't get online). When I run the VM, I can't load on websites on my laptop (i.e. host system). So it does seem my network is getting taken over when KVM is running. Is it possible that there is something I need to do in the Arch guest to start the network service or something like that?
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Centos 6 and KVM - how to setup bridged networking in KVM in a -Class B- environment? rylan76 Linux - Virtualization and Cloud 7 11-07-2012 06:46 AM
Is linux networking like windows networking in setting up a small office network? boondox Linux - Networking 6 01-26-2012 06:23 PM
Setting up networking in qemu (kvm) guest makowka Linux - Networking 1 12-06-2011 06:31 PM
KVM networking eyemole80 Linux - Networking 6 02-18-2010 10:25 AM
KVM, and Dos. Networking possible? Gangrif Linux - Virtualization and Cloud 7 02-12-2010 02:32 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:22 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration