Re: [CentOS] kvm and 6.5

2014-05-27 Thread John R Pierce
On 5/26/2014 9:38 PM, John R Pierce wrote:
> block I/O error in device 'drive-ide0-0-0': Invalid argument (22)

the backing store is a Crucial M550 SSD, formatted XFS.   does that have 
somethign to do with this?


and... ok, found something suggesting cache=writeback, but it didn't 
quite explain,
https://bugzilla.redhat.com/show_bug.cgi?id=997839


after thinking about it, looking at the options, I added that to the 
--disk option of virt-install, and now installing packages,



-- 
john r pierce  37N 122W
somewhere on the middle of the left coast

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


Re: [CentOS] kvm and 6.5

2014-05-27 Thread John R Pierce
On 5/26/2014 11:58 PM, Andrew Holway wrote:
> Permissions on /var/lib/libvirt/images/kfat.img? selinux?
>
> I had this exact problem a while back and I am racking my brains as to what
> I did to fix it.

in my case,

# virt-install --network bridge:br0 --name kfat --ram=2048 --vcpus=2  \
--disk path=/var/lib/libvirt/images/kfat.img,size=16,cache=writeback \
--cdrom=/home/downloads/CentOS-6.5-x86_64-minimal.iso

worked.

the 'cache=writeback' fixed it, the fundamental problem was, 
/var/lib/libvirt/images is XFS on a SSD so is using 4096 byte sectors, 
and kvm has an impedance mismatch with that.


-- 
john r pierce  37N 122W
somewhere on the middle of the left coast

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


Re: [CentOS] freebsd hangs when install on centos6.5

2014-05-27 Thread anax
Hi
I took the following note when installng freeBSD on VirtualBox:

Installation in VirtualBox:

from
http://www.freebsd.org/
get a boot-install CDROM and burn it to a disk, because mounting the ISO 
file at installation-start does not work with freeBSD, you get a 
kernel-panic immediately. As installation source give one of the 
freebsd.org webs, Also, it is useless to copy an entire distribution to 
a local disk, using this as installation source woun't work either.

Possibly it may help you also on kvm.

suomi


On 2014-05-27 08:31, Jarod. w wrote:
> Hi, All
>
>  The freebsd(version: 10.0, RC3) can't be installed as kvm guest based on
> CentOS 6.5(kernel: kernel-2.6.32-431.17.1.el6.x86_64, qemu-kvm:
> qemu-kvm-0.12.1.2
> -2.415.el6_5.8.x86_64). When installing it, it always shows 'booting' and
> hangs.
>
>  My cpu&memory information:
>  CPU: Intel(R) Xeon(R) CPU E5-2690 v2 @ 3.00GHz
>  Mem: 132189664
>
>  My qemu-kvm command:
>  /usr/libexec/qemu-kvm -name testbsd -M rhel6.5.0 -enable-kvm -m
> 2048 -realtime mlock=off -smp 4,sockets=4,cores=1,threads=1 -uuid
> 7f68743b-d725-4c7d-dc7e-9aa6712584b3 -drive
> file=/home/vAPV/test.img,if=none,id=drive-ide0-0-0,format=qcow2,cache=none
> -vnc 0.0.0.0:0 -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x4
> --cdrom /home/downloads/FreeBSD-10.0-RC3-amd64-dvd1.iso
>
>
>  Any suggestions?
>  Thanks in advance..
>
>
>
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] freebsd hangs when install on centos6.5

2014-05-27 Thread Andrew Holway
>
>
> Any suggestions?
>

This is because of an issue that has been fixed in later linux kernels.
upgrading to the kernel-ml or kernel-lt from El-Repo or trying an operating
systems with a more advanced kernel such as Ubuntu or Fedora should fix it.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] Enlightenment and CentOS 6.5

2014-05-27 Thread Jeff Layton
Good morning,

I've been looking around for binaries for Enlightenment (>= 0.17) for 
CentOS 6.5. I've found something called "elementary" from OpenSUSE but 
I'm not sure what Elementary really is :)   Any suggestions?

Thanks!

Jeff

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


Re: [CentOS] bash script reading directory with while and do

2014-05-27 Thread Paolo De Michele
Hi,

I don't understand the procedure
so, in theory the path should be /var/www/clients/client* (I have number
from 1 to X)
I replaced the PATH in read section

It's correct?


On 05/26/2014 11:12 AM, Alberto Varesio wrote:
> Hi
> you are overwriting the PATH env variable.
> change PATH to CLIPATH and all will work
>
>
> On Sun, May 25, 2014 at 12:08 PM, Paolo De Michele
> wrote:
>
>> hi everyone,
>>
>> I'm searching to do a functionally bash script for copy many file inside
>> in a directory
>> the scenario is:
>>
>> root path= /var/www/clients/
>> inside of this there are many subdirectories with this name: client1 to
>> x (depends of the customer)
>> it happens that a customer not renew the contract and I would stopping
>> to do a backup directory for him.
>>
>> this operation should be versatile and very easy
>> so, I don't understand the error in this script. look below:
>>
>> !/bin/bash
>>
>> while read line;
>> do
>> read NR PATH NAME<<<$(IFS=" "; echo $line)
>>
>> cd /var/www/clients/
>> cp -R $PATH /backup/temp/www/
>> cd /backup/temp/www/
>>
>> tar cfz `date +%F`_$NAME.tar.gz web$NR/
>> mv *.tar.gz /backup/www/test/
>> rm -rf /backup/temp/www/*
>>
>> done < sites.txt
>>
>> anyone can help me, please?
>> thanks in advance
>>
>> regards
>> ___
>> 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] traffic distribution not happening in centos 6.5

2014-05-27 Thread Marcelo Ricardo Leitner
Em 25-05-2014 07:35, Varun Sharma escreveu:
> Hi,
>
> I am experimenting with libnetfilter_queue. libnetfilter_queue is a
> userspace library providing an API to packets that have been queued by
> the kernel packet filter.
>
> I am using sample code(nfqnl_test.c) available on netfilter.org. I
> have generated two binaries (queue0 and queue1) using that
> nfqnl_test.c sample code.
>
> These binaries are working as per expected behaviour in case of Centos
> 6.2 but with Centos 6.5 only one queue is receiving network traffic.
>
> I am not able to understand why only one queue is receiving network
> traffic in case of Centos 6.5 whereas same network traffic is being
> distributed in both the queues with Centos 6.2.
>
> uname –a :-
>
> Linux hwcentos8 2.6.32-431.el6.x86_64 #1 SMP Fri Nov 22 03:15:09 UTC
> 2013 x86_64 x86_64 x86_64 GNU/Linux
>
> Machine Info:
>
> 16 core machine with 64GB RAM.
>
> Command used for iptables in Centos 6.5 :-
>
> iptables -A INPUT -j NFQUEUE --queue-balance 0:1
>
>
> Output In Centos 6.5 :-
>
>
> [varun@exp2 ~]$ ./queue0
>
> opening library handle
>
> unbinding existing nf_queue handler for AF_INET (if any)
>
> binding nfnetlink_queue as nf_queue handler for AF_INET
>
> binding this socket to queue '0'
>
> setting copy_packet mode
>
> pkt received
>
> queue0 hw_protocol=0x0800 hook=1 id=0 hw_src_addr=fc:4d:d4:d3:7f:73
> indev=2 payload_len=40
>
> entering callback
>
> pkt received
>
> queue0 hw_protocol=0x0800 hook=1 id=1 hw_src_addr=fc:4d:d4:d3:7f:73
> indev=2 payload_len=40
>
> entering callback
>
> pkt received
>
> queue0 hw_protocol=0x0800 hook=1 id=2 hw_src_addr=fc:4d:d4:d3:7f:73
> indev=2 payload_len=40
>
> entering callback
>
> pkt received
>
> queue0 hw_protocol=0x0800 hook=1 id=3 hw_src_addr=fc:4d:d4:f1:e1:5f
> indev=2 payload_len=78
>
> entering callback
>
>
>
> [varun@exp2 ~]$ ./queue1
>
> opening library handle
>
> unbinding existing nf_queue handler for AF_INET (if any)
>
> binding nfnetlink_queue as nf_queue handler for AF_INET
>
> binding this socket to queue '1'
>
> setting copy_packet mode
>
>
>
>
> Please let me know if more information is required.

Hi,

Considering the MAC address is the same, should I assume both IP 
addresses are the same too? Because it balances according to the hash of 
src ip, dst ip and ip proto (tcp, udp..).

That is, all packets from a single tcp stream will always go through the 
same queue, avoiding re-ordering.

Cheers,
Marcelo


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


[CentOS] Regex Kiki

2014-05-27 Thread Chris
Dear All,

is there a kiki [1] package for CentOS?



[1] https://code.google.com/p/kiki-re/

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


Re: [CentOS] Enlightenment and CentOS 6.5

2014-05-27 Thread Jitse Klomp
On 05/27/2014 04:20 PM, Jeff Layton wrote:
> Good morning,
>
> I've been looking around for binaries for Enlightenment (>= 0.17) for
> CentOS 6.5. I've found something called "elementary" from OpenSUSE but
> I'm not sure what Elementary really is :)   Any suggestions?
>
> Thanks!
>
> Jeff
>
> ___
> CentOS mailing list
> CentOS@centos.org
> http://lists.centos.org/mailman/listinfo/centos
>

Jeff,

haven't tried it myself, but there is an E17 repo available here:
http://download.opensuse.org/repositories/X11:/Enlightenment:/E17:/Factory/CentOS_CentOS-6/X11:Enlightenment:E17:Factory.repo

Installing Enlightenment should be trivial after adding the repository 
to your system.


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


Re: [CentOS] bash script reading directory with while and do

2014-05-27 Thread Darr247
On 26 May 2014 @09:12 zulu, Alberto Varesio wrote:
> you are overwriting the PATH env variable.
> change PATH to CLIPATH and all will work


I don't understand, too... do you mean the script should read

!/bin/bash

while read line;
do
 read NR CLIPATH NAME<<<$(IFS=" "; echo $line)

 cd /var/www/clients/
 cp -R $CLIPATH /backup/temp/www/
 cd /backup/temp/www/

 tar cfz `date +%F`_$NAME.tar.gz web$NR/
 mv *.tar.gz /backup/www/test/
 rm -rf /backup/temp/www/*

done < sites.txt


instead?
/i.e./
replace **all** instances of "PATH" with "CLIPATH" ?
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] "new" computers and monitors

2014-05-27 Thread Michael Hennebry
Until recently, I had a 32-bit machine with one monitor running fedora.
The later editions of fedora didn't like it, so I switched to CentOS.
Now I have two 64-bit machines and two monitors and a CenturyLink router.
Also a KVM switch that I have not taken out of the package.
My main machine has two video connections
and two ethernet connections, eth0 and eth1 .

I've never had more than one machine or more than one monitor before.

I'd like to be able to use both monitors at once on my main machine.
I'd like to be able to switch one monitor
between machines without too much trouble.
I'd rather not where the pins out.
KVM will do this, right?
KVM is transparent to the computer, right?
My secondary machine sometimes runs Windows,
so I'd like it not to have its own global IP address.
My first thought would be to connect it directly
to one of the ethernet ports on my main machine.

How do I go about this?
The answer I am expecting is one or more links to tutorials or the like.


-- 
Michael   henne...@web.cs.ndsu.nodak.edu
"SCSI is NOT magic. There are *fundamental technical
reasons* why it is necessary to sacrifice a young
goat to your SCSI chain now and then."   --   John Woods
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] "new" computers and monitors

2014-05-27 Thread Matthew Miller
On Tue, May 27, 2014 at 07:38:34PM -0500, Michael Hennebry wrote:
> I'd like to be able to use both monitors at once on my main machine.
> I'd like to be able to switch one monitor
> between machines without too much trouble.
> I'd rather not where the pins out.

Do either of your new monitors have multiple inputs? If you're not needing
the console of the second machine often, that might be the easiest approach.

-- 
Matthew Miller   mat...@mattdm.org  
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] "new" computers and monitors

2014-05-27 Thread John R Pierce
On 5/27/2014 5:38 PM, Michael Hennebry wrote:
> Until recently, I had a 32-bit machine with one monitor running fedora.
> The later editions of fedora didn't like it, so I switched to CentOS.
> Now I have two 64-bit machines and two monitors and a CenturyLink router.
> Also a KVM switch that I have not taken out of the package.
> My main machine has two video connections
> and two ethernet connections, eth0 and eth1 .
>
> I've never had more than one machine or more than one monitor before.
>
> I'd like to be able to use both monitors at once on my main machine.
> I'd like to be able to switch one monitor
> between machines without too much trouble.
> I'd rather not where the pins out.
> KVM will do this, right?
> KVM is transparent to the computer, right?
> My secondary machine sometimes runs Windows,
> so I'd like it not to have its own global IP address.
> My first thought would be to connect it directly
> to one of the ethernet ports on my main machine.
>
> How do I go about this?
> The answer I am expecting is one or more links to tutorials or the like.

my 2 monitors each have several video inputs. both monitors are DVI 
to my main computer, and I recently plugged the 2nd monitor into another 
computer via VGA, so I could switch it using the front panel pushbutton 
on hte monitor.   I used a seperate keyboard/mouse for that seperate 
computer.

IF your monitor and computers use the same video connection as your KVM 
supports, then sure, you could put the KVM on one monitor, and switch it 
and the keyboard between the two computers, the other monitor would stay 
plugged into the one computer that has dual ouputs.

now, about that networking thing.   thats a whole different issue. 
plugging the 2nd computer into the 2nd port on the first computer will 
require the first computer to implement some form of network sharing and 
to configure a 2nd subnet address range on that 2nd port, something like 
192.168.x.y.


-- 
john r pierce  37N 122W
somewhere on the middle of the left coast

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


Re: [CentOS] freebsd hangs when install on centos6.5

2014-05-27 Thread Jarod. w
Update status:
After upgrading kernel from rhel 7 rc, it works.


2014-05-27 17:09 GMT+08:00 Andrew Holway :

> >
> >
> > Any suggestions?
> >
>
> This is because of an issue that has been fixed in later linux kernels.
> upgrading to the kernel-ml or kernel-lt from El-Repo or trying an operating
> systems with a more advanced kernel such as Ubuntu or Fedora should fix it.
> ___
> CentOS mailing list
> CentOS@centos.org
> http://lists.centos.org/mailman/listinfo/centos
>



-- 
---
Best Regards
Jarod.W
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] "new" computers and monitors

2014-05-27 Thread Michael Hennebry
On Tue, 27 May 2014, John R Pierce wrote:

> On 5/27/2014 5:38 PM, Michael Hennebry wrote:
>> Until recently, I had a 32-bit machine with one monitor running fedora.
>> The later editions of fedora didn't like it, so I switched to CentOS.
>> Now I have two 64-bit machines and two monitors and a CenturyLink router.
>> Also a KVM switch that I have not taken out of the package.
>> My main machine has two video connections
>> and two ethernet connections, eth0 and eth1 .
>>
>> I've never had more than one machine or more than one monitor before.
>>
>> I'd like to be able to use both monitors at once on my main machine.
>> I'd like to be able to switch one monitor
>> between machines without too much trouble.
>> I'd rather not where the pins out.
>> KVM will do this, right?
>> KVM is transparent to the computer, right?
>> My secondary machine sometimes runs Windows,
>> so I'd like it not to have its own global IP address.
>> My first thought would be to connect it directly
>> to one of the ethernet ports on my main machine.
>>
>> How do I go about this?
>> The answer I am expecting is one or more links to tutorials or the like.

> my 2 monitors each have several video inputs. both monitors are DVI

My monitors have only a single input each.

> IF your monitor and computers use the same video connection as your KVM
> supports, then sure, you could put the KVM on one monitor, and switch it
> and the keyboard between the two computers, the other monitor would stay
> plugged into the one computer that has dual ouputs.

In other words, if it works, the KVM switch is transparent to the computers:
Neither computer will need additional programming.
Good.

If I plug both monitors or one monitor and the KVM switch into
the dual-output computer, it should boot up and use both.
Correct?

> now, about that networking thing.   thats a whole different issue.
> plugging the 2nd computer into the 2nd port on the first computer will
> require the first computer to implement some form of network sharing and
> to configure a 2nd subnet address range on that 2nd port, something like
> 192.168.x.y.

I thought the networking thing might be more interesting.
I was petty sure that each should have a local IP address for the other
and if the 2nd machine wants to contact the outside world,
numero uno will need to know how to mediate the connection.

-- 
Michael   henne...@web.cs.ndsu.nodak.edu
"SCSI is NOT magic. There are *fundamental technical
reasons* why it is necessary to sacrifice a young
goat to your SCSI chain now and then."   --   John Woods
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] freebsd hangs when install on centos6.5

2014-05-27 Thread Jarod. w
Hi, Andrew

2014-05-27 17:09 GMT+08:00 Andrew Holway :

> >
> >
> > Any suggestions?
> >
>
> This is because of an issue that has been fixed in later linux kernels.
>

Could you remind me which patch has fixed the issue in upstream kernel?

thanks in advance.

upgrading to the kernel-ml or kernel-lt from El-Repo or trying an operating
> systems with a more advanced kernel such as Ubuntu or Fedora should fix it.
> ___
> CentOS mailing list
> CentOS@centos.org
> http://lists.centos.org/mailman/listinfo/centos
>



-- 
---
Best Regards
Jarod.W
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos