LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 06-14-2007, 02:31 PM   #1
Crito
Senior Member
 
Registered: Nov 2003
Location: Knoxville, TN
Distribution: Kubuntu 9.04
Posts: 1,168

Rep: Reputation: 53
Qemu Vlan


I somehow managed to screw up my KVM/QEMU virtual environment and can now no longer connect to the internet. I'm still getting a "virtual gateway" addy at 192.168.222.1 through DHCP, so part of it appears to be working. Traffic just isn't getting routed/NATed/redirected from the virtual gateway to the real NIC anymore (which would then, in turn, send it on to the real gateway at 192.168.1.1 -- simple, huh? LOL).

Anyway, am hoping someone can clue me into exactly how QEMU handles virtualizing the NICs and LAN. The QEMU docs were old (refers to a class A 10.0.2.x addy) and KVM's docs are almost non-existent.

http://fabrice.bellard.free.fr/qemu/qemu-doc.html#SEC26
http://www.qumranet.com/
 
Old 06-15-2007, 06:39 AM   #2
Crito
Senior Member
 
Registered: Nov 2003
Location: Knoxville, TN
Distribution: Kubuntu 9.04
Posts: 1,168

Original Poster
Rep: Reputation: 53
If it helps I *think* what screwed everything up was Firestarter's wizard. Part of it tries to imitate Microsoft's ICS (Internet Connection Sharing) and I *guess* the NATing setup was overwritten. Thing is QEMU's VLAN appears to be controlled separately, as I could start/stop all my firewall services (iptables, ip6tables and firestarter) without affecting it (before the crash.) So I'm still stumped....

Anywho, luckily I installed both Windows Server 2003 R2 and Windows Server 2003 Web Edition on their own (real) partitions. So I suppose, if I have to, I can just blow away the Linux partition and reinstall without affecting my Windows VMs.

BTW, for some reason Windows Server 2003 Web Edition crashes using KVM. Using just QEMU (no kernel acceleration) works fine though, other than it being really slow, that is.

Last edited by Crito; 06-15-2007 at 06:41 AM.
 
Old 06-15-2007, 09:06 PM   #3
Crito
Senior Member
 
Registered: Nov 2003
Location: Knoxville, TN
Distribution: Kubuntu 9.04
Posts: 1,168

Original Poster
Rep: Reputation: 53
My latest best guess is a conflict between firestarter and dnsmasq packages. I tried reinstalling making sure to load firestarter before qemu and virt-manager but the VLAN still got hosed. So am now reinstalling for the third time.

I guess firestarter's gotta go. Was one of my favorites.

Last edited by Crito; 06-15-2007 at 09:10 PM.
 
Old 06-15-2007, 10:06 PM   #4
Crito
Senior Member
 
Registered: Nov 2003
Location: Knoxville, TN
Distribution: Kubuntu 9.04
Posts: 1,168

Original Poster
Rep: Reputation: 53
Back up and running, the hard way: http://4crito.com/screenshots/qemu.png
 
Old 06-16-2007, 11:41 AM   #5
Crito
Senior Member
 
Registered: Nov 2003
Location: Knoxville, TN
Distribution: Kubuntu 9.04
Posts: 1,168

Original Poster
Rep: Reputation: 53
Grr, I'm about to blow it all away and go native Windows... for the next sucker to come along and waste a weekend:

I can ping everything from inside the VLAN, but the 192.168.222 subnet itself is completely unreachable. So despite the virbr0 name it's clearly acting like a gateway router, not a bridge. In other words, the default setup isn't suitable for hosting a web server and there isn't enough documentation for me to figure out how to do something as simple as forward port 80. In fact, I'd have to say at this stage KVM/QEMU isn't suitable for running any server OS, only client OSes.
 
Old 07-07-2007, 08:04 AM   #6
Crito
Senior Member
 
Registered: Nov 2003
Location: Knoxville, TN
Distribution: Kubuntu 9.04
Posts: 1,168

Original Poster
Rep: Reputation: 53
Oh, BTW, I found a solution to my KVM problem in the Ubuntu docs.
https://help.ubuntu.com/community/KVM

It's the last section titled "Virtual NICs Bridged Directly to Outside".
 
  


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
VLAN configuration - native VLAN and setting PVID kumarwaiting Linux - Networking 0 07-24-2006 02:51 AM
Vlan >G< Linux - Networking 3 06-29-2006 12:03 AM
vlan praveenchebolu Linux - Networking 1 03-25-2006 03:41 AM
qemu: qemu stopped right after command exec bitpicker Linux - Software 1 03-04-2005 11:25 PM
Vlan Markvw Linux - Networking 1 09-29-2003 08:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:46 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