Re: [CentOS] which uuid to specify a raid in fstab

2015-03-07 Thread Negative
Thanks.



On Sat, Mar 7, 2015 at 4:26 PM, Miguel Medalha 
wrote:

> Assuming your raid group is /dev/md127, you can run:
>
> ls -l /dev/disk/by-uuid
>
> or
>
> blkid /dev/md127
>
> and use the ID both will show for /dev/md127
>
> ___
> 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


[CentOS] which uuid to specify a raid in fstab

2015-03-07 Thread Negative
I'm confused about which UUID to use to identify a software RAID in fstab.

lsblk -fs shows:

md127p1   ext4c43af789-82aa-49e9-a8ed-acd52b1cdd58 /y
--- md127   ext4  39c20575-4257-4fd7-b5c8-8a15757e9e8e
  --- sdb1  linux_r hostname:0
  af77830e-8cfd-9012-62ce-e57105c3bf6c
  --- sdb
  --- sdc1  linux_r hostname:0
  af77830e-8cfd-9012-62ce-e57105c3bf6c
  --- sdc linux_r hostname:0
  af77830e-8cfd-9012-62ce-e57105c3bf6c


mdadm --detail

gives for both md127p1 and md127

UUID : af77830e:8cfd9012:62cee571:05c3bf6c


I want to add some disks to the server, not to the raid and I wanted to
avoid trouble with the names.

Any help would be appreciated.

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


Re: [CentOS] CentOS 7 on dual-monitor workstation?

2015-02-16 Thread Negative
I have an Nvidia GT 720 in a Centos 7 machine with XFCE and two 22"
monitors, and have no problems. I use the El Repo packages.

On Mon, Feb 16, 2015 at 1:29 AM, Niki Kovacs  wrote:

> Hi,
>
> My workstation is currently running Slackware Linux 14.1 64-bit, and I'm
> considering replacing that by CentOS 7, which I've already installed on my
> laptop.
>
> The PC has an NVidia GeForce GT 520 video card with two 19'' monitors
> attached to it. I'm using the proprietary 'nvidia' driver.
>
> I vaguely remember having read somewhere that RHEL/CentOS 7 with GNOME 3
> had trouble with dual monitors. Now since this is my main workhorse PC, I
> thought I'd rather ask before migrating, just to be on the safe side.
>
> Anybody on this list running CentOS 7 on a similar hardware configuration?
>
> If I remember correctly from the time spent with CentOS 5.x, the
> proprietary 'nvidia' drivers are best configured using the third-party
> ELRepo package repository. Correct me if I'm wrong.
>
> Cheers,
>
> Niki
> --
> Microlinux - Solutions informatiques 100% Linux et logiciels libres
> 7, place de l'église - 30730 Montpezat
> Web  : http://www.microlinux.fr
> Mail : i...@microlinux.fr
> Tél. : 04 66 63 10 32
> ___
> 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] how to config printing on C7 installed from live image

2014-12-08 Thread Negative
On Mon, Dec 8, 2014 at 2:04 PM, Fred Smith 
wrote:

> On Mon, Dec 08, 2014 at 01:02:02PM -0500, Negative wrote:
> > On Sat, Dec 6, 2014 at 6:21 PM, Fred Smith <
> fre...@fcshome.stoneham.ma.us>
> > wrote:
> >
> > > On Sat, Dec 06, 2014 at 02:17:00PM -0600, Frank Cox wrote:
> > > > On Sat, 6 Dec 2014 14:55:48 -0500
> > > > Fred Smith wrote:
> > > >
> > > > > I thought I needed to start the printer service (cupsd???) but I
> can't
> > > > > find the system-config-services (or whatever it's named, if not
> that)
> > > > > app either.
> > > >
> > > > systemctl start cups.service
> > >
> > > thanks Frank! Actually I had figured that out shortly after posting,
> > > but was hung up on the subsequent problem for a while, and so didn't
> > > post.
> > >
> > > the subsequent problem is that Brother's drivers are 32-bit and
> > > if you're using 64-bit Linux you need to install the 32-bit glibc.
> > > Duh.
> > >
> > > Now it's working.
> > >
> > >
> > I have been hung up by the same glibc 32-bit/brother problem, but I don't
> > know how to resolve it. This is a new Centos 7 installation. On a Centos
> 6
> > system, I simply installed the 32-version and the printer worked.
> >
> > But I run into a dependency/version problem that would require ever
> deeper
> > downgrading of those libraries. When I try to install glibc.i686 , i get:
> >
> > Error: Package: glibc-2.17-55.el7.i686 (base)
> >Requires: glibc-common = 2.17-55.el7
> >Installed: glibc-common-2.17-55.el7_0.1.x86_64 (@updates)
> >glibc-common = 2.17-55.el7_0.1
> >
> > Trying to downgrade glibc-common, fails on account of other glibc version
> > problems.
> >
> > It appears that all glibc libraries, including kernel headers, were
> > upgraded, except for glibc.i686 (which I hadn't installed when I set up
> the
> > system) has never been upgraded.
> >
> > If anyone knows what I can do, where I could find a newer 32-bit glibc,
> > please let me know. I can't find the matching rpm.
>
> I had no such problems, I just did "yum install glibc.i686" and voila!
> Are you sure that (1) your system is fully up to date, and (2) you haven't
> installed any funky apps/libs that would be interfering here?
>
> Fred
> --
>


I have got to thank you! If you could install glibc.i686.  I guessed I
could do it.

Thinking there must be a compatible glibc.i686, I searched for mirrors and
I found the needed version on a mirror, at arsc.edu. I don't know why yum
couldn't find a similar version of the packages -- both glibc and
nss-softkn-freebl 32-bit -- but after downloading the packages, I did a
local install, and from there a bit of fooling with system-config-printer,
and  I'm printing.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] how to config printing on C7 installed from live image

2014-12-08 Thread Negative
On Sat, Dec 6, 2014 at 6:21 PM, Fred Smith 
wrote:

> On Sat, Dec 06, 2014 at 02:17:00PM -0600, Frank Cox wrote:
> > On Sat, 6 Dec 2014 14:55:48 -0500
> > Fred Smith wrote:
> >
> > > I thought I needed to start the printer service (cupsd???) but I can't
> > > find the system-config-services (or whatever it's named, if not that)
> > > app either.
> >
> > systemctl start cups.service
>
> thanks Frank! Actually I had figured that out shortly after posting,
> but was hung up on the subsequent problem for a while, and so didn't
> post.
>
> the subsequent problem is that Brother's drivers are 32-bit and
> if you're using 64-bit Linux you need to install the 32-bit glibc.
> Duh.
>
> Now it's working.
>
>
I have been hung up by the same glibc 32-bit/brother problem, but I don't
know how to resolve it. This is a new Centos 7 installation. On a Centos 6
system, I simply installed the 32-version and the printer worked.

But I run into a dependency/version problem that would require ever deeper
downgrading of those libraries. When I try to install glibc.i686 , i get:

Error: Package: glibc-2.17-55.el7.i686 (base)
   Requires: glibc-common = 2.17-55.el7
   Installed: glibc-common-2.17-55.el7_0.1.x86_64 (@updates)
   glibc-common = 2.17-55.el7_0.1

Trying to downgrade glibc-common, fails on account of other glibc version
problems.

It appears that all glibc libraries, including kernel headers, were
upgraded, except for glibc.i686 (which I hadn't installed when I set up the
system) has never been upgraded.

If anyone knows what I can do, where I could find a newer 32-bit glibc,
please let me know. I can't find the matching rpm.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] yum problem with glibc.i686 -- was "Anyone have a Brother multifunction working...?"

2014-11-23 Thread Negative
On Mon, Nov 17, 2014 at 7:21 PM, Negative 
wrote:

On Mon, Nov 17, 2014 at 11:10 AM, Daniel J Walsh 
wrote:


On 11/12/2014 10:54 PM, Peter wrote:
> On 11/13/2014 12:10 PM, Negative wrote:
>> I have a Brother MFC 7360N, and it is refusing to print.
> I have a DCP-540CN which is a similar but I think older network
printer.
>  I haven't tried it on CentOS 7 yet, but got it to work with
Fedora 18
> and 19 which are very similar.  I do recall having to create an
selinux
> policy to get it to work, so that may very well be your issue.
>
>
> Peter




Usually it should just work. But you might need to run restorecon
-R -v
/usr after the install to set the SELinux labels correctly.
___


I've continued to try to get this going, but no luck so far.

I've tried the Brother installer script and it fails to set up the
printer, after complained that I need the 32-bit libraries.  That's from
the rpm, mfc7360nlpr from Brother.

When I try to install glibc.i686, it complains that I need an older
glibc-common, and trying to step back on glibc-common didn't work because
of a bunch of dependencies.  I'm just not sure if it's a good idea to
install the glibc.i686 with nodeps, and see what happens.
I've had no luck setting this up manually. Besides not printing, the
scanner won't work, which is why I want this printer.

The printer had been connected via usb to a Centos 5x machine and just
installed, no problem, scanner and all.


This is definitely nothing more than a version problem with glibc.i686. I
had some time today, and easily set up the printer -- networked -- on a
Fedora 20 system, and a Centos 6 system. Both are 64-bit machines, and I
had no problem putting glibc.i686 on them. After that the Brother installer
did all the work.

But on the machine in question, the only glibc.i686 that yum finds is
glibc-2.17-55.el7 in base, but the trouble is that my glibc-common was
updated to glibc-common 2.17-55.el7_0.1.x86_64 from updates.

Is there a compatible update to glibc.i686? I would've thought there'd be
one in updates when glibc-common was updated.
I tried installing glibc with nodeps, and I tried downgrading glibc-common,
but yum refused.

Part of the problem is some multimedia packages installed from nux.

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


Re: [CentOS] Anyone have a Brother multifunction working on Centos 7?

2014-11-17 Thread Negative
On Mon, Nov 17, 2014 at 11:10 AM, Daniel J Walsh  wrote:

>
> On 11/12/2014 10:54 PM, Peter wrote:
> > On 11/13/2014 12:10 PM, Negative wrote:
> >> I have a Brother MFC 7360N, and it is refusing to print.
> > I have a DCP-540CN which is a similar but I think older network printer.
> >  I haven't tried it on CentOS 7 yet, but got it to work with Fedora 18
> > and 19 which are very similar.  I do recall having to create an selinux
> > policy to get it to work, so that may very well be your issue.
> >
> >
> > Peter
>



> Usually it should just work. But you might need to run restorecon -R -v
> /usr after the install to set the SELinux labels correctly.
> ___
>

I've continued to try to get this going, but no luck so far.

I've tried the Brother installer script and it fails to set up the printer,
after complained that I need the 32-bit libraries.  That's from the rpm,
mfc7360nlpr from Brother.

When I try to install glibc.i686, it complains that I need an older
glibc-common, and trying to step back on glibc-common didn't work because
of a bunch of dependencies.  I'm just not sure if it's a good idea to
install the glibc.i686 with nodeps, and see what happens.

I've had no luck setting this up manually. Besides not printing, the
scanner won't work, which is why I want this printer.

The printer had been connected via usb to a Centos 5x machine and just
installed, no problem, scanner and all.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] Anyone have a Brother multifunction working on Centos 7?

2014-11-12 Thread Negative
I have a Brother MFC 7360N, and it is refusing to print.

Given a job, the printer state shows, "Sending data to printer"; the file
is in the spool dir; the job queue is empty, and nothing more happens.

I had used the Brother driver installer, and ran into a 32-bit problem. The
rpm runs braddprinter, which fails looking for /lib/ld-linux.so.2. I don't
know what braddprinter does, but I then tried setting up the printer
through the system printer config. Everything seems to go ok. A driver is
in /usr/share/cups.

I tried to install glibc.i686, but it wants glibc-common. I have the 64-bit
glibc-common package but do not see a i686 one available.

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


Re: [CentOS] legacy-x

2014-11-02 Thread Negative
Worked fine. Thanks.



On Thu, Oct 30, 2014 at 8:26 PM, Peter  wrote:

> On 10/31/2014 11:54 AM, Negative wrote:
> > One option now is to install XFCE, but I don't know how that works.
>
> That's actually pretty easy:
> yum install epel-release
> yum install @xfce
>
> Then you just change your desktop environment to xfce at the login screen.
>
>
> Peter
> ___
> 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


[CentOS] legacy-x

2014-10-30 Thread Negative
I recently installed Centos 7 on a new desktop, and I intended to put XFCE
on it, but I think I made a mistake by choosing the Legacy-X group, and now
I'm puzzled as to what I have.

I thought my first boot would be into runlevel 3, but I got a gui that
looks like an odd mix of Gnome 2 and KDE. The anaconda logs show a group
install of gnome-desktop and legacy-x, plus a lot of KDE stuff.

The mix looks ok, and handles my dual monitors fine, but there are some
prefs that simply don't work -- one important bit is that my monitors
mostly (but sometimes) go into power save, and I cannot find an option to
do it manually.

One option now is to install XFCE, but I don't know how that works. Maybe
better to uninstall gnome-desktop and legacy-x and just go with XFCE, and
I'll wind up with a coherent environment. Btw, I've tried both Gnome 3 and
xfce on an old machine in fedora, and much prefer XFCE. (Luckily, we have
choices.)

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


[CentOS] Firefox, Thunderbird crashing X Centos 5.11

2014-10-15 Thread Negative
I cannot start Firefox or Thunderbird ever since I tried to put in a new
graphics card.

I had trouble with the configuration on this machine, which has two
monitors. Once the new card was in I decided to change the configuration
from cloned to spanning screens.  I messed up and didn't save the old
working configuration. Along the way, I wondered if the new card didn't
have a problem and I put the old one back. At some time in all this,
 firefox began crashing on startup, but that wasn't the primary problem.

The old card, now installed, is an  nvidia Quadro fx580.  I use El-Repo's
kmod-nvidia and driver. It's up to date.

The X error appended to the Xorg log on the last FF crash Is thus:

Backtrace:
0: X(xf86SigHandler+0x71) [0x4868d1]
1: /lib64/libc.so.6 [0x39c4c30030]

Fatal server error:
Caught signal 11. Server aborting

(II) Screen 0 shares mem & io resources
(II) Screen 1 shares mem & io resources

Any thoughts, suggestions?

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


Re: [CentOS] guest vms crash host systems -- SOLVED

2011-10-06 Thread Negative
On Wed, Oct 5, 2011 at 10:27 PM, Negative wrote:

> On Wed, Oct 5, 2011 at 3:11 PM, Negative wrote:
>
>> On Wed, Oct 5, 2011 at 3:06 PM, Negative wrote:
>>
>>> On Wed, Oct 5, 2011 at 1:00 PM,  wrote:
>>>
>>>> Negative wrote:
>>>> > On Wed, Oct 5, 2011 at 11:15 AM,  wrote:
>>>> > Negative wrote:
>>>> > On Wed, Oct 5, 2011 at 11:15 AM,  wrote:
>>>> >> Negative wrote:
>>>> 
>>>> >> > I still wonder what is causing this. I couldn't find any mention of
>>>> a
>>>> >> > similar problem, including on my desktop in my office, where I have
>>>> a
>>>> >> > very similar setup, with four kvm guests, two Fedora, one Centos 6
>>>> and
>>>> >> > one Windows XP.
>>>> 
>>>> Do I remember this is 5.7? Look at the announcement that *just* came out
>>>> in the last hour, with the libX11 bugfix.
>>>> <https://rhn.redhat.com/errata/RHBA-2011-1351.html> says "Previously,
>>>> in
>>>> the 64-bit mode, libX11 computed addresses using the 32-bit arithmetic.
>>>> As
>>>> a consequence, under heavy load, applications running in the X
>>>> environment
>>>> terminated unexpectedly. A patch has been provided to address this
>>>> issue,
>>>> and the crashes no longer occur in the described scenario."
>>>>
>>>>   mark
>>>>
>>>>
>> And, Mark, thanks for mentioning it.
>>
>>
>>>
>>> If this isn't my lucky day. RH and Centos solved my problem even before I
>>> defined it.
>>>
>>> I saw the update earlier and didn't dare hope. I updated and it seems to
>>> have solved the issue. On the host machine, I fired up virt-manager, started
>>> the Fedora  guest and it's been up for a half hour.
>>>
>>> Now I, too, can start complaining about Gnome 3. I've read it's like
>>> Windows, but it's the spitting image of the Mac OS.
>>>
>>>
>>>
>>
>
> I spoke too soon. Crashed again after being up for several hours. I'm
> running memtest86 now.
>
>
After memtest found no errors, I gave another shot at looking for a software
reason for the crashes and found the cause.

I hadn't mention that I messed up the bridge setup. I didn't think that
could lock up the host machine, but it did. Once I had the bridge fixed, the
crashing stopped and network has been working on the guest. So it was my bad
there.

I thought that an incorrect network config would only affect networking, but
it was causing a kernel panic.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] guest vms crash host systems

2011-10-05 Thread Negative
On Wed, Oct 5, 2011 at 3:11 PM, Negative  wrote:

> On Wed, Oct 5, 2011 at 3:06 PM, Negative wrote:
>
>> On Wed, Oct 5, 2011 at 1:00 PM,  wrote:
>>
>>> Negative wrote:
>>> > On Wed, Oct 5, 2011 at 11:15 AM,  wrote:
>>> > Negative wrote:
>>> > On Wed, Oct 5, 2011 at 11:15 AM,  wrote:
>>> >> Negative wrote:
>>> 
>>> >> > I still wonder what is causing this. I couldn't find any mention of
>>> a
>>> >> > similar problem, including on my desktop in my office, where I have
>>> a
>>> >> > very similar setup, with four kvm guests, two Fedora, one Centos 6
>>> and
>>> >> > one Windows XP.
>>> 
>>> Do I remember this is 5.7? Look at the announcement that *just* came out
>>> in the last hour, with the libX11 bugfix.
>>> <https://rhn.redhat.com/errata/RHBA-2011-1351.html> says "Previously, in
>>> the 64-bit mode, libX11 computed addresses using the 32-bit arithmetic.
>>> As
>>> a consequence, under heavy load, applications running in the X
>>> environment
>>> terminated unexpectedly. A patch has been provided to address this issue,
>>> and the crashes no longer occur in the described scenario."
>>>
>>>   mark
>>>
>>>
> And, Mark, thanks for mentioning it.
>
>
>>
>> If this isn't my lucky day. RH and Centos solved my problem even before I
>> defined it.
>>
>> I saw the update earlier and didn't dare hope. I updated and it seems to
>> have solved the issue. On the host machine, I fired up virt-manager, started
>> the Fedora  guest and it's been up for a half hour.
>>
>> Now I, too, can start complaining about Gnome 3. I've read it's like
>> Windows, but it's the spitting image of the Mac OS.
>>
>>
>>
>

I spoke too soon. Crashed again after being up for several hours. I'm
running memtest86 now.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] guest vms crash host systems

2011-10-05 Thread Negative
On Wed, Oct 5, 2011 at 3:06 PM, Negative  wrote:

> On Wed, Oct 5, 2011 at 1:00 PM,  wrote:
>
>> Negative wrote:
>> > On Wed, Oct 5, 2011 at 11:15 AM,  wrote:
>> > Negative wrote:
>> > On Wed, Oct 5, 2011 at 11:15 AM,  wrote:
>> >> Negative wrote:
>> 
>> >> > I still wonder what is causing this. I couldn't find any mention of a
>> >> > similar problem, including on my desktop in my office, where I have a
>> >> > very similar setup, with four kvm guests, two Fedora, one Centos 6
>> and
>> >> > one Windows XP.
>> 
>> Do I remember this is 5.7? Look at the announcement that *just* came out
>> in the last hour, with the libX11 bugfix.
>> <https://rhn.redhat.com/errata/RHBA-2011-1351.html> says "Previously, in
>> the 64-bit mode, libX11 computed addresses using the 32-bit arithmetic. As
>> a consequence, under heavy load, applications running in the X environment
>> terminated unexpectedly. A patch has been provided to address this issue,
>> and the crashes no longer occur in the described scenario."
>>
>>   mark
>>
>>
And, Mark, thanks for mentioning it.


>
> If this isn't my lucky day. RH and Centos solved my problem even before I
> defined it.
>
> I saw the update earlier and didn't dare hope. I updated and it seems to
> have solved the issue. On the host machine, I fired up virt-manager, started
> the Fedora  guest and it's been up for a half hour.
>
> Now I, too, can start complaining about Gnome 3. I've read it's like
> Windows, but it's the spitting image of the Mac OS.
>
>
>
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] guest vms crash host systems

2011-10-05 Thread Negative
On Wed, Oct 5, 2011 at 1:00 PM,  wrote:

> Negative wrote:
> > On Wed, Oct 5, 2011 at 11:15 AM,  wrote:
> > Negative wrote:
> > On Wed, Oct 5, 2011 at 11:15 AM,  wrote:
> >> Negative wrote:
> 
> >> > I still wonder what is causing this. I couldn't find any mention of a
> >> > similar problem, including on my desktop in my office, where I have a
> >> > very similar setup, with four kvm guests, two Fedora, one Centos 6 and
> >> > one Windows XP.
> 
> Do I remember this is 5.7? Look at the announcement that *just* came out
> in the last hour, with the libX11 bugfix.
> <https://rhn.redhat.com/errata/RHBA-2011-1351.html> says "Previously, in
> the 64-bit mode, libX11 computed addresses using the 32-bit arithmetic. As
> a consequence, under heavy load, applications running in the X environment
> terminated unexpectedly. A patch has been provided to address this issue,
> and the crashes no longer occur in the described scenario."
>
>   mark
>
>
If this isn't my lucky day. RH and Centos solved my problem even before I
defined it.

I saw the update earlier and didn't dare hope. I updated and it seems to
have solved the issue. On the host machine, I fired up virt-manager, started
the Fedora  guest and it's been up for a half hour.

Now I, too, can start complaining about Gnome 3. I've read it's like
Windows, but it's the spitting image of the Mac OS.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] guest vms crash host systems

2011-10-05 Thread Negative
On Wed, Oct 5, 2011 at 11:15 AM,  wrote:

> Negative wrote:
> > On Wed, Oct 5, 2011 at 11:00 AM,  wrote:
> >> Les Mikesell wrote:
> >> > On Wed, Oct 5, 2011 at 8:17 AM, Negative 
> >> > wrote:
> >> 
> >> >> So now I've found I can run X without problems and I can run qemu-kvm
> >> >> without problems, but I cannot run both at the same time.
> >> >
> >> > 'X' should be split cleanly into client and server programs where in
> >> > X-speak  the server serves the display and keyboard and programs are
> >> > the clients.   An X client program should not be touching any hardware
> >> > directly.  But, virtualization stuff might try to cheat.   If you
> >> > don't need the local console, you might try loading VMware ESXi first,
> >> > then run all your other OS's as guests under that - you do need a
> >> > windows box to run as the console when making changes or installing
> >> > things, though.
> >>
> >> Actually, if you do that, you can log into ESX1 - it's actually a
> >> modified RHEL 3, I think. It's the remote admin GUI that you need
> >> WinDoze for.
> >>
> > VMware's a possibility. Would I need to remove the kvm package?  Do I
> have
> > to keep libvirtd off?
>
> You could.
> >
> > I still wonder what is causing this. I couldn't find any mention of a
> > similar problem, including on my desktop in my office, where I have a
> very
> > similar setup, with four kvm guests, two Fedora, one Centos 6 and one
> > Windows XP.
>
> It keeps coming back to sounding like a hardware problem, maybe the video
> card.
>
>   mark
>
>
That was my first thought. I've had the same behavior with two video cards
-- an ATI and an nvidia.

Could it be that the kvm-amd module causes problems? It is loaded along with
the kvm-intel and kvm. .
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] guest vms crash host systems

2011-10-05 Thread Negative
On Wed, Oct 5, 2011 at 11:00 AM,  wrote:

> Les Mikesell wrote:
> > On Wed, Oct 5, 2011 at 8:17 AM, Negative 
> > wrote:
> 
> >> So now I've found I can run X without problems and I can run qemu-kvm
> >> without problems, but I cannot run both at the same time.
> >
> > 'X' should be split cleanly into client and server programs where in
> > X-speak  the server serves the display and keyboard and programs are
> > the clients.   An X client program should not be touching any hardware
> > directly.  But, virtualization stuff might try to cheat.   If you
> > don't need the local console, you might try loading VMware ESXi first,
> > then run all your other OS's as guests under that - you do need a
> > windows box to run as the console when making changes or installing
> > things, though.
>
> Actually, if you do that, you can log into ESX1 - it's actually a modified
> RHEL 3, I think. It's the remote admin GUI that you need WinDoze for.
>
>   mark
>
>
VMware's a possibility. Would I need to remove the kvm package?  Do I have
to keep libvirtd off?

I still wonder what is causing this. I couldn't find any mention of a
similar problem, including on my desktop in my office, where I have a very
similar setup, with four kvm guests, two Fedora, one Centos 6 and one
Windows XP.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] guest vms crash host systems

2011-10-05 Thread Negative
On Wed, Oct 5, 2011 at 1:10 AM, Les Mikesell  wrote:

> On Tue, Oct 4, 2011 at 11:41 PM, Negative 
> wrote:
> >
> >> Do you have to use the local video at all?   What happens if you use
> >> freenx and run in a session started from a remote NX client?
> >>
> >
> > Doesn't freenx use X? I haven't installed but will try it.
>
> Yes, it uses X, but it doesn't use the local video hardware.
>
> > What I did try was to leave X off on workstation and built a fedora
> guest. I
> > also connected to the workstation from another machine via ssh and I
> tried
> > running the virt-viewer via X-forwarding, it stayed up for about 10 or 15
> > minutes and crashed. Since I could see the console on the work station
> then,
> > it showed a kernel panic.
>
> Not sure what that means.   Freenx would at least keep the sesson
> active when you disconnect.
>

I was trying to say, but not very well, that when qemu-kvm is running a
guest and X is running, whether it's on the local video hardware or not, I
get a kernel panic.

So now I've found I can run X without problems and I can run qemu-kvm
without problems, but I cannot run both at the same time.

I wonder if an older version of the kvm package would work around this, or
maybe an older version of the kernel.

kernel: 2..18-274.3.1.el5
kvm: 83-239.el5.centos


> After rebooting I opened a terminal via ssh and it seems ok -- up for
about
> 30 minutes so far, I'll check in the morning.
>
> The trouble with that is I usually connect to the workshop via vnc, so I'm
> not sure the guest will be of much use.

 A vncserver session not attached to the local console should also
> avoid local hardware issues - but freenx/NX is nicer to use.
>
> --
>   Les Mikesell
>lesmikes...@gmail.com
> ___
> 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] guest vms crash host systems

2011-10-04 Thread Negative
On Tue, Oct 4, 2011 at 4:16 PM, Les Mikesell  wrote:

> On Tue, Oct 4, 2011 at 2:51 PM, Negative 
> wrote:
> > >
> > Since the crashes can be duplicated and are only caused by this one
> > combination of events, I don't know.
> >
> > On another machine, I had a case where none of the kvm guests would boot.
> It
> > turned out to be a conflict between libvirt and the nvidia proprietary
> > driver. I used an old version of the video driver until Nvidia caught up.
> > (It only affected amd processors.)
>
> Do you have to use the local video at all?   What happens if you use
> freenx and run in a session started from a remote NX client?
>

Doesn't freenx use X? I haven't installed but will try it.

What I did try was to leave X off on workstation and built a fedora guest. I
also connected to the workstation from another machine via ssh and I tried
running the virt-viewer via X-forwarding, it stayed up for about 10 or 15
minutes and crashed. Since I could see the console on the work station then,
it showed a kernel panic.

After rebooting I opened a terminal via ssh and it seems ok -- up for about
30 minutes so far, I'll check in the morning.

The trouble with that is I usually connect to the workshop via vnc, so I'm
not sure the guest will be of much use.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] guest vms crash host systems

2011-10-04 Thread Negative
On Tue, Oct 4, 2011 at 2:24 PM,  wrote:

> Negative wrote:
> > On Tue, Oct 4, 2011 at 1:18 PM,  wrote:
> >> Negative wrote:
> >> > On Tue, Oct 4, 2011 at 10:41 AM,  wrote:
> >> >> Brian Mathis wrote:
> >> >> > On Mon, Oct 3, 2011 at 10:16 PM, Negative
> >>  >> >
> >> >> > wrote:
> >> >>>> I built guest vm's one for Windows 7 and one for Windows XP using
> >> >>>> the
> >> >>>> virtual machine manager on a  just updated to centos 5.7, and they
> >> >>>> are both crashing the host machine. They run only  for a few
> >> minutes,
> >> 
> >> >> > Is this new hardware?  Have you run any hardware burn testing (CPU,
> >> >> > RAM, etc...) and/or memtest86+ on the RAM?  This sounds like a
> >> >> > hardware issue to me.
> >> >
> 
> >> More and more it sounds like a hardware issue. Hmm, every time X is
> >> running, and you say you had one video card fried - how did it fry?
> >> Also,
> >> is this machine on a good quality surge protector? Have you had a
> >> thunderstorm, or power outages recently?
> >
> > The vendor told me that the particular video card model (I forget which)
> > had some flaw. In any case the fan stopped running, and it heated up. I
> > usually use the machine remotely but I was at the console at that moment.
> > The monitor started flickering and then went gray.
> >
> > The vendor sent a replacement, but I had thrown an old ATI in before it
> > arrived. When the crashes occurred now, I finally put in the replacement.
> > Same behavior.
>
> Have you examined the m/b and cards *around* where the card fried? Its
> heat death may have affected things around it.
>

It looks good to the eye. The capacitors look good.


> >
> > The surge protector is good. I live in NYC and the biggest environmental
> > hazard is the cleaning lady, who has in the past tripped the surge
> > protector switch.
>
>  Do you know the story about the mainframe shop, the racks of tapes,
> and the cleaning staff?
>

Don't know it but I can imagine.


> >
> > I fear you're right about the hardware. But as far as I can tell
> > everything else works fine. I went overboard in buying two quad
> > processors -- so I could live with one if that's the problem.
>
> A replacement m/b?
>
>
That's a tough one!

Since the crashes can be duplicated and are only caused by this one
combination of events, I don't know.

On another machine, I had a case where none of the kvm guests would boot. It
turned out to be a conflict between libvirt and the nvidia proprietary
driver. I used an old version of the video driver until Nvidia caught up.
(It only affected amd processors.)
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] guest vms crash host systems

2011-10-04 Thread Negative
On Tue, Oct 4, 2011 at 1:18 PM,  wrote:

> Negative wrote:
> > On Tue, Oct 4, 2011 at 10:41 AM,  wrote:
> >> Brian Mathis wrote:
> >> > On Mon, Oct 3, 2011 at 10:16 PM, Negative  >
> >> > wrote:
> >>>> I built guest vm's one for Windows 7 and one for Windows XP using the
> >>>> virtual machine manager on a  just updated to centos 5.7, and they
> >>>> are both crashing the host machine. They run only  for a few minutes,
> 
> >> > Is this new hardware?  Have you run any hardware burn testing (CPU,
> >> > RAM, etc...) and/or memtest86+ on the RAM?  This sounds like a
> >> > hardware issue to me.
> >
> > It's about three years old. I had one hardware issue a year ago in which
> a
> > video card fried, but it's been great. I will run memtest this afternoon.
> >
> >> I agree with Brian - it may be coincidental that you built the VMs, and
> >> then it started crashing.
> 
> > -- and that would've been my fault. Then, every time X is running the
> > guest and host crash.
> >>
> >> One other question: is selinux enabled?
> >
> > Yes. No warnings, though.
>
> More and more it sounds like a hardware issue. Hmm, every time X is
> running, and you say you had one video card fried - how did it fry? Also,
> is this machine on a good quality surge protector? Have you had a
> thunderstorm, or power outages recently?
>
>mark
>

The vendor told me that the particular video card model (I forget which) had
some flaw. In any case the fan stopped running, and it heated up. I usually
use the machine remotely but I was at the console at that moment. The
monitor started flickering and then went gray.

The vendor sent a replacement, but I had thrown an old ATI in before it
arrived. When the crashes occurred now, I finally put in the replacement.
Same behavior.

The surge protector is good. I live in NYC and the biggest environmental
hazard is the cleaning lady, who has in the past tripped the surge protector
switch.

I fear you're right about the hardware. But as far as I can tell everything
else works fine. I went overboard in buying two quad processors -- so I
could live with one if that's the problem.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] guest vms crash host systems

2011-10-04 Thread Negative
On Tue, Oct 4, 2011 at 10:41 AM,  wrote:

> Brian Mathis wrote:
> > On Mon, Oct 3, 2011 at 10:16 PM, Negative 
> > wrote:
> >> I built guest vm's one for Windows 7 and one for Windows XP using the
> >> virtual machine manager on a  just updated to centos 5.7, and they are
> >> both crashing the host machine. They run only  for a few minutes, but
> >> suddenly freeze, crashing the host. Â There is no networking. No X. No
> >> way to drop out of X. The only way out is a hard reboot. I don't see
> >> anything in the logs -- messages or libvirt logs -- immediately before
> >> the crash.
> 
> > Is this new hardware?  Have you run any hardware burn testing (CPU,
> > RAM, etc...) and/or memtest86+ on the RAM?  This sounds like a
> > hardware issue to me.
>

It's about three years old. I had one hardware issue a year ago in which a
video card fried, but it's been great. I will run memtest this afternoon.


> I agree with Brian - it may be coincidental that you built the VMs, and
> then it started crashing.
>

I should run memtest. I don't know of a tool to check the processors. I use
the machine for analyzing data, and often use most of the 32 gigs of memory
in it, but I doubt I've ever seriously stressed the processors.

I created the two guests with the gui, but since they crash, I started one
without starting X on the host, using virsh. The guest and host both stay
up. When starting using  virsh with the --console switch I get what looks
like a telnet connection. But I know almost nothing about Windows and don't
know what to look at. Networking between the guest and host might be borked
-- and that would've been my fault. Then, every time X is running the guest
and host crash.


>
> One other question: is selinux enabled?
>

Yes. No warnings, though.

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


[CentOS] guest vms crash host systems

2011-10-03 Thread Negative
I built guest vm's one for Windows 7 and one for Windows XP using the
virtual machine manager on a  just updated to centos 5.7, and they are both
crashing the host machine. They run only  for a few minutes, but suddenly
freeze, crashing the host.  There is no networking. No X. No way to drop out
of X. The only way out is a hard reboot. I don't see anything in the logs --
messages or libvirt logs -- immediately before the crash.

I haven't found anything like this on the web or on this list. The
workstation has two xeon E5410s. I noticed that both the kvm-amd and
kvm-intel modules are loaded, but don't know if that would cause a problem.
I had an ati firepro graphics card in the machine, but suspected that might
be the source of some conflict, and I put in an Nvidia card.

The vm's were built with all the defaults. The configuration is just about
identical to vms I have running on a smaller machine with a dual core
Athalon.

Thanks for any suggestions.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] virtmanager and selinux -- solved

2011-04-12 Thread Negative
On Tue, Apr 12, 2011 at 7:17 PM, Negative wrote:

> I built a new VM under KVM today and I've been getting  a slew of message
> that selinux is blocking virtmanager from reading the new image. This
> doesn't seem to be doing any harm, but I wanted to check whether I should
> simply run chcon on the image (if I can).
>
> Virtmanager show up as usr_t, as do my other vm images, but the new one is
> svirt_image_t.
>
> The selinux error says it denied a read access to virtmanager but that it
> is not expected that the access is required.
>
> I tried running restorecon as root, as suggested by the selinux error, but
> I'm getting a permission-denied error there. (It tries to set the context to
> usr_t)
>
> Thanks in advance
>
>
>
My bad. I had to shut down the vm and quit virtmanager before I could run
chcon. It's ok now.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] virtmanager and selinux

2011-04-12 Thread Negative
I built a new VM under KVM today and I've been getting  a slew of message
that selinux is blocking virtmanager from reading the new image. This
doesn't seem to be doing any harm, but I wanted to check whether I should
simply run chcon on the image (if I can).

Virtmanager show up as usr_t, as do my other vm images, but the new one is
svirt_image_t.

The selinux error says it denied a read access to virtmanager but that it is
not expected that the access is required.

I tried running restorecon as root, as suggested by the selinux error, but
I'm getting a permission-denied error there. (It tries to set the context to
usr_t)

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


Re: [CentOS] the mighty Karanbir Singh and centos team

2011-04-09 Thread Negative
On Sat, Apr 9, 2011 at 10:11 AM, Kevin Thorpe
wrote:

> Cheers Karanbeer (sic) and team, I think we all owe you several cold ones.
>

A beautiful job!
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Issues with CentOS in enterprise

2010-12-12 Thread Negative
On Sun, Dec 12, 2010 at 12:26 PM, Robert Heller  wrote:

> At Sun, 12 Dec 2010 17:45:23 +0100 CentOS mailing list 
> wrote:
>
> >
> > Hello all.
> >
> > Does anybody have experience with pushing CentOS in enterprise?
> >
> > I have the following situation. I tried to promote CentOS to local bank.
> They have now a couple of Gentoo-based systems and I tried to explain them
> that CentOS is much better option for enterprises.
> >
> > IT department is interested in stability of the system, so they are ready
> to give CentOS a try. But the problem came from management and information
> security division.
> >
> > That guys look much affected by FUD created by M$. They tell the story
> like "you can not rely on this open source, it is built by just few
> community geeks, you never know what will happen if the developer will be
> hit by bus tomorrow" and so on. They especially refer to the last year FUD
> story published at ZDNet (http://goo.gl/y0LBi). So, IT guys are allowed to
> use open source only if they can prove that it has stable community and
> transparent development and build process they can reproduce on their own if
> necessary.
> >
> > I guess, I'm not the first who encounter this issue. Could you share your
> experience how to deal with it? Are there any public resources that can be
> used as proofs of CentOS stability?
> >
>
> Have you pointed the bank people at Red Hat itself.  Red Hat is NOT a
> 'few community geeks' -- they are a thriving business.  Also, you
> probably can mention that IBM support Linux.  IBM is most certainly NOT
> a 'few community geeks'...
>
> >
> > --
> >
> > Zdenek
> >
> > ___
> > CentOS mailing list
> > CentOS@centos.org
> > http://lists.centos.org/mailman/listinfo/centos
> >
> >
>
> --
> Robert Heller -- 978-544-6933 / hel...@deepsoft.com
> Deepwoods Software-- http://www.deepsoft.com/
> ()  ascii ribbon campaign -- against html e-mail
> /\  www.asciiribbon.org   -- against proprietary attachments
>
>
>
Management types like numbers. Here's a Cnet article that gives you the
breakdown of who contributes to Linux:

http://news.cnet.com/8301-13846_3-20024219-62.html

That article, in turn, refers to a Forbes piece on Red Hat and open source
in general:

http://blogs.forbes.com/ciocentral/2010/11/30/red-hat-at-1-billion/

___
> 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] Yum Updates dependencies missing (rpmforge)

2010-12-05 Thread Negative
On Sun, Dec 5, 2010 at 8:43 AM, Lanny Marcus wrote:

> There are updates available, for the below multimedia packages (CentOS
> 5.5, 32 bit), but I'm getting missing dependency errors from yum
> update for these.
>
> ---> Package directfb.i386 0:1.2.10-1.el5.rf set to be updated
> ---> Package ffmpeg.i386 0:0.6.1-1.el5.rf set to be updated
> ---> Package ffmpeg-libpostproc.i386 0:0.6.1-1.el5.rf set to be updated
> ---> Package gstreamer-plugins-ugly.i386 0:0.10.11-2.el5.rf set to be
> updated
> ---> Package kino.i386 0:1.3.4-1.el5.rf set to be updated
> ---> Package libquicktime.i386 0:1.2.1-1.el5.rf set to be updated
> ---> Package lzo.i386 0:2.04-1.el5.rf set to be updated
> ---> Package mplayer.i386 0:1.0-0.44.svn20100703.el5.rf set to be updated
>
> Probably anyone wanting to update the above packages should wait a day
> or two and hopefully the dependencies will become available.
>
> Lanny
> http://www.magazines-magazine.com/
>


Same goes for 64-bit.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] qemu-kvm segfaults on starting guests

2010-10-18 Thread Negative
On Sun, Oct 17, 2010 at 6:32 PM, Akemi Yagi  wrote:

> On Sun, Oct 17, 2010 at 3:11 PM, Negative 
> wrote:
> > I have a Centos 5.5 on an AMD 64 system (Athlon II x2 250).
> >
> > I caught up on updates today, including
> > -- kernel 2.6.18-194.17.1.el5
> > -- glibc 2.5-49.el5_5.5.i686
> >
> > I have several guests that were working before the update, but now none
> of
> > them will boot.
> >
> > With each attempt I get a message in /var/log/messages:
> > -- kernel: qemu-kvm[xx]: segfault at 00379fc0da11 rip
> 2b9f2732283f
> > rsp 446a6e80 error 7
> >
> > Has this happened to others? Any fix. I see similar bugreports, but they
> are
> > not recent, and not quite like this. The closest thing I can find was on
> an
> > nvidia list about vmware posted today -- so maybe this has something to
> do
> > with needing to rebuild the nvidia drivers with every kernel update.
> >
> > Any ideas?
>
> As you noted, the latest version 260.19.12 causes segfault:
>
> http://www.nvnews.net/vbulletin/showthread.php?t=156168
>
> Until Nvidia fixes the issue, the only solution known so far is to go
> back to an earlier version.
>
> Akemi
>

Thanks. I hated to do it because with the previous version, the
monitors keep waking from powersave, but I did and all is well.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] qemu-kvm segfaults on starting guests

2010-10-17 Thread Negative
I have a Centos 5.5 on an AMD 64 system (Athlon II x2 250).

I caught up on updates today, including
-- kernel 2.6.18-194.17.1.el5
-- glibc 2.5-49.el5_5.5.i686

I have several guests that were working before the update, but now none of
them will boot.

With each attempt I get a message in /var/log/messages:
-- kernel: qemu-kvm[xx]: segfault at 00379fc0da11 rip 2b9f2732283f
rsp 446a6e80 error 7

Has this happened to others? Any fix. I see similar bugreports, but they are
not recent, and not quite like this. The closest thing I can find was on an
nvidia list about vmware posted today -- so maybe this has something to do
with needing to rebuild the nvidia drivers with every kernel update.

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


Re: [CentOS] /etc/inittab

2010-05-18 Thread Negative
On Tue, May 18, 2010 at 7:22 PM, Thomas Dukes  wrote:

> Help!
>
> I hosed my system and did a restore from a backup but when I boot, I get an
> error no inittab file found.
>
> Where can I get a 5.2, 'stock' inittab file not in a rpm so I can use a
> rescue disk to create this file? Or if possible, could someone please post
> their's for me?
>
> TIA
>
>
The attached is a stock inittab from a CentOS 5.5 system. As best as I
remember, it's the same as 5.1, 5.2 ...


inittab
Description: Binary data
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] problem with bridged network for a kvm guest

2010-05-18 Thread Negative
I'm having trouble with the bridged network setup.  I'm new to kvm, but I
got a window xp sp2 guest set up without trouble a few days ago. I followed
the instructions in the RH virtualization guide, and all was fine until I
had to reboot the host machine a few days later.

Then, I lost networking altogether on the host machine. I lost track of all
the things I tried, but finally got networking back on the host, but I
suspect it's not right.

For one thing, I deleted ifcfg-br0.  Also, I commented out bridge=br0 in
ifcfg-eth0. Oddly, ifconfig shows both interfaces, and shows them both set
to static ip.

One of the points I'm confused about is what, if anything, to write for the
ip address in ifcfg-eth0.

When I first set it up, I set the bridge interface to dhcp, and kept the
host as a static ip on my lan. That made made the host dhcp, but that's no
good for me, so I set the ip in ifcfg-br0  to my static ip, and everything
worked fine, even though it didn't make sense that both eth0 and br0 had the
same ip.

Thanks for any guidance.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Serious Privileges Problem: Second Post!

2009-11-07 Thread Negative
On Sat, Nov 7, 2009 at 11:12 AM, Victor Subervi wrote:

> Thank you. I just rebooted the machine. Unfortunately, that didn't help.
> V
>
>
> On Sat, Nov 7, 2009 at 11:00 AM, Les Mikesell wrote:
>
>> Victor Subervi wrote:
>> >
>> >
>> > fixfiles relabel /var/www/html
>> > # might just work
>> > It didn't
>> >
>> > touch /.autorelabel
>> > # and then reboot will relabel all copied files to the correct contexts
>> > for the location
>> > I rebooted apache with no luck
>> >
>> > or you could turn off SELinux and reboot
>> > I did that and the following two solutions with no luck:
>> > echo 0 >/selinux/enforce
>> >
>>
>> What do you mean by 'rebooted apache'?  You have to reboot the whole
>> machine to
>> change selinlux settings.
>>
>> --
>>   Les Mikesell
>>lesmikes...@gmail.com
>>
>>
>>
Note that you copied files have different file sizes. (e.g. index.py and
test.py).

Can you run index.py and template.py on the command line without error? You
could easily have an indent error in one file.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Inquiry:iptables ?

2009-11-02 Thread Negative
On Mon, Nov 2, 2009 at 10:57 AM, ken  wrote:

> On 11/02/2009 09:36 AM Rob Kampen wrote:
> > ken wrote:
> >> On 10/31/2009 04:10 AM Tony Molloy wrote:
> >>
> >>> On Saturday 31 October 2009 07:48:05 hadi motamedi wrote:
> >>>
>  Dear All
>  To open a port , I know that I need to go to "System ->
>  Administration ->
>  Security Level and Firewall" -> Other ports and then I can open
>  port-5901
>  as tcp protocol . Can you please do me favor and let me know how it
>  can be
>  done from the command line (if my CentOS is text-mode installed) ?
>  (perhaps
>  via iptables?)
>  Let me thank you in advance
> 
> >>> Edit /etc/sysconfig/iptables
> >>>
> >>> Restart iptables with service iptables restart
> >>>
> >>> Tony
> >>>
> >>
> >> My /etc/sysconfig/iptables states at the top that editing of it is not
> >> recommended.  Yeah, I don't always follow such recommendations myself,
> >> but is there perhaps another way more in keeping with the sense of the
> >> application?
> >>
> > Yeah, editing directly can be risky, nothing worse than making a change
> > only to find that access to your server just disappeared and you need to
> > get in front of it to reset via the console
> > I use webmin for most of my edits, only make it accessible from the LAN
> > and not the WAN. You can always tunnel the :1 port via ssh and
> > access securely from a remote location.
> > The webmin console is left open while I test, thus I have not yet
> > tripped up on this though I can imagine it is not fool proof.
> > HTH
> > Rob
>
> Rob,
>
> Sounds like you've thought through the process and have a well-planned
> strategy for failure-prevention.  Cool.
>
> I checked my port 1 (ssh -p 1 ...) and found it not available
> ("Connection refused").  So in what sense, or how, can I always tunnel it?
>
> tnx.
>

 You can use iptables to insert and delete rules in the running instance,
and after testing you can save the new set up.

The syntax is:

iptables -I  $TABLE_NAME $POS -s $SRC_IPS -m state --state NEW -p tcp
--dport 5901 -j ACCEPT

The default TABLE_NAME is "RH-Firewall-1-INPUT" for CentOS

You can figure out the POS you want by running

iptables -L
which dumps the rules on the screen

The SRC_IPS are the machine(s) you want to grant access to.

If you mess up, you can just restart iptables and you'll be back to where
you were. These changes are not permanent. If you're working remotely, you
can set up a cron job to restart iptables at some sensible interval so you
won't be locked out until you have physical access to the machine.

Once you're satisfied the new rules are working right, you can use the
iptables script in /etc/init.d to save the new config.  And don't forget to
get rid of the cron job above.

Take a look at iptables-restore and iptables-save, too.

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