Re: [CentOS-virt] Problem with Centos 6.2 KVM

2012-01-31 Thread Tait Clarridge

 
 Any other ideas?
 
 TIA
 

Is your CPU VT-enabled? Is it capable and enabled in BIOS?

Intel:

cat /proc/cpuinfo | grep vmx

AMD:

cat /proc/cpuinfo | grep svm

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


Re: [CentOS-virt] No module named cygvirtmod

2012-01-12 Thread Tait Clarridge


On Thu, 2012-01-12 at 14:24 +, Lars Hecking wrote:
 I'm trying to set up a xen guest on a machine that already has a few others
  running (not set up by me). It fails with the following error:
 
 + virt-install -r 512 -n host5 -f /dev/vol0/lvol5 --nographics -p 
 --os-type=linux --os-variant=rhel5 --accelerate -l http://bla -x 
 ks=http://bla/ks.cfg -m MA:CA:DD:RE:SS
 Traceback (most recent call last):
   File /usr/bin/virt-install, line 31, in ?
 import libvirt
   File /usr/lib64/python2.4/site-packages/libvirt.py, line 12, in ?
 import cygvirtmod as libvirtmod
 ImportError: No module named cygvirtmod

Do you have the libvirt-python package installed?
Also check for the virt-viewer package (which helps with a lot of virt
tool errors).

Tait

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


Re: [CentOS-virt] Bonds, VLANs, and Bridges on Centos 5.6

2011-11-22 Thread Tait Clarridge
On Fri, 2011-11-18 at 17:56 -0500, Jason Nagashima wrote:
 Running on Centos 5.6 with KVM... 
 
 I was wondering if anyone had any luck configuring the NICs where eth0 and 
 eth1 are bonded together with vlan support to a bridge?
 
 I noticed some threads show this as a possibility 
 (http://lists.centos.org/pipermail/centos-virt/2009-November/001417.html), 
 but haven't had any luck implementing it.  There also seems to be a bug with 
 5.6 (http://bugs.centos.org/view.php?id=4801), but that post died the day it 
 was created it.
 
 Any advice/working examples would be greatly appreciated.

Hi Jason,

I have had luck doing this with Xen, where I create bond0 on a trunk
interface and have xen bring it up as xenbr0 with pbond0 in the back
end.

You should be able to do roughly the same by creating a bridge interface
in /etc/sysconfig/network-scripts referencing bond0 as a member.

After that you should be able to run a script to create VLAN bridges
like the following:

#!/bin/bash
/sbin/modprobe 8021q

# Add your vlans here that you want with the numbers separated by a 
# space
VLANS=5 10 15 20
# This should work with the bonding interface
TRUNKINT=bond0
for VLAN in $VLANS
do
vconfig add $TRUNKINT $VLAN
brctl add br$VLAN
brctl addif br$VLAN $TRUNKINT.$VLAN
ifconfig $TRUNKINT.$VLAN up
ifconfig br$VLAN up
done

I have done this with Xen on 5.5, 5.6 and 5.7... but it should work for
KVM. If you create the standard bridge interface br0 using just bond0
that will get you a trunk on whatever the native vlan is for that trunk.

Tait


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


Re: [CentOS-virt] Simulate Network Cable Disconnect

2010-05-13 Thread Tait Clarridge
On Wed, 2010-05-12 at 10:09 -0400, Kanwar Ranbir Sandhu wrote: 
 On Tue, 2010-05-04 at 12:28 -0400, Tait Clarridge wrote:
  I am having trouble simulating a network cable disconnect with KVM. I
  would like to test active backup bonding for a switch IOS upgrade in a
  production environment.
 
 Couldn't you just do a ifdown ethX in the KVM itself?  One of the
 bonded NICs will go down, and the kernel should report it as such.
 
 Regards,
 
 Ranbir

I did try that but it didn't fail over, actually I think I did ifconfig
ethX down instead of ifdown ethX. I will try again when I get some
time, thanks for the pointer! :)

Tait


signature.asc
Description: This is a digitally signed message part
___
CentOS-virt mailing list
CentOS-virt@centos.org
http://lists.centos.org/mailman/listinfo/centos-virt


[CentOS-virt] Simulate Network Cable Disconnect

2010-05-04 Thread Tait Clarridge
Hello All,

I am having trouble simulating a network cable disconnect with KVM. I
would like to test active backup bonding for a switch IOS upgrade in a
production environment.

Basically I have the VM running on a bridged network which is also tied
into GNS3 simulating a small-scale version of the production
environment.

I have tried bringing down the vnetX interface and the actual virtual
network itself (virbrX) with no luck.

Has anyone had to do this before/maybe knows some tips?

If more info is required about my setup, I can give it.

Thanks!
Tait

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


Re: [CentOS-virt] Fedora 12 domU will not boot kernel

2010-01-08 Thread Tait Clarridge

 I think 5.4 version of python-virtinst added some fixes aswell..  
 so maybe you need to upgrade to that for F12 installation to work.
 
 Also please try running xm console for the guest and see what it does
 and where it crashes..

If I do xm create -c f12domU.cfg it says Starting Domain f12domU and
then brings me back to the command prompt on dom0.

Thanks for the replies Pasi, I will try and get some time to bring this
host out of production to perform the upgrade.

- Tait


signature.asc
Description: This is a digitally signed message part
___
CentOS-virt mailing list
CentOS-virt@centos.org
http://lists.centos.org/mailman/listinfo/centos-virt


Re: [CentOS-virt] Fedora 12 domU will not boot kernel

2010-01-08 Thread Tait Clarridge
On Fri, 2010-01-08 at 09:38 -0500, Tait Clarridge wrote:
  I think 5.4 version of python-virtinst added some fixes aswell..  
  so maybe you need to upgrade to that for F12 installation to work.
  
  Also please try running xm console for the guest and see what it does
  and where it crashes..
 
 If I do xm create -c f12domU.cfg it says Starting Domain f12domU and
 then brings me back to the command prompt on dom0.

Just do add something, this led me to believe there was an incompatible
kernel, and have tried both i686 and x86_64 kernels.
 
 Thanks for the replies Pasi, I will try and get some time to bring this
 host out of production to perform the upgrade.
 
 - Tait
 ___
 CentOS-virt mailing list
 CentOS-virt@centos.org
 http://lists.centos.org/mailman/listinfo/centos-virt



signature.asc
Description: This is a digitally signed message part
___
CentOS-virt mailing list
CentOS-virt@centos.org
http://lists.centos.org/mailman/listinfo/centos-virt


Re: [CentOS-virt] Fedora 12 domU will not boot kernel

2010-01-07 Thread Tait Clarridge

 
 I think 5.4 added some hypervisor/dom0 side fixes, that might be needed
 for F12 guests. I'm not totally sure. You can go through redhat bugzillas 
 if you want :)
 

I will take a look into the changes, thanks.

 I've been successfully running both 32bit and 64bit Fedora 12
 domUs/guests on EL 5.4 dom0.
 
 What's the actual problem? Use virt-install or virt-manager to install
 new F12 guest.
 
 Btw what's your hardware?
 
 -- Pasi

To install the guest I mounted the DVD on a remote webserver and
exported via HTTP, from dom0 I grabbed the pxeboot kernel and ramdisk
and passed those to the domU to start the install. When using the F12
kernel/ramdisk the domU doesn't cause any errors (logs are clean as
well) but it doesn't start. It goes up and down twice in very quick
succession and the logs tell me that it is rebooting too quickly and
therefore it stops attempting to boot the domU. When using the F11
install kernel/ramdisk the domU boots and installs just fine.

To get it to F12 I tried preupgrade but on rebooting when I select the
preupgrade selection from pygrub it has the same behaviour as the
initial F12 install. Same thing happens when I do the upgrade from yum
and try to boot the new kernel.

The machine right now is running all F12 software except for the kernel.
When booting any F12 kernel there are no error messages in either domU
(obviously) or dom0.

The hardware is a SunFire x4140 with 64GB ram and dual quad core
Opterons. I can get more specific if you would like, but xen has worked
perfectly on these machines with every other type of OS except F12.

I will try and get some downtime for the box so I can upgrade if the
conclusion is that some dom0/hypervisor fixes in the newer kernel/xen
packages will solve the problem.

I appreciate the help and quick responses so far :)

Tait


signature.asc
Description: This is a digitally signed message part
___
CentOS-virt mailing list
CentOS-virt@centos.org
http://lists.centos.org/mailman/listinfo/centos-virt


[CentOS-virt] Fedora 12 domU will not boot kernel

2010-01-06 Thread Tait Clarridge
Hello Everyone,

I have been trying to get a Fedora 12 domU to boot for the better part
of the afternoon and haven't had success booting any F12 kernel in Xen.

I can get Fedora 11 installed no problem, tried to do a preupgrade but
the when booting the preupgrade kernel through grub (or even from
outside the domU) the domU reboots very quickly and ultimately crashes.

As far as I saw in the qemu-dm-xxx.log, xend.log, and xend-debug.log
there are no messages informing me of what went wrong.

I am using CentOS 5.3 with the 2.6.18-92.1.22.el5xen kernel. I am unable
to update the kernel at this time as new drivers cause major disk
controller issues.

If it as simple as a kernel update I will try again, but as of right now
I am stumped so I asking for a little help!

Has anyone successfully gotten F12 set as a domU using the regular
CentOS xen and kernel-xen packages?

xen-3.0.3-80.el5_3.3
kernel-xen-2.6.18-92.1.22.el5

Best,
Tait




signature.asc
Description: This is a digitally signed message part
___
CentOS-virt mailing list
CentOS-virt@centos.org
http://lists.centos.org/mailman/listinfo/centos-virt


Re: [CentOS-virt] virt-install failed while install windows2003 guest

2009-12-08 Thread Tait Clarridge
On Tue, 2009-12-08 at 12:41 +0100, Markus Falb wrote:
 
 On 8 Dec 2009, at 09:58, rewing wrote:
  libvirtError: internal error unable to start guest: qemu: could not open 
  disk image /vm/win2k3.img
 
 
 Do you have selinux enabled ? As far as I know the location for images
 is restricted to /var/lib/libvirt/images by default.
 
 -- 

Or does the actual disk image exist at /vm/win2k3.img with r/w access to
whoever is running the virt-install command?

Does the /vm directory exist and does the user have permissions to
access it?



signature.asc
Description: This is a digitally signed message part
___
CentOS-virt mailing list
CentOS-virt@centos.org
http://lists.centos.org/mailman/listinfo/centos-virt


Re: [CentOS-virt] Live migration and DRBD

2009-11-30 Thread Tait Clarridge
On Mon, 2009-11-30 at 13:53 -0200, Gilberto Nunes wrote:
 Hi folks
 
 I deploy a two Dell PowerEdge T300 to test Virtualization with
 kvm+drbd+heartbaet.
 
 The KVM drbd and heartbeat work properly.
 
 However, I have doubt!!
 
 When the primary node has down, the secondary node start the VM that
 has original running on primary node...
 So, this required a full stop of hole system...
 This is not we wish here...
 
 Is there something way to live migrate VM from primary node that was
 shutdown
 
 I have no idea how to make this stuff working...
 
 Thanks for any help
 
Currently there is work being done on a project for Xen called Remus. I
am not sure about KVM but Remus is still in development and although it
has been merged into the xen-unstable repository, it isn't completely
ready yet (although the developers are working very hard).

Basically it performs the first part of a live migration and if
connection is lost, it will jump the virtual machine over to the
secondary host.

http://nss.cs.ubc.ca/remus/


It appears that Red Hat is including high availability for KVM in
their Red Hat Enterprise Virtualization Manager for Servers.

Not sure if this is going to make it to CentOS, can someone
confirm/deny?


signature.asc
Description: This is a digitally signed message part
___
CentOS-virt mailing list
CentOS-virt@centos.org
http://lists.centos.org/mailman/listinfo/centos-virt


Re: [CentOS-virt] VLAN bridge config for xen - Was: Controlling allocation of ethernet devices and KVM

2009-11-27 Thread Tait Clarridge
On Sat, 2009-11-28 at 00:50 +0200, Manuel Wolfshant wrote:
 On 11/28/2009 12:43 AM, Tait Clarridge wrote:
  The init scripts support VLANs and bridges out of the box. Adding more 
  scripts is not necessary.
  
 
 
  Interesting, XEN specific scripts? Or CentOS scripts.

 Neither. When using centos, vlan related modules are loaded 
 automatically after specifying VLAN=YES in sysconfig/network. And 
 vlan/bridge interfaces are configured exactly the same as normal 
 interfaces

Interesting, thanks for the info. Can I specify which VLANs it is going
to configure and bridge?


signature.asc
Description: This is a digitally signed message part
___
CentOS-virt mailing list
CentOS-virt@centos.org
http://lists.centos.org/mailman/listinfo/centos-virt


Re: [CentOS-virt] VLAN bridge config for xen - Was: Controlling allocation of ethernet devices and KVM

2009-11-27 Thread Tait Clarridge

 but as you have said, to each their own. you prefer slackware, I prefer 
 centos.

I never said I use Slackware... anyways. It is nice when rolling out
dozens of machines quickly and not having to worry about all the VLAN
and bridge init scripts.


signature.asc
Description: This is a digitally signed message part
___
CentOS-virt mailing list
CentOS-virt@centos.org
http://lists.centos.org/mailman/listinfo/centos-virt


Re: [CentOS-virt] Slightly OT: GPLPV driver selection.

2009-09-30 Thread Tait Clarridge
On Wed, 2009-09-30 at 11:19 -0400, Centos wrote:
 I'm in the middle of a (re-)install on a domU and looking for quick 
 replies as too which GPLPV to use on a Windows 2008 Server install.
 
 Windows 32bit
 Xen/Centos 64bit (x86_64)
 
 The question is regarding whether the driver to load into Windows is for 
 itself (32bit) or the underlying hypervisor (x86_64) as in:
 
 
 There is now one download per platform/architecture, named as follows:
  *  gplpv_chk/fre_platform_arch_version.msi
  * chk is a 'checked' build which contains debug info (please use 
 these if you want any assistance in fixing bugs)
  * fre is a 'free' build which contains no debug info
  * platform is 'wxp' for XP, 'wnet' for 2003, and 'wlh' for Vista/2008
  * arch is 'x86' for 32 bit and 'AMD64' for 64 bits
 
 
 Is the architecture ('arch') x86 (for the Windows domU 32bit 
 architecture) or x86_64 (for the arch version of Xen running)?
 
 I'm having a gray moment.

It happens.

The arch should be for the domU as it has to install drivers in the domU
only, not dom0. 

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


Re: [CentOS-virt] Centos virsh - add a physical device

2009-09-29 Thread Tait Clarridge

 Native config:
 
 cat win2k8.cfg
 name = win2k8-hvm
 uuid = c53ac13f-d32f-9934-8c0b-a8728fb52f19
 maxmem = 1024
 memory = 1024
 vcpus = 1
 builder = hvm
 kernel = /usr/lib/xen/boot/hvmloader
 boot = c

If you want it to boot from anything in the CDROM device, change this to
read:

boot = dc

 pae = 1
 acpi = 1
 apic = 1
 localtime = 0
 on_poweroff = destroy
 on_reboot = restart
 on_crash = restart
 device_model = /usr/lib/xen/bin/qemu-dm
 vfb = [ type=vnc,vncunused=1,keymap=en-us ]
 disk = [ phy:/dev/vol1/win2k8,hda,w, phy:/dev/cdrom,hdc:cdrom,r ]

Alright, if I am not mistaken your system already has a CDROM setup. It
is pointing to the physical interface /dev/cdrom. I may be confusing
your question, but did you want to add another one? 

If the current one isn't working you will have to figure out what the
CDROM device name is (/dev/sr0 is also an option) but make sure you have
modified the boot= line as I did above.

You should also be able to add an ISO image to act as the CDROM (all on
one line):

disk =
[ phy:/dev/vol1/win2k8,hda,w,file:/path/to/file.iso,hdc:cdrom,r]

 vif = [ 
 mac=00:16:36:2a:e4:15,bridge=eth0,script=vif-bridge,vifname=vif50.0 ]
 parallel = none
 serial = pty

Tait


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


Re: [CentOS-virt] Centos virsh - add a physical device

2009-09-28 Thread Tait Clarridge
On Mon, 2009-09-28 at 08:05 +0200, f...@ll wrote:
 Hi,
 
 If I create a guest which uses (hvm) can I add access to physical device 
 like cdrom?
 
 Regards,
 
 f...@ll

Yes, you are able to add a CDROM device to your guest.

You can add either a physical drive or an ISO image. Are you using
virt-manager or just config files at the command line?

Tait

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


Re: [CentOS-virt] Centos virsh - add a physical device

2009-09-28 Thread Tait Clarridge
On Mon, 2009-09-28 at 22:17 +0200, f...@ll wrote:
 Tait Clarridge pisze:
  On Mon, 2009-09-28 at 08:05 +0200, f...@ll wrote:

  Hi,
 
  If I create a guest which uses (hvm) can I add access to physical device 
  like cdrom?
 
  Regards,
 
  f...@ll
  
 
  Yes, you are able to add a CDROM device to your guest.
 
  You can add either a physical drive or an ISO image. Are you using
  virt-manager or just config files at the command line?
 
  Tait
 
  ___
  CentOS-virt mailing list
  CentOS-virt@centos.org
  http://lists.centos.org/mailman/listinfo/centos-virt

 Hi,
 
 I using only a comman line, my centos server have only text console 
 without a X server. I used a virsh.
 
 f...@ll

Can you post the config file for the guest?

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