Re: [CentOS] using KVM Virbr0 with bonded nics?

2011-10-25 Thread Jim Wildman
YOu will have to do it on the virbr side, if it does not pick it up
automatically.  If the bond is set to be your default route, it may just
do the right thing.  More surprising things have happened...

On Mon, 24 Oct 2011, Bob Hoffman wrote:

 Interested in bonding my 2 on board nics along with my add on card NIC
 for a total of 3.

 How would this work with the virtual machines?
 My eths/IPs --- bond0, bond0:1, etc ---  ?    virbr0,virbr0:1
 (each machine to have own IP address, one machine may have some virtual
 sites needing more than one ip,
 so multiple ips added to mix..)

 add something to the bond0 file, or just leave it alone and mess with
 the virbr0 files?
 I heard something about network manager not liking bonding and bridging...
 anyone do this kind of thing?


 ___
 CentOS mailing list
 CentOS@centos.org
 http://lists.centos.org/mailman/listinfo/centos


--
Jim Wildman, CISSP, RHCE   j...@rossberry.com http://www.rossberry.net
Society in every state is a blessing, but Government, even in its best
state, is a necessary evil; in its worst state, an intolerable one.
Thomas Paine
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] using KVM Virbr0 with bonded nics?

2011-10-25 Thread Bob Hoffman
Jim Wildman wrote
-

YOu will have to do it on the virbr side, if it does not pick it up
automatically.  If the bond is set to be your default route, it may just
do the right thing.  More surprising things have happened...

On Mon, 24 Oct 2011, Bob Hoffman wrote:
/  Interested in bonding my 2 on board nics along with my add on card NIC
//  for a total of 3.//
//  How would this work with the virtual machines?
//  My eths/IPs ---  bond0, bond0:1, etc ---   ?     virbr0,virbr0:1
//  (each machine to have own IP address, one machine may have some virtual
//  sites needing more than one ip,
//  so multiple ips added to mix..)//
//add something to the bond0 file, or just leave it alone and mess with
//  the virbr0 files?
//  I heard something about network manager not liking bonding and bridging...
//  anyone do this kind of thing?
/

-

Still working on a solution. Apparently the bondn files demand an 
ipaddress, thus there might have to be one for each and
every single ip coming into the computer...I guess you would have to do 
that anyway just like
eth0, eth0:0, eth0:1, etc.
I think I am going to try to just make a separate ethn for each ip, 
going to their respective bondn with the proper ipaddress
in them. Then use the bridge as normal, with each bondn calling a 
respective bridge.
Not sure how that works with multiple ips going to same machine (as in, 
can the bridge handle more than one ip, or can the machine
look for more than one bridge...?)

Then obviously, the VM would need to go through the whole process too. I 
can see no other way and there is no
information out there going over any of it...will post if it works.
(next step after figuring out lvm kvm storage issues.wheee)
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] using KVM Virbr0 with bonded nics?

2011-10-25 Thread Benjamin Franz
On 10/25/2011 10:48 AM, Bob Hoffman wrote:
 Still working on a solution. Apparently the bondn  files demand an
 ipaddress, thus there might have to be one for each and
 every single ip coming into the computer...I guess you would have to do
 that anyway just like
 eth0, eth0:0, eth0:1, etc.
 I think I am going to try to just make a separate ethn  for each ip,
 going to their respective bondn  with the proper ipaddress
 in them. Then use the bridge as normal, with each bondn  calling a
 respective bridge
 Not sure how that works with multiple ips going to same machine (as in,
 can the bridge handle more than one ip, or can the machine
 look for more than one bridge...?)


For various reasons I base my host machines on Ubuntu 10.04-LTS and run 
CentOS under KVM. My bonded/bridged host configuration looks like this. 
You will have to figure out the CentOS equivalents.

# The primary network interface
iface eth0 inet manual
iface eth1 inet manual

# eth0  eth1 form bond0 for x.x.x.0/25 subnet
auto bond0
iface bond0 inet static
 bond_miimon 100
 bond_mode active-backup
 bond_downdelay 200
 bond_updelay 200
 address x.x.x.35
 netmask 255.255.255.128
 network x.x.x.0
 post-up ifenslave bond0 eth0 eth1
 pre-down ifenslave -d bond0 eth0 eth1

auto br0
iface br0 inet static
 bridge_ports bond0
 address x.x.x.35
 netmask 255.255.255.128
 network x.x.x.0
 gateway x.x.x.126

I then configured the virtual interface for each virtual machine like this:

interface type='bridge'
mac address='xx:xx:xx:xx:xx:xx'/
source bridge='br0'/
model type='virtio'/
/interface

and configured each machine using regular 'eth0'.

Don't forget to make sure forwarding is turned on and that your firewall 
on the host machine allows FORWARD chain packets to the bridged interface.

-- 
Benjamin Franz
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] using KVM Virbr0 with bonded nics?

2011-10-24 Thread Bob Hoffman
Interested in bonding my 2 on board nics along with my add on card NIC 
for a total of 3.

How would this work with the virtual machines?
My eths/IPs --- bond0, bond0:1, etc ---  ?    virbr0,virbr0:1
(each machine to have own IP address, one machine may have some virtual 
sites needing more than one ip,
so multiple ips added to mix..)

add something to the bond0 file, or just leave it alone and mess with 
the virbr0 files?
I heard something about network manager not liking bonding and bridging...
anyone do this kind of thing?


___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] using kvm

2011-01-05 Thread Arun Khan
On Wed, Jan 5, 2011 at 6:13 AM, Jim Wildman j...@rossberry.com wrote:
 On Tue, 4 Jan 2011, Jerry Geis wrote:

 All -  I am running a virtual windows 7 (pro 64) on centos 5.5 x86_64.
 I was hoping to run virtual XP inside windows7 in this configuration.

 I get an error about cannot start virtual XP when I try this.
 Do I not have something setup correctly or can I not run a double
 virtual environment?

 I'd be very surprised if that would work.  The virtual environments
 check for the correct processor type.  A virtual cpu is probably not
 on the list..


I have not tried a VM within a VM (nested) although I have heard that
it is possible.

I guess the correct processor type could be passed with the -cpu  parameter.

-- Arun Khan
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] using kvm

2011-01-05 Thread Jerry Geis

 I have not tried a VM within a VM (nested) although I have heard that
 it is possible.

 I guess the correct processor type could be passed with the -cpu  parameter.

 -- Arun Khan
   
I have tried -cpu phenum which does not run at all.
and I tried -cpu core2duo which runs the guest but does not run the VM 
within a VM.

Thanks,

Jerry

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] using kvm

2011-01-05 Thread Kwan Lowe
On Tue, Jan 4, 2011 at 2:01 PM, Jerry Geis ge...@pagestation.com wrote:
 All -  I am running a virtual windows 7 (pro 64) on centos 5.5 x86_64.
 I was hoping to run virtual XP inside windows7 in this configuration.

 I get an error about cannot start virtual XP when I try this.
 Do I not have something setup correctly or can I not run a double
 virtual environment?

I don't have an answer to your question, but curious as to how the
virtual XP is running inside Win7.  Does it use an entire
virtualization layer or is it something similar to Wine's approach?
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] using kvm

2011-01-05 Thread Flaherty, Patrick
From what I remember -cpu is to tell the vm what cpu extensions are
available. I always just use  -cpu host which has kvm pass in all the
cpu extensions that the host processor has. 

Using WindowsXP mode on a windows 7 VM sounds dirty. XP mode used to
require virtualization hardware, now it doesn't. Perhaps passing in a
cpu that doesn't have virtualization extensions is the way to make
windows go the non-hardware route. I would expect the performance to be
abysmal, but it would be a neat trick.

Patrick


 -Original Message-
 From: centos-boun...@centos.org [mailto:centos-boun...@centos.org] On
 Behalf Of Jerry Geis
 Sent: Wednesday, January 05, 2011 8:09 AM
 To: CentOS ML
 Subject: Re: [CentOS] using kvm
 
 
  I have not tried a VM within a VM (nested) although I have heard
that
  it is possible.
 
  I guess the correct processor type could be passed with the -cpu 
 parameter.
 
  -- Arun Khan
 
 I have tried -cpu phenum which does not run at all.
 and I tried -cpu core2duo which runs the guest but does not run the
 VM
 within a VM.
 
 Thanks,
 
 Jerry
 
 ___
 CentOS mailing list
 CentOS@centos.org
 http://lists.centos.org/mailman/listinfo/centos

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] using kvm

2011-01-05 Thread Mitch Patenaude
On Tue, 4 Jan 2011, Jerry Geis wrote:
  All -  I am running a virtual windows 7 (pro 64) on centos 5.5 x86_64.
  I was hoping to run virtual XP inside windows7 in this configuration.
 
  I get an error about cannot start virtual XP when I try this.
  Do I not have something setup correctly or can I not run a double
  virtual environment?

In general, it is not possible to nest virtualization environments.
The hypervisor needs to trap certain events/interrupts and reserve
certain instructions to manage the guest OS.  As such, those are not
available to the guest OS, therefore it cannot be a hypervisor itself.

You *might* be able to run an emulator (bochs, qemu, etc) within the
guest OS, but the performance would be something close to abominable.
I'd say you're better off running two guests, one of Win7 and one of
WinXP, and use some other mechanism (virtual network) to let them
communicate.

  -- Mitch
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] using kvm

2011-01-05 Thread m . roth
Mitch Patenaude wrote:
 On Tue, 4 Jan 2011, Jerry Geis wrote:
  All -  I am running a virtual windows 7 (pro 64) on centos 5.5
 x86_64.
  I was hoping to run virtual XP inside windows7 in this configuration.
 
  I get an error about cannot start virtual XP when I try this.
  Do I not have something setup correctly or can I not run a double
  virtual environment?

 In general, it is not possible to nest virtualization environments.
snip
I'd add that all you need to do, if you could get this working, is to open
a command window, and you'd have *exactly* the same performance as if you
were running the original PC, on an 8088 with the o/s loaded from floppy
drives

  mark


___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] using kvm

2011-01-04 Thread Jerry Geis
All -  I am running a virtual windows 7 (pro 64) on centos 5.5 x86_64.
I was hoping to run virtual XP inside windows7 in this configuration.

I get an error about cannot start virtual XP when I try this.
Do I not have something setup correctly or can I not run a double 
virtual environment?

Thanks,

Jerry
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] using kvm

2011-01-04 Thread Jim Wildman
On Tue, 4 Jan 2011, Jerry Geis wrote:

 All -  I am running a virtual windows 7 (pro 64) on centos 5.5 x86_64.
 I was hoping to run virtual XP inside windows7 in this configuration.

 I get an error about cannot start virtual XP when I try this.
 Do I not have something setup correctly or can I not run a double
 virtual environment?

I'd be very surprised if that would work.  The virtual environments
check for the correct processor type.  A virtual cpu is probably not
on the list..

--
Jim Wildman, CISSP, RHCE   j...@rossberry.com http://www.rossberry.com
Society in every state is a blessing, but Government, even in its best
state, is a necessary evil; in its worst state, an intolerable one.
Thomas Paine
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos