Re: [CentOS] virt-manager crashes Host during installation of guest
Bernhard Gschaider wrote on Tue, 18 Aug 2009 19:56:36 +0200: > My question: am I doing something stupid? But I figured "They're all > the same system, this must work" > > I don't want to play around with it too much as the server is also our > file-server and people start complaining. > > So any hint will be greatly appreciated (otherwise I'll have to setup > another machine for the guests) Can't help with figuring out the virt-manager problem. My first steps with Xen where with virt-manager, but that's been a long time ago (and it worked fine back then). I haven't looked at it since then. You simply don't need it, usually you don't want to run any X on a server. virt-install works fine, is command-line and you can either have it ask for all the parameters or you can provide all of them, so it's a "one command" installation. Kai -- Kai Schätzl, Berlin, Germany Get your web at Conactive Internet Services: http://www.conactive.com ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] virt-manager crashes Host during installation of guest
Bernhard Gschaider wrote: > Hi! > > I have the following problem: I have a server (CentOS 5.3 x86_64) on > which I want to install a virtual Xen-machine (CentOS 5.3 x86_64), I > ssh from my workstation (Centos 5.3 x86_64 do you see the pattern ;) ) > to that server and start the virt-manager. I create a new Guest > (Paravirtualiuzed) and point it to the server with the installation > files (CentOS 5.3, but I already said that). The manager creates the > disk image an then opens the Graphical console for > installation. Sometime around the point where the installation program > wants me to select the keyboard the graphical console it freezes. The > server is completely dead (no console, no disk activity, no ping, only > a reset will "repair" it) > > My question: am I doing something stupid? But I figured "They're all > the same system, this must work" > > I don't want to play around with it too much as the server is also our > file-server and people start complaining. > > So any hint will be greatly appreciated (otherwise I'll have to setup > another machine for the guests) > > Bernhard > > > > > > ___ > CentOS mailing list > CentOS@centos.org > http://lists.centos.org/mailman/listinfo/centos Hi I use the virt-manager, but I always use a kickstart to do the installation and I never had problems. Regards mg. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] How to tell if I've been hacked?
On Wed, Aug 19, 2009 at 1:57 AM, Bill Campbell wrote: > You cannot trust tools like ``ps'', ``find'', ``netstat'', and > ``lsof'' as these are frequently replaced by ones that are > modified to hide the cracker's work. As a corollary, the only safe way to audit a suspected system is booting your diagnostic tool from known good media (eg try a security Live CD distro) -- Eduardo Grosclaude Universidad Nacional del Comahue Neuquen, Argentina ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] Updated livecd building tool
I updated the livecd-tools package from version 013 to 014. This update introduces new interesting features like : - support for Xen kernel - built-in md5sum into the resulting LiveCD ISO - a new API See https://projects.centos.org/trac/livecd/wiki/GetToolset for instructions on how to get this updated toolset. Since it is a major update, I expect some bugs. I am looking for feedback from people interested in respining their own LiveCD kickstart files with the new tool. As usual, if you encounter a bug or would like to submit a patch, create a ticket from the CentOS LiveCD project page: https://projects.centos.org/trac/livecd -- Patrice Guay patrice.g...@nanotechnologies.qc.ca ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] virt-manager crashes Host during installation of guest
Thanks for the replies so far. > On Wed, 19 Aug 2009 11:06:08 +0100 > "MMG" == Marcelo M Garcia wrote: MMG> Bernhard Gschaider wrote: >> Hi! >> >> I have the following problem: I have a server (CentOS 5.3 >> x86_64) on which I want to install a virtual Xen-machine >> (CentOS 5.3 x86_64), I ssh from my workstation (Centos 5.3 >> x86_64 do you see the pattern ;) ) to that server and >> start the virt-manager. I create a new Guest (Paravirtualiuzed) >> and point it to the server with the installation files (CentOS >> 5.3, but I already said that). The manager creates the disk >> image an then opens the Graphical console for >> installation. Sometime around the point where the installation >> program wants me to select the keyboard the graphical console >> it freezes. The server is completely dead (no console, no disk >> activity, no ping, only a reset will "repair" it) >> >> My question: am I doing something stupid? But I figured >> "They're all the same system, this must work" >> >> I don't want to play around with it too much as the server is >> also our file-server and people start complaining. >> >> So any hint will be greatly appreciated (otherwise I'll have to >> setup another machine for the guests) >> MMG> I use the virt-manager, but I always use a kickstart to do MMG> the installation and I never had problems. This (and other replies) lead me to two possible culprits: - either the graphical console over X11 is not a good idea (but I can't imagine that, it shouldn't shoot the kernel) - I always installed as a paravirtualized machine, Could it be that the install-kernel on the 5.3-media is not aware of this and somehow manages to shot the host (because I noticed that most recipies on the net, including http://wiki.centos.org/HowTos/Xen/InstallingCentOSDomU never talk about paravirtualized (so I assume they use a fully virtualized guest) I will try these later today (when people left the office and no one will complain about server downtimes) Bernhard BTW: Just one fundamental question: as the upstream OS vendor is switching his virtualization to KVM anyway, is it a good idea to forget Xen and use KVM (in other words: is it stable enough for production)? pgpcYIOMGWB0c.pgp Description: PGP signature ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] virt-manager crashes Host during installation of guest
On Aug 19, 2009, at 7:52 AM, Bernhard Gschaider wrote: > > Thanks for the replies so far. > >> On Wed, 19 Aug 2009 11:06:08 +0100 >> "MMG" == Marcelo M Garcia >> wrote: > >MMG> Bernhard Gschaider wrote: >>> Hi! >>> >>> I have the following problem: I have a server (CentOS 5.3 >>> x86_64) on which I want to install a virtual Xen-machine >>> (CentOS 5.3 x86_64), I ssh from my workstation (Centos 5.3 >>> x86_64 do you see the pattern ;) ) to that server and >>> start the virt-manager. I create a new Guest (Paravirtualiuzed) >>> and point it to the server with the installation files (CentOS >>> 5.3, but I already said that). The manager creates the disk >>> image an then opens the Graphical console for >>> installation. Sometime around the point where the installation >>> program wants me to select the keyboard the graphical console >>> it freezes. The server is completely dead (no console, no disk >>> activity, no ping, only a reset will "repair" it) >>> >>> My question: am I doing something stupid? But I figured >>> "They're all the same system, this must work" >>> >>> I don't want to play around with it too much as the server is >>> also our file-server and people start complaining. >>> >>> So any hint will be greatly appreciated (otherwise I'll have to >>> setup another machine for the guests) >>> > >MMG> I use the virt-manager, but I always use a kickstart to do >MMG> the installation and I never had problems. > > This (and other replies) lead me to two possible culprits: > - either the graphical console over X11 is not a good idea (but I > can't imagine that, it shouldn't shoot the kernel) > - I always installed as a paravirtualized machine, Could it be that > the install-kernel on the 5.3-media is not aware of this and somehow > manages to shot the host (because I noticed that most recipies on > the > net, including http://wiki.centos.org/HowTos/Xen/ > InstallingCentOSDomU > never talk about paravirtualized (so I assume they use a fully > virtualized guest) > > I will try these later today (when people left the office and no one > will complain about server downtimes) > > Bernhard > > BTW: Just one fundamental question: as the upstream OS vendor is > switching his virtualization to KVM anyway, is it a good idea to > forget Xen and use KVM (in other words: is it stable enough for > production)? Xen still has it's place as it's fully paravirtualized domains are still way faster then any fully virtualized setups. Plus it's the only hypervisor I know of that let's you pass-through just about any PCI device to a domU. Once VMware gets their pass-through generalized and Intel gets their next generation hardware virtualization technology mainstreamed, Xen won't have such an edge in those areas. I still have yet to see a VMware/KVM framework for cloud computing where VMs can be seemlessly transferred between hosts or even to an off-site virtualization provider. -Ross ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Compiz window manager?
Niki Kovacs wrote: > Toralf Lund a écrit : > >> Has anyone here tried the Compiz window manager under CentOS 5? I just >> thought I might give it a go, but when I executed "compiz --replace", I >> [ ... ] > > I'm using it, on all my desktop PCs, and two of these have different > NVidia cards. OK. So it ought to work, then. > The lines you describe must indeed be in xorg.conf, > otherwise you'll have no window decorations. > Fair enough... > But to activate Compiz, you just have to go to Preferences>Desktop > effects in GNOME, and click on "Activate". That's all there is to do. > What this actually does is just to start the window manager with the --replace option the way I indicated earlier, I would assume. It also fails, in this case with a very general error message in a popup. In other words, this setup simply doesn't work on my machine. I forgot to mention that I have two monitors and use TwinView, though - perhaps the problem is related to that. Maybe I'll try with a single-screen setup later... - Toralf This e-mail, any attachments and response string may contain proprietary information, which are confidential and may be legally privileged. It is for the intended recipient only and if you are not the intended recipient or transmission error has misdirected this e-mail, please notify the author by return e-mail and delete this message and any attachment immediately. If you are not the intended recipient you must not use, disclose, distribute, forward, copy, print or rely in this e-mail in any way except as permitted by the author. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] problem with udev when booting kernel 5.3 release 128.4.1
Hi List, I am running a 64 bit 5.3 kernel on an intel mb and all has been well. Today I thought it would be okay to reboot so that the latest kernel was running - i.e move from 128.2.1 to 128.4.1 release. The system passes POST fine, grub passes control to the 128.4.1 kernel and the boot process is under way. after some 30 secs the system starts beeping - continuously. After I hooked up a monitor I find that udev does not come up with OK and thats when the system starts the beep beep beep .. No logs to see .. using grub to select 128.2.1 boot fine Any ideas? Thanks in advance for your words of wisdom and advice. Rob begin:vcard fn:Rob Kampen n:Kampen;Rob email;internet:rkam...@kampensonline.com tel;work:407-896-9556 x6344 tel;fax:407-896-7607 tel;home:407-876-4854 tel;cell:407-341-3815 version:2.1 end:vcard ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Compiz window manager?
On Wed, Aug 19, 2009 at 7:29 AM, Toralf Lund wrote: > I forgot to > mention that I have two monitors and use TwinView, though - perhaps the > problem is related to that. Maybe I'll try with a single-screen setup > later... There is a maximum framebuffer size with which compiz will work. Most two-screen setups exceed that. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] CentOS-announce Digest, Vol 54, Issue 8
announce] CESA-2009:1218 Critical CentOS 5 i386 pidgin Update To: centos-annou...@centos.org Message-ID: <20090818192405.ga23...@tantra.karan.org> Content-Type: text/plain; charset=us-ascii CentOS Errata and Security Advisory 2009:1218 Critical Upstream details at : https://rhn.redhat.com/errata/RHSA-2009-1218.html The following updated files have been uploaded and are currently syncing to the mirrors: ( md5sum Filename ) i386: e25d95dc8bdf606ec2d6730f48ebd594 finch-2.5.9-1.el5.i386.rpm 88b5be48a62c1dc9f8c17efd30e3e2e5 finch-devel-2.5.9-1.el5.i386.rpm a39e3a7e314c6e916396482c622c684d libpurple-2.5.9-1.el5.i386.rpm c4eaf8544d4e734db7ec18e7dc60e891 libpurple-devel-2.5.9-1.el5.i386.rpm 442c32227b112db3f4869b8f29f4d906 libpurple-perl-2.5.9-1.el5.i386.rpm dd74b9e517e62e8619c1e9fb3a4ad12c libpurple-tcl-2.5.9-1.el5.i386.rpm cd3ec3d16dcd951b3dbd051421d8f138 pidgin-2.5.9-1.el5.i386.rpm 1801baf4f571535400733e2519a9d6ea pidgin-devel-2.5.9-1.el5.i386.rpm 4761cb3a2c22795e5cb0ac72ba3e27ab pidgin-perl-2.5.9-1.el5.i386.rpm Source: 700d773b2e1d61721642522c1769b9c5 pidgin-2.5.9-1.el5.src.rpm -- Karanbir Singh CentOS Project { http://www.centos.org/ } irc: z00dax, #cen...@irc.freenode.net -- Message: 10 Date: Tue, 18 Aug 2009 19:24:05 + From: Karanbir Singh Subject: [CentOS-announce] CESA-2009:1218 Critical CentOS 5 x86_64 pidgin Update To: centos-annou...@centos.org Message-ID: <20090818192405.ga23...@tantra.karan.org> Content-Type: text/plain; charset=us-ascii CentOS Errata and Security Advisory 2009:1218 Critical Upstream details at : https://rhn.redhat.com/errata/RHSA-2009-1218.html The following updated files have been uploaded and are currently syncing to the mirrors: ( md5sum Filename ) x86_64: 4f55d55927b99e222dd77d60c5099d43 finch-2.5.9-1.el5.i386.rpm 8b5ce721a3317baf99b9e4ad77c66575 finch-2.5.9-1.el5.x86_64.rpm 9c8cab0ecd651de47ab64042318edf48 finch-devel-2.5.9-1.el5.i386.rpm f314c2182a4a598e28fc1662e53d742a finch-devel-2.5.9-1.el5.x86_64.rpm fcf05ca1529be49cf07cbabe80fa6b3b libpurple-2.5.9-1.el5.i386.rpm 3278080b79e71e617fefcda92073b3f4 libpurple-2.5.9-1.el5.x86_64.rpm e965ffa77113fb311aa81918b4229e85 libpurple-devel-2.5.9-1.el5.i386.rpm d18702ed536a566256a7320c7ac09009 libpurple-devel-2.5.9-1.el5.x86_64.rpm c1a14b8e7fd7aeadc7b38b37de30ce74 libpurple-perl-2.5.9-1.el5.x86_64.rpm 2c95be29534f808abb28b4d458cc2bb8 libpurple-tcl-2.5.9-1.el5.x86_64.rpm fbc8a633f759c41c4eb4d0b92e74148f pidgin-2.5.9-1.el5.i386.rpm 238b3e48257b14829d172fee8f818f3b pidgin-2.5.9-1.el5.x86_64.rpm 66fbb574a4339ff2e74eace4b9a293f2 pidgin-devel-2.5.9-1.el5.i386.rpm 04577ef6c7b1c2657ea4feef1b4350bb pidgin-devel-2.5.9-1.el5.x86_64.rpm cdae2a3214fb8bd07c181f99e4ebd318 pidgin-perl-2.5.9-1.el5.x86_64.rpm Source: 700d773b2e1d61721642522c1769b9c5 pidgin-2.5.9-1.el5.src.rpm -- Karanbir Singh CentOS Project { http://www.centos.org/ } irc: z00dax, #cen...@irc.freenode.net -- Message: 11 Date: Wed, 19 Aug 2009 11:19:40 +0200 From: Tru Huynh Subject: [CentOS-announce] CESA-2009:1218 Critical CentOS 3 i386 pidgin -security update To: centos-annou...@centos.org Message-ID: <20090819091940.gd8...@sillage.bis.pasteur.fr> Content-Type: text/plain; charset="us-ascii" CentOS Errata and Security Advisory CESA-2009:1218 pidgin security update for CentOS 3 i386: https://rhn.redhat.com/errata/RHSA-2009-1218.html The following updated file has been uploaded and is currently syncing to the mirrors: i386: updates/i386/RPMS/pidgin-1.5.1-4.el3.i386.rpm source: updates/SRPMS/pidgin-1.5.1-4.el3.src.rpm You may update your CentOS-3 i386 installations by running the command: yum update pidgin Tru -- Tru Huynh (mirrors, CentOS-3 i386/x86_64 Package Maintenance) http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xBEFA581B -- next part -- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : http://lists.centos.org/pipermail/centos-announce/attachments/20090819/4026e5b6/attachment-0001.bin -- Message: 12 Date: Wed, 19 Aug 2009 11:20:15 +0200 From: Tru Huynh Subject: [CentOS-announce] CESA-2009:1218 Critical CentOS 3 x86_64 pidgin -security update To: centos-annou...@centos.org Message-ID: <20090819092015.ge8...@sillage.bis.pasteur.fr> Content-Type: text/plain; charset="us-ascii" CentOS Errata and Security Advisory CESA-2009:1218 pidgin security update for CentOS 3 x86_64: https://rhn.redhat.com/errata/RHSA-2009-1218.html The following updated file has been uploaded and is currently syncing to the mirrors: x86_64: updates/x86_64/RPMS/pidgin-1.5.1-4.el3.x86_64.rpm source: updates/SRPMS/pidgin-1.5.1-4.el3.src.rpm You may update your CentOS-3 x86_64 installations by running the command: yum update pidgin
Re: [CentOS] Optimizing NFS over loopback
Ruslan Sivak wrote: > Is there a test I can do to eliminate the disks as a bottleneck? Maybe > set something up in RAM? Run iostat -x and see how busy the disks are when your doing your test? Why are you using NFS over loopback in the first place? What's the point? nate ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] sed append question
Hey guys, I am trying to make sed append every line containing a string with another line. problem is the appended line needs to start with a tab: # sed -i '/string/a \tstuff\t\t\tmorestuff' file Obviously \t or \x09 etc doesn't get interpreted unless there are other characters before it? How can I get this to begin with a ? Thanks! jlc ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] virt-manager crashes Host during installation of guest
> > This (and other replies) lead me to two possible culprits: > > - either the graphical console over X11 is not a good idea (but I > > can't imagine that, it shouldn't shoot the kernel) > > - I always installed as a paravirtualized machine, Could it be that > > the install-kernel on the 5.3-media is not aware of this and somehow > > manages to shot the host (because I noticed that most recipies on > > the > > net, including http://wiki.centos.org/HowTos/Xen/ > > InstallingCentOSDomU > > never talk about paravirtualized (so I assume they use a fully > > virtualized guest) > > > > I will try these later today (when people left the office and no one > > will complain about server downtimes) > > > > Bernhard > > > > BTW: Just one fundamental question: as the upstream OS vendor is > > switching his virtualization to KVM anyway, is it a good idea to > > forget Xen and use KVM (in other words: is it stable enough for > > production)? Sorry for thread mucking. I did not receive this email, but took it from a response. The Xen wiki describes a paravirtual install. The config file would have a line like builder="hvm" if it was fully virtualised guest. AFAIK the graphical view is just a VNC session, so I would be surprised if that managed to trash your kernel. More likely it's something that the guest is doing that is causing the issue. You could always prepare your guests on a different machine and transfer them later. Ofcourse, if you had a command of xm, that is. As I said before, I would recommend the xen list for this specific issue. As for the Xen vs whatever issue, I was disappointed when it became clear that Upstream was going to push another technology, having spent last year or two trying to learn Xen (and I am no expert, at all). Having said that, I've heard of issues with speed with KVM and I haven't had any such issues with Xen. My only issue with Xen is that the official releases are based on quite an old kernel, which is fine for CentOS, bc it is the same as the vanilla kernel. Anecdotally, a lot of issues on the xen list IMHO seem to arise from ppl using later patched kernels, which perhaps isn't the best route for stability. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] virt-manager crashes Host during installation of guest
Bernhard Gschaider wrote on Wed, 19 Aug 2009 13:52:52 +0200: > - I always installed as a paravirtualized machine, Could it be that >the install-kernel on the 5.3-media is not aware of this and somehow >manages to shot the host I haven't done completely new xen setups on 5.3 yet, only on earlier kernels and for these the answer is: no. > (because I noticed that most recipies on the >net, including http://wiki.centos.org/HowTos/Xen/InstallingCentOSDomU >never talk about paravirtualized (so I assume they use a fully >virtualized guest) Most of the recipes I know of either use virsh (which needs libvirt and is not xen-specific) or they advocate some oldish ways (like bootstrapping from a kernel outside of the VM) or are not aware of paravirtualization. A "virt-install -p" (for paravirtualized) should get you going in an interactive fashion. If you have a kickstart file you can do a completely automated install with virt-install. Kai -- Kai Schätzl, Berlin, Germany Get your web at Conactive Internet Services: http://www.conactive.com ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] virt-manager crashes Host during installation of guest
On 08/19/2009 12:52 PM, Bernhard Gschaider wrote: > - I always installed as a paravirtualized machine, Could it be that > the install-kernel on the 5.3-media is not aware of this the default install kernel is not used for the Xen install process, you want the stuff inside ~/images/xen/ for that. -- Karanbir Singh : http://www.karan.org/ : 2522...@icq ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] sed append question
Hi, On Wed, Aug 19, 2009 at 13:24, Joseph L. Casale wrote: > Hey guys, > I am trying to make sed append every line containing a string with another > line. > problem is the appended line needs to start with a tab: > # sed -i '/string/a \tstuff\t\t\tmorestuff' file > Obviously \t or \x09 etc doesn't get interpreted unless there are other > characters > before it? How can I get this to begin with a ? Hi, The "a" command expects to be followed by a "\", so it's eating the one in your first "\t". If you add another "\" it seems to work as you want it to: $ echo string | sed '/string/a \\tstuff\t\t\tmorestuff' string stuff morestuff $ HTH, Filipe ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] xmlsupports?
Hi Do you know the apache coming from fedora to support xml? how can I check? Thank you __ Yahoo! Canada Toolbar: Search from anywhere on the web, and bookmark your favourite sites. Download it now http://ca.toolbar.yahoo.com.___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] xmlsupports?
On Wed, Aug 19, 2009 at 3:17 PM, chloe K wrote: > Do you know the apache coming from fedora to support xml? > > how can I check? You need to clarify a bit as to what you're looking for specifically. The versions of apache in centos can all be said to support XML, as xml is simply a markup language, and in many cases it's up to the client to render it properly. What sort of support are you looking for? -- During times of universal deceit, telling the truth becomes a revolutionary act. George Orwell ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] sed append question
>The "a" command expects to be followed by a "\", so it's eating the >one in your first "\t". If you add another "\" it seems to work as you >want it to: > >$ echo string | sed '/string/a \\tstuff\t\t\tmorestuff' >string >stuff morestuff >$ Ah ffs, lol... It would also help if I emailed what I was typing. I use so many versions, I get mixed up. I typed the email with <'> but wrote <"> in the console which is why I couldn't make it work. '/string/a \\tstuff\t\t\tmorestuff' != "/string/a \\tstuff\t\t\tmorestuff" Thanks Filipe! jlc ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] xmlsupports?
Hi, On Wed, Aug 19, 2009 at 15:17, chloe K wrote: > Do you know the apache coming from fedora to support xml? > how can I check? Once again. Please read this: http://www.catb.org/~esr/faqs/smart-questions.html Thanks, Filipe ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] sed append question
Hi, On Wed, Aug 19, 2009 at 16:20, Joseph L. Casale wrote: > '/string/a \\tstuff\t\t\tmorestuff' != "/string/a \\tstuff\t\t\tmorestuff" Yes, indeed... The rules of quoting and backslashes in the shell are not very uniform and can get quite tricky... Also, the \t is interpreted by sed, and AFAIK it is available in GNU sed only, so the syntax you are using above might not be very portable to other versions of "sed". If your script gets this tricky it's probably time to move to Perl, which can also do that easily in an one-liner and, in this case, might actually be more portable. (Heck, it might even be more readable!) HTH, Filipe ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] replacing permissions on uploaded windows files
Hello, I've got a CentOS box and users are putting Windows long files on it, files with " " and " - " in their filenames. I'm trying to adjust the permissions as well as user and group membership and i'd like the changes to be sticky. On the tld i've set permissions of 2755 and am trying to batch convert the files and subfolders in it. I've done this: find tld -type f |xargs chmod 644 {} \; find tld -type d |xargs chmod 755 {} \; Both of these are failing due to the spaces and dashes. I've tried enclosing those {} in quotes, no good. Has anyone done this with shell or perhaps perl? Thanks. Dave. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] replacing permissions on uploaded windows files
Hi, On Wed, Aug 19, 2009 at 17:02, Dave wrote: > I've got a CentOS box and users are putting Windows long files on > it, files with " " and " - " in their filenames. I'm trying to adjust the > permissions as well as user and group membership and i'd like the changes to > be sticky. On the tld i've set permissions of 2755 and am trying to batch > convert the files and subfolders in it. I've done this: I believe what you want is 2775 and 664 (group writable), right? > find tld -type f |xargs chmod 644 {} \; > find tld -type d |xargs chmod 755 {} \; > > Both of these are failing due to the spaces and dashes. I've tried > enclosing those {} in quotes, no good. Has anyone done this with shell or > perhaps perl? Use "-print0" in find and "-0" in xargs. Also, you don't need the "{} \;", that is syntax for "find -exec" which you are not using. I think what you want is: $ find tld -type f -print0 | xargs -0 chmod 664 $ find tld -type d -print0 | xargs -0 chmod 2775 HTH, Filipe ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] replacing permissions on uploaded windows files
Dave wrote: > Hello, > I've got a CentOS box and users are putting Windows long files on > it, files with " " and " - " in their filenames. I'm trying to adjust the > permissions as well as user and group membership and i'd like the changes to > be sticky. On the tld i've set permissions of 2755 and am trying to batch > convert the files and subfolders in it. I've done this: > > find tld -type f |xargs chmod 644 {} \; > find tld -type d |xargs chmod 755 {} \; > > Both of these are failing due to the spaces and dashes. I've tried > enclosing those {} in quotes, no good. Has anyone done this with shell or > perhaps perl? You've got 'find' syntax and 'xargs' syntax hopelessly mingled. Here: find tld -type f -print0 | xargs -0 chmod 644 -- find tld -type d -print0 | xargs -0 chmod 755 -- The "-print0" and "-0" use the ASCII NUL character as the argument delimiter, so any legal path can be passed without being mangled. The "--" tells chmod that none of the following arguments that might begin with '-' should be treated as options. -- Bob Nichols "NOSPAM" is really part of my email address. Do NOT delete it. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] [CentOS-qa] Updated livecd building tool
On Wed, 19 Aug 2009, Patrice Guay wrote: > I updated the livecd-tools package from version 013 to 014. This update > introduces new interesting features like : > - support for Xen kernel > - built-in md5sum into the resulting LiveCD ISO > - a new API > > See https://projects.centos.org/trac/livecd/wiki/GetToolset for > instructions on how to get this updated toolset. > > Since it is a major update, I expect some bugs. I am looking for > feedback from people interested in respining their own LiveCD kickstart > files with the new tool. > > As usual, if you encounter a bug or would like to submit a patch, create > a ticket from the CentOS LiveCD project page: > https://projects.centos.org/trac/livecd Hey Patrice, Together with Geerd-Dietger Hoffmann I am preparing a custom LiveCD for giving presentations with your wiimote and CentOS 5.3. This solution was specifically made for FrOSCon 2009 this weekend. I implemented most of the suggestions I made previously, and integrated both the multimedia packages (players/codecs) as well as the hardware drivers from ELRepo. To have sufficient diskspace for a CD (700MB) I had to remove some productivity applications and clean up other items you normally would keep on a LiveCD. I will make the kickstart-file available once I have finished this work. Thanks for your work, without it I would probably never have looked at it ! PS I am also planning to include your work as an example in my own presentation for FrOSCon. PS2 I had to make slight modifications to livecd-creator to make it work with a newer syslinux. A newer syslinux has various advantages. I'll probably make some more modifications to it after FrOSCon. Kind regards, -- -- dag wieers, d...@wieers.com, http://dag.wieers.com/ -- [Any errors in spelling, tact or fact are transmission errors] ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] replacing permissions on uploaded windows files
Hi, Thanks everyone for the responses. The issue has been solved. Thanks. Dave. -Original Message- From: centos-boun...@centos.org [mailto:centos-boun...@centos.org] On Behalf Of Robert Nichols Sent: Wednesday, August 19, 2009 5:21 PM To: centos@centos.org Subject: Re: [CentOS] replacing permissions on uploaded windows files Dave wrote: > Hello, > I've got a CentOS box and users are putting Windows long files on it, > files with " " and " - " in their filenames. I'm trying to adjust the > permissions as well as user and group membership and i'd like the > changes to be sticky. On the tld i've set permissions of 2755 and am > trying to batch convert the files and subfolders in it. I've done this: > > find tld -type f |xargs chmod 644 {} \; find tld -type d |xargs chmod > 755 {} \; > > Both of these are failing due to the spaces and dashes. I've tried > enclosing those {} in quotes, no good. Has anyone done this with shell > or perhaps perl? You've got 'find' syntax and 'xargs' syntax hopelessly mingled. Here: find tld -type f -print0 | xargs -0 chmod 644 -- find tld -type d -print0 | xargs -0 chmod 755 -- The "-print0" and "-0" use the ASCII NUL character as the argument delimiter, so any legal path can be passed without being mangled. The "--" tells chmod that none of the following arguments that might begin with '-' should be treated as options. -- Bob Nichols "NOSPAM" is really part of my email address. Do NOT delete it. ___ 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] virt-manager crashes Host during installation of guest
Thanks to everyone who took the time to answer in this thread. I'm just writing this message to give this thread some closure and am not expecting any answers > On Wed, 19 Aug 2009 10:29:33 -0700 (PDT) > "IM" == Ian Murray wrote: >> > This (and other replies) lead me to two possible culprits: > >> - either the graphical console over X11 is not a good idea (but >> I > can't imagine that, it shouldn't shoot the kernel) > - I >> always installed as a paravirtualized machine, Could it be that >> > the install-kernel on the 5.3-media is not aware of this and >> somehow > manages to shot the host (because I noticed that most >> recipies on > the > net, including >> http://wiki.centos.org/HowTos/Xen/ > InstallingCentOSDomU > >> never talk about paravirtualized (so I assume they use a fully >> > virtualized guest) >> > >> > I will try these later today (when people left the office and >> no one > will complain about server downtimes) >> > >> > Bernhard >> > >> > BTW: Just one fundamental question: as the upstream OS vendor >> is > switching his virtualization to KVM anyway, is it a good >> idea to > forget Xen and use KVM (in other words: is it stable >> enough for > production)? IM> Sorry for thread mucking. I did not receive this email, but IM> took it from a response. IM> The Xen wiki describes a paravirtual install. The config file IM> would have a line like builder="hvm" if it was fully IM> virtualised guest. AFAIK the graphical view is just a VNC IM> session, so I would be surprised if that managed to trash your IM> kernel. More likely it's something that the guest is doing IM> that is causing the issue. You could always prepare your IM> guests on a different machine and transfer them IM> later. Ofcourse, if you had a command of xm, that is. I tried removing both suspects by - following the Wiki-Howto to the letter (especially using the Xen-install-kernels) - instead of going over the network I worked directly at the machine (although I totally agree that a VNC-session shouldn't be ble to shoot the machine) but the problem is still there. When I start the configured machine that points to an install-kernel with xm create newGuest -c I see the kernel boot up until it comes to the message Write protecting the kernel read-only data where it hangs for some seconds, then the screen goes blank and the machine reboots. I'm starting to suspect that it is somehow hardware-related (it is a Fujitsu-Siemens Synergy server with a RAID-controller) and I will investigate in that direction IM> As I said before, I would recommend the xen list for this IM> specific issue. Will look there to, thanks IM> As for the Xen vs whatever issue, I was disappointed when it IM> became clear that Upstream was going to push another IM> technology, having spent last year or two trying to learn Xen IM> (and I am no expert, at all). Having said that, I've heard of IM> issues with speed with KVM and I haven't had any such issues IM> with Xen. My only issue with Xen is that the official releases IM> are based on quite an old kernel, which is fine for CentOS, bc IM> it is the same as the vanilla kernel. Anecdotally, a lot of IM> issues on the xen list IMHO seem to arise from ppl using later IM> patched kernels, which perhaps isn't the best route for IM> stability. As I'm using the latest kernel that comes with the 5.3-updates and the machine has nothing but the standard-5.3 stuff on it, I don't think this is the case Bernhard pgpsAMvZLWlJK.pgp Description: PGP signature ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] centos 5.1 kickstart CD and intel 82576 driver
Hi all, I've got a Centos 5.1 kickstart that I must continue to use. How can I update the kick start image so that it recognizes Intel gigabit 82576 nic? BTW, I compiled the driver I need and have this igb.ko file. How do I incorporate that into my initrd.img file that I see on the kickstart CD that is probably my kickstart boot OS. Thank you very much in advance. aurf -___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] Funny stuff in SELinux -- /usr/lib/libGL.so.1.2.#prelink#.4GxqM1
Received this SELinux warning: Summary: SELinux is preventing ld-linux.so.2 from loading /usr/lib/libGL.so.1.2.#prelink#.4GxqM1 which requires text relocation. Detailed Description: The ld-linux.so.2 application attempted to load /usr/lib/libGL.so.1.2.#prelink#.4GxqM1 which requires text relocation. This is a potential security problem. Most libraries do not need this permission. Libraries are sometimes coded incorrectly and request this permission. The SELinux Memory Protection Tests (http://people.redhat.com/drepper/selinux-mem.html) web page explains how to remove this requirement. You can configure SELinux temporarily to allow /usr/lib/libGL.so.1.2.#prelink#.4GxqM1 to use relocation as a workaround, until the library is fixed. Please file a bug report (http://bugzilla.redhat.com/bugzilla/enter_bug.cgi) against this package. Allowing Access: If you trust /usr/lib/libGL.so.1.2.#prelink#.4GxqM1 to run correctly, you can change the file context to textrel_shlib_t. "chcon -t textrel_shlib_t '/usr/lib/libGL.so.1.2.#prelink#.4GxqM1'" You must also change the default file context files on the system in order to preserve them even on a full relabel. "semanage fcontext -a -t textrel_shlib_t '/usr/lib/libGL.so.1.2.#prelink#.4GxqM1'" Fix Command: chcon -t textrel_shlib_t '/usr/lib/libGL.so.1.2.#prelink#.4GxqM1' Additional Information: Source Contextunconfined_u:system_r:prelink_t:s0 Target Contextunconfined_u:object_r:lib_t:s0 Target Objects/usr/lib/libGL.so.1.2.#prelink#.4GxqM1 [ file ] Sourceld-linux.so.2 Source Path /lib/ld-2.9.so Port Host desk.mcguffeyfamily.net Source RPM Packages glibc-2.9-3 Target RPM Packages Policy RPMselinux-policy-3.5.13-68.fc10 Selinux Enabled True Policy Type targeted MLS Enabled True Enforcing ModeEnforcing Plugin Name allow_execmod Host Name desk.mcguffeyfamily.net Platform Linux desk.mcguffeyfamily.net 2.6.27.29-170.2.79.fc10.i686 #1 SMP Fri Aug 14 21:11:41 EDT 2009 i686 i686 Alert Count 1 First SeenWed 19 Aug 2009 08:43:01 PM EDT Last Seen Wed 19 Aug 2009 08:43:01 PM EDT Local ID 194f2933-b29d-4605-9248-a056af793e4d Line Numbers Raw Audit Messages node=desk.mcguffeyfamily.net type=AVC msg=audit(1250728981.756:551): avc: denied { execmod } for pid=7313 comm="ld-linux.so.2" path="/usr/lib/libGL.so.1.2.#prelink#.4GxqM1" dev=sda2 ino=1733603 scontext=unconfined_u:system_r:prelink_t:s0 tcontext=unconfined_u:object_r:lib_t:s0 tclass=file node=desk.mcguffeyfamily.net type=SYSCALL msg=audit(1250728981.756:551): arch=4003 syscall=125 success=no exit=-13 a0=bd a1=6a000 a2=5 a3=bf974f60 items=0 ppid=7297 pid=7313 auid=500 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=pts0 ses=84 comm="ld-linux.so.2" exe="/lib/ld-2.9.so" subj=unconfined_u:system_r:prelink_t:s0 key=(null) A few minutes later I got the same warning but it was about SELinux is preventing ld-linux.so.2 from loading /usr/lib/libGL.so.1.2.#prelink#.1brWwM which requires text relocation. I ran rpm -VA and received the following: [r...@desk ~]# rpm -Va S.5T c /etc/printcap ...T c /etc/sysconfig/system-config-users ...T/lib/modules/2.6.27.25-170.2.72.fc10.i686/modules.alias.bin ...T/lib/modules/2.6.27.25-170.2.72.fc10.i686/modules.dep.bin ...T/lib/modules/2.6.27.25-170.2.72.fc10.i686/modules.symbols.bin S.5T c /etc/login.defs ..5T c /etc/inittab S.5T c /etc/cups/classes.conf S.5T c /etc/cups/printers.conf SM5T c /etc/cups/subscriptions.conf ...T/lib/modules/2.6.27.29-170.2.79.fc10.i686/modules.alias.bin ...T/lib/modules/2.6.27.29-170.2.79.fc10.i686/modules.dep.bin ...T/lib/modules/2.6.27.29-170.2.79.fc10.i686/modules.symbols.bin S.5T c /etc/openldap/ldap.conf .MG./var/log/gdm .M../var/run/gdm L... c /etc/pam.d/system-auth S.?./usr/lib/libGL.so.1.2 ...T/var/lib/misc/PolicyKit.reload S.5T c /etc/ppp/chap-secrets S.5T c /etc/ppp/pap-secrets ..5T c /usr/lib/security/classpath.security ...T/lib/modules/2.6.27.29-170.2.78.fc10.i686/modules.alias.bin ...T/lib/modules/2.6.27.29-170.2.78.fc10.i686/modules.dep.bin ...T/lib/modules/2.6.27.29-170.2.78.fc10.i686/modules.symbols.bin S.5T c /etc/libuser.conf ..5T/etc/cron.d/smolt S.5T c /var/log/mail/statistics S.5T c /etc/ldap.conf S.5T c /etc/sane.d/dll.conf with the following line on the error output: prelink: /usr/lib/libGL.so.1.2.#prelink#.4GxqM1 Could not trace symbol resolving After recei
Re: [CentOS] Funny stuff in SELinux -- /usr/lib/libGL.so.1.2.#prelink#.4GxqM1
On Wed, 2009-08-19 at 21:15 -0400, David McGuffey wrote: > Received this SELinux warning: > > Summary: > > SELinux is preventing ld-linux.so.2 from loading > /usr/lib/libGL.so.1.2.#prelink#.4GxqM1 which requires text relocation. > ... > > What are the two files: > > /usr/lib/libGL.so.1.2.#prelink#.4GxqM1 > /usr/lib/libGL.so.1.2.#prelink#.1brWwM > > And what is going on with them? > > Dave McGuffey > > > Sorry to cycle all of you...this was on my Fedora 10 box, not the CentOS 5.3 box. It is still an interesting alert though. I'll send the problem to the SELinux forum. Dave McGuffey ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Funny stuff in SELinux -- /usr/lib/libGL.so.1.2.#prelink#.4GxqM1
On Wed, Aug 19, 2009 at 09:15:50PM -0400, David McGuffey wrote: > Received this SELinux warning: > You should ask the fedora mailing list. > Sourceld-linux.so.2 > Source Path /lib/ld-2.9.so > Port > Host desk.mcguffeyfamily.net > Source RPM Packages glibc-2.9-3 > Target RPM Packages > Policy RPMselinux-policy-3.5.13-68.fc10 Tru -- Tru Huynh (mirrors, CentOS-3 i386/x86_64 Package Maintenance) http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xBEFA581B pgpRxBmHdTGBY.pgp Description: PGP signature ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Funny stuff in SELinux -- /usr/lib/libGL.so.1.2.#prelink#.4GxqM1
On Thu, 2009-08-20 at 03:36 +0200, Tru Huynh wrote: > On Wed, Aug 19, 2009 at 09:15:50PM -0400, David McGuffey wrote: > > Received this SELinux warning: > > > > You should ask the fedora mailing list. > > Sourceld-linux.so.2 > > Source Path /lib/ld-2.9.so > > Port > > Host desk.mcguffeyfamily.net > > Source RPM Packages glibc-2.9-3 > > Target RPM Packages > > Policy RPMselinux-policy-3.5.13-68.fc10 > > Tru Yep...realized that right after I hit the send/receive button. Ouch. See my follow a few moments later. Dave McGuffey ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos