LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization
User Name
Password
Linux - Virtualization This forum is for the discussion of all topics relating to Linux Virtualization. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices

Reply
 
LinkBack Search this Thread
Old 11-16-2009, 12:18 PM   #1
extendedping
Member
 
Registered: Feb 2004
Posts: 210

Rep: Reputation: 30
kvm networking with a wireless dhcp host


I have a laptop that I am running virtualbox on. I am running centos as the host os and centos as a virtual machine. I am doing this to learn centos/redhat without breaking my main centos. the issue is virtual box does not give me the ability to setup a networking manually that meets my needs. I tried kvm on my main (ubuntu desktop) computer and was able to do the following. I created a private netwwork 10.x.x.x and then installed centos 5.4 on that. I was able to setup networking manually on centos which is what I want. I actually set up 2 centos boxes as vm's and they could both ping each other and get to the internet by specifying the first ip on the network (the 10.x.x.x) as the gateway and dns server. also I could ping the host (hmm if I am recalling correctly) ubuntu from the vm and ping the vm from ubuntu even though the ubuntu is on a 192.169.x.x. network. I could not do this with virtual box and was doing things like installing a nat network adapter and a host only network adapter...it was not what I wanted.

does anyone know if the setup I have working on my desktop (main host 192.168.x.x network vm network 10.x.x.x manual setup) would work on a laptop that will be used via dhcp at home/library etc??? kvm on the desktop just seems to "know" the active network and the manually configured network on the vm has all connectivity to it. this is what I want as I need to learn all the networking files etc. plus I like the simplicity of kvm more. I will have to upgrade the processor on my laptop (hp pavilion dv2000) as unfortunately it appears to be the only dual core that does not support xen...obviously I do not want to go through this process if kvm will not work seemlessly with my private kvm network connecting to my host dhcp enabled wireless network. thank you for listening...
 
Old 11-17-2009, 05:16 AM   #2
zhjim
Member
 
Registered: Oct 2004
Distribution: Debian lenny & etch & sid, Slackware 13.)
Posts: 735
Blog Entries: 4

Rep: Reputation: 67
There should be no problem with the setup on any computer. KVM which uses qemu sets up network on its own. Heres a link to the network options one can setup within qemu.

http://www.linux-kvm.org/page/Networking

Regarding the cpu upgrade I guess you mixed up two words. In the second last line you write that your cpu is not ready for XEN? To check if your CPU is able to use KVM do a lscpu or cat /proc/cpuinfo. Look for the processor flags to either read svm or vmx depnding on the manufactor of the chip

Code:
lscpu | grep "svm|vmx"
should do the trick
 
Old 11-17-2009, 12:04 PM   #3
extendedping
Member
 
Registered: Feb 2004
Posts: 210

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by zhjim View Post
There should be no problem with the setup on any computer. KVM which uses qemu sets up network on its own. Heres a link to the network options one can setup within qemu.

http://www.linux-kvm.org/page/Networking

Regarding the cpu upgrade I guess you mixed up two words. In the second last line you write that your cpu is not ready for XEN? To check if your CPU is able to use KVM do a lscpu or cat /proc/cpuinfo. Look for the processor flags to either read svm or vmx depnding on the manufactor of the chip

Code:
lscpu | grep "svm|vmx"
should do the trick
thanks, yea I meant kvm, it is not supported, its is an intel t2250 1.73ghz. I need to shop for another cpu...

if I can do this kvm like I want to it will be worth the upgrade, again thanks for the info...
 
Old 11-18-2009, 05:42 AM   #4
zhjim
Member
 
Registered: Oct 2004
Distribution: Debian lenny & etch & sid, Slackware 13.)
Posts: 735
Blog Entries: 4

Rep: Reputation: 67
None of my buisness but I would think thoroughly if I'd buy a new CPU in this case. See that as long as you only virtualisate (correct english?) only open source OS's Xen does the job as nearly as fast as KVM. Full virtualisation vs Para virtualisation are the keywords. You would just need a XEN enabled kernel which nearly every distro brings along.
Maybe buy a new labtop alltogether? Dunno how big your wallet is. But like I said none of my buisness. If any more questions are up keep em coming.

Cheers Zhjim
 
Old 11-18-2009, 03:14 PM   #5
extendedping
Member
 
Registered: Feb 2004
Posts: 210

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by zhjim View Post
None of my buisness but I would think thoroughly if I'd buy a new CPU in this case. See that as long as you only virtualisate (correct english?) only open source OS's Xen does the job as nearly as fast as KVM. Full virtualisation vs Para virtualisation are the keywords. You would just need a XEN enabled kernel which nearly every distro brings along.
Maybe buy a new labtop alltogether? Dunno how big your wallet is. But like I said none of my buisness. If any more questions are up keep em coming.

Cheers Zhjim
and I don't need a special processor for xen???
 
Old 11-22-2009, 02:57 PM   #6
zhjim
Member
 
Registered: Oct 2004
Distribution: Debian lenny & etch & sid, Slackware 13.)
Posts: 735
Blog Entries: 4

Rep: Reputation: 67
Right XEN does not need the virtualisation features of new CPU. It's paravirtualisation. But with a bit more speed than vmware. And like any good *nix programm its free

If you have some spare time check this link. Its a comparison of diffrent virtualisation possibibilities.
 
Old 11-22-2009, 07:59 PM   #7
extendedping
Member
 
Registered: Feb 2004
Posts: 210

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by zhjim View Post
Right XEN does not need the virtualisation features of new CPU. It's paravirtualisation. But with a bit more speed than vmware. And like any good *nix programm its free

If you have some spare time check this link. Its a comparison of diffrent virtualisation possibibilities.
thanks I tried it, my sound was lost and it too 3x longer to boot.
 
Old 11-23-2009, 05:29 AM   #8
zhjim
Member
 
Registered: Oct 2004
Distribution: Debian lenny & etch & sid, Slackware 13.)
Posts: 735
Blog Entries: 4

Rep: Reputation: 67
How you went about? Used yum to get the xen kernel? Did you check that it also loads the kernel module for your soundcard?
Maybe diff the lsmod of the both kernel to see if they differ?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
KVM / QEMU and NAT on the host machine (mini-tutorial) heby Linux - Networking 4 10-19-2010 11:49 AM
Can't Ping Linux KVM from Other Machines on Host Subnet newmanium2001 Linux - Networking 5 05-19-2009 09:01 AM
How To know if a host configured with DHCP has obtained IP address from DHCP server? Prassanta Suse/Novell 1 06-29-2006 10:48 AM
why DHCP client not sending own host name in DHCP request packet? sonika_singhi Linux - Networking 7 05-28-2005 06:18 AM
Multiple-host wireless networking configuration with YaST-Suse using one card roaneb Linux - Wireless Networking 1 10-15-2004 09:09 PM


All times are GMT -5. The time now is 01:51 PM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration