/srv/irclogs.ubuntu.com/2015/01/29/#ubuntu-server.txt

=== Lcawte is now known as Lcawte|Away
hallynadam_g: any chance you'd be able to test the fix for bug 1393548 ?01:28
adam_ghallyn, as soon as i can, sure01:29
adam_gsorry i missed the bugmail01:29
hallynadam_g: cool, thanks01:30
=== markthomas is now known as markthomas|away
=== zz_DenBeiren is now known as DenBeiren
adam_ghallyn, verification-done02:38
lordievaderGood morning.08:36
hallynadam_g: thanks!08:38
=== Lcawte|Away is now known as Lcawte
cocoa117for ubuntu server 14.04, is there a way to allow official CD to get its preseeding file on a server (web or TFTP), so i can customise it09:19
cocoa117or in other word, to do unattended CD installation without customise the CD09:21
=== Lcawte is now known as Lcawte|Away
=== Lcawte|Away is now known as Lcawte
=== Lcawte is now known as Lcawte|Away
=== adam_g is now known as adam_g_out
=== marrusl_ is now known as marrusl_really
=== Lcawte|Away is now known as Lcawte
designbybeck__Upstart? is that still around? or did systemd replace that?14:31
rbasakWe're hoping to switch to systemd this cycle. 14.04 was released in April last year. It uses Upstart.14:32
designbybeck__gotcha14:32
designbybeck__had a coworker taking a class...and they were using Upstart14:33
designbybeck__or learning about it14:33
rbasakMight as well. It's in the LTS which will be around for over four years from now.14:33
designbybeck__good poing rbasak14:33
designbybeck__point14:33
ifohancroftHello guys. I have an HP Workstation I think it is Z600. It has Ubuntu Server 14.04.1 LTS Installed and if I leave it in the office overnight I thought it shuts itself down. Only recently I've found out that is sort of goes to sleep or something. The servers in the other room are also running Ubuntu Server the same version but this doesn't seem to happen to them. I checked the logs in /var/log/15:17
ifohancroftand nothing seems unusual. How can I prevent it from going to sleep?15:17
ifohancroftWhat might be causing it to go to sleep?15:17
RoyKifohancroft: check the logs15:19
RoyKifohancroft: AFAIK that shouldn't happen15:19
RoyKifohancroft: unless there's a thermal shutdown or something15:19
ifohancroftI guess it could be. It is warmer in the room it is.15:19
ifohancroftAre there any logs besides those in /var/log that I should check? I've checked those in /var/log and nothing seems unusual15:19
RoyKifohancroft: do you have mcelog installed?15:21
ifohancroftlet me check15:21
ifohancroftNo. Should I install it?15:21
RoyKmce is machine check exception15:21
RoyKmcelog helps you log that to syslog15:21
RoyKwhich is a jolly good thing15:21
RoyKwell, syslog or some file15:22
RoyKiirc default is to log to a file15:22
=== Lcawte is now known as Lcawte|Away
hadifarn_can I use munin nginx plugin to monitor vhost bandwidth usage? did anyone use it for that matter?15:38
hadifarn_should I install it on the same server?15:38
ifohancroftSo now I just wait and if it happens again I check the mcelog file?15:39
RoyKhadifarn_: you can run munin on the same machine, yes15:50
RoyKhadifarn_: but I don't remember if the munin plugin for nginx monitors bandwidth use15:50
hadifarn_RoyK: apparently it does. not sure how I can use it on my app (which is built with php)15:50
hadifarn_I'm not sure munin has an API for that RoyK15:51
RoyKif the traffic travels through nginx, it shouldn't be a problem15:52
RoyKmeaning, unless the php thing opens connections on its own, it should work fine15:52
rbasakjamespage: are you planning to merge dovecot?16:28
jamespagerbasak, its not on my list16:28
jamespagerbasak, oh I see there's been a load of minor delta since16:29
jamespageI last merged...16:29
zorajhi all16:34
zorajdoes ubuntu-vm-builder is still advisable for installing kvm guest ?16:34
zorajstill ubuntu server as guess running on ubuntu server16:35
rbasakzoraj: we use uvtool now - it uses cloud images so is much quicker. Or look into Vagrant.16:36
RoyKzoraj: one VM or 100?16:36
zorajrbasak, ok I'm gonna google it, I have no idea of both16:36
RoyKif it's just one, I use virt-manager16:36
zorajRoyK, 316:36
RoyKvirt-manager is userfriendly, but not the most efficient if you want to roll out a lot16:37
zoraj3 ubuntu server guest running on top of an ubuntu server host16:37
RoyKstart off with virt-manager16:37
RoyKif it doesn't do what you want, go further16:37
zorajok , let me look in detail of virt-manager now16:38
RoyKzoraj: virt-manager is X-based, so start it from a client16:38
zorajthanks16:38
zorajX-based ! well my ubuntu server is only in terminal mode :/16:38
RoyKeasiest way is "apt-get install virt-manager" on the server, and then just start it as a normal user in the libvirt-group16:38
zorajand I don't want to install X on it16:39
RoyKzoraj: x-forward!16:39
RoyKzoraj: no need for xorg - just the libs16:39
RoyKzoraj: then just ssh -x my.server.somewhere and start whatever x app you like16:39
RoyKssh -X, that is16:40
zorajRoyK, ok, I have already heard about x forward but I have not yet the opportunity to use it, it's time to see it then16:40
RoyKor just enable x11 forward in the client config16:40
RoyKzoraj: it just works ;)16:40
zorajwhat I've done so far before I asked my question is16:42
zorajsudo apt-get install qemu-kvm libvirt-bin ubuntu-vm-builder bridge-utils16:42
zorajand it's just finished16:42
zorajlet's install X then virt-manager16:42
zorajmy ubuntu.iso in /home/whatever just only wait to be mounted then booted :p16:43
RoyKnot X16:45
RoyKjust virt-manager16:45
RoyKit'll pull the needed libs16:45
RoyKare you using a linux client?16:45
zorajI'm ssh-ing the host server (ubuntu server) from a MS based OS16:46
RoyKthen install xming and setup putty to use that16:46
zorajam doing right ? I have physical access of the server but the room is too noisy ^^16:46
RoyKzoraj: x11 forward with xming and putty is rather simple16:47
RoyKand no use for X on a server, as you said16:47
zorajbut I install virt-manager first of all right ?16:47
RoyKyeah, just install that16:48
RoyKand on the local windows machine, install xming16:48
RoyKstart it16:48
RoyKand configure putty to use it16:48
RoyKyou will probably have to login to the linux box again16:48
zorajok, that's really helpful, thanks very much16:49
zorajI'm installing it16:49
RoyKI'll be back in an hour or so16:50
zorajdamn !16:50
zoraj:p16:50
zorajyou have to go now ?16:50
zorajthe installation seems to take a bit while, I don't have a fast connection16:51
zorajI'd really want to see the iso file to boot before you go, but it's up to you16:52
zorajafter that I can manage myself like a boss ^^16:52
=== Lcawte|Away is now known as Lcawte
zorajeverything is installed now, how do I use virt-manager from xming17:11
RoyKzoraj: ping17:39
zorajRoyK, I'm back too17:57
zorajRoyK, I've finally installed virt-manager and xming, but how do I install/create my guest from my putty session17:58
zorajalso, do I have to configure a bridged based network before I install the guest18:00
zorajRoyK, lack of some basic search ^^ my bad, I am now running virt-manager18:02
RoyKzoraj: goodie18:05
zorajbut my last question is still valid, do I have to configure a bridged setting before I start to create a guest ?18:06
spicypixelhey guys I'm trying to install ubuntu server 14.10 but it fails when looking up the package mirror, but if I go to the terminal in the installer I can ping gb.archive.ubuntu.com fine18:07
RoyKzoraj: no, you don't need a bridge before setting up a guest, but it'll be tricky to contact that from outside kvm/libvirt's NAT18:07
spicypixeldns resolves and such18:07
RoyKzoraj: better setup a bridge first18:07
jpdsspicypixel: Check TTY4.18:07
spicypixeljust asks me to retry or change mirror, tried a bunch of different countries with no success18:07
zorajRoyK, ok18:08
RoyKspicypixel: first of all - why 14.10? it's not LTS18:08
spicypixelwhy not?18:08
spicypixelit's not system critical18:08
jpdsspicypixel: It's only supported for 9 months.18:08
jpdsspicypixel: Instead of 5 years.18:08
spicypixelnot really worried given I will update to 15.04 on release18:08
spicypixelanyhows regardless of all of that, the setup is failing on network connectivity yet seems to be fine18:09
jpdsspicypixel: Check TTY4.18:09
spicypixelI can't :(18:09
jpdsThat's where the debug messages ater.18:09
jpdsare*18:09
spicypixeltwo key rollover on the keyboard :<18:09
spicypixeland need Fn for F418:10
spicypixelmhmm18:10
jpdsAlt-arrow key?18:10
spicypixelgotcha18:10
spicypixelsays bad signature18:10
jpdsCorrupt ISO?18:11
spicypixelmore accurately, bad signature on /tmp/net-retriever-3389-release18:11
spicypixelI'll md5 it18:11
jpdsSomething's corrupted, somewhere.18:12
spicypixelmd5 matches the mirror, guess I'll change install media18:12
spicypixelyeah18:12
spicypixeljust to rule it out, changing to a new usb stick and trying again18:14
zorajRoyK, I haven't yet configure the bridge setting but when I fire up ifconfig command I got this "virbr0" within my list,18:20
zorajI'm now wondering if the fact I install kvm, it was automatically added18:20
zorajso do I still need to setup a bridge configuration18:20
zoraj"brctl show" command gives me as bridge name "virb0" STP = "yes" but it's not enabled and no interface assigned18:26
RoyKzoraj: that's the virbridge made to allow kvm to NAT18:33
RoyKzoraj: http://paste.debian.net/142924/18:34
zorajRoyK, so do I still need to setting up by modifying /etc/network/interfaces18:34
RoyKthat's my interfaces file18:34
RoyKyes, you do18:34
RoyKeth0 or whatever it's called will only be for transport18:34
RoyKbr0 will be the new nic18:34
RoyKmake sure you have console access to the thing before restarting it18:35
RoyKI've done some bad things with bridges in my time :P18:36
RoyKbut the config I gave you (used on debian wheezy and ubuntu precise) should work18:36
RoyKjust fix the addresses18:37
zorajRoyK, ok, let me change it then I will install the guest18:37
RoyKgive it a reboot after the change18:37
RoyKif no console access, well, risky business :)18:38
zorajif my host ip address is 192.168.1.xx, and my guest should be 192.168.1.yy right ?18:38
RoyKyou set the guest address on the guest18:38
RoyKjust something not in use18:39
zorajthe three guests I'd want to setup, I would like to be accessed within my LAN18:39
RoyKon the same subnet18:39
RoyKright18:39
RoyKit's the same with VMs as with everything else18:39
RoyKall addresses must be unique within the subnet18:39
zorajok, let me change the network config then install it18:39
zorajwhat is the dns-search ?18:40
RoyKjust the domain names to search for if you do something like "ping www"18:41
zorajokey18:41
RoyKsay, you have sadfasdfasdf.com as your domain name, add that to "dns-search" and you won't have to add the domain name for linux to find the host18:41
zorajok I got it, thx for the explanation18:42
=== bilde2910|away is now known as bilde2910
zorajRoyK, are you sure I need to reboot the server to enable the bridge config ?18:48
RoyKnah18:48
RoyKrestarting networking should do it18:48
zorajok18:48
zorajxD my guest is booting18:52
zorajRoyK, thanks guy (bow)18:52
* zoraj is bowing18:52
zorajhmm let me see if this guess has Internet connection first18:52
zorajguest*18:53
RoyKzoraj: what does ifconfig -a on the host say?18:53
zorajRoyK, http://paste.debian.net/142926/18:54
RoyKzoraj: no br0 there18:55
RoyKzoraj: did you install bridge-utils?18:55
zorajyes18:55
RoyKzoraj: also, pastebin /etc/network/interfaces18:55
RoyKzoraj: eth0 shouldn't have an address in bridge setup18:56
zorajRoyK, http://paste.debian.net/142928/18:56
RoyKzoraj: see http://paste.debian.net/142924/ again - it lists eth0, but without an address. I don't know if restarting networking will release that. that's why I suggested a reboot18:58
zorajok I am gonna reboot the server19:03
zorajI see the difference,19:06
zorajthe first and second lines on your file are not the same as I did19:06
RoyKyou need to up eth0 before br0 can connect to it19:07
RoyKbut eth0 shouldn't have an address19:07
zorajI think it's now good http://paste.debian.net/142929/19:10
RoyKlooks good19:11
zorajI'm gonna install the first guest19:11
RoyKzoraj: which ubuntu version?19:11
RoyKon the host19:11
zoraj14.04 LTS19:11
zorajthe guest will be the same19:11
RoyKshould be pretty straight forward, then19:12
RoyKwithout regard to the guest version19:12
zorajRoyK, I really didn't know it's that simple to do X-forward,19:13
RoyKit is - that's what's so fun about it ;)19:14
zorajso I guess, if I want to install a Windows Server as a guest, I still use it ?19:14
RoyKx  forward is the same19:14
RoyKit just displays whatever x application on the other side of the link19:14
RoyKthen, later, just access it with rdp19:15
RoyKthe windows vm, that is19:15
zorajhm.. ok19:15
RoyKjust try it - a win7 vm or something19:18
zorajRoyK, ok, will do it maybe next week, I have to setup three guest for now :)19:19
RoyKjust make sure if you add new drives, choose virtio, not IDE or something19:20
RoyKwhat sort of machine is the host running on?19:20
zorajit's a Dell PowerEdge 2950,19:21
RoyKsort of things we're kicking out these days :P19:23
RoyKhow much memory?19:23
zoraj4GB for now :)19:23
RoyKheh19:23
RoyKadd another 1619:23
jrwren2950 is ancient isn't it?19:24
RoyKit is19:24
zorajI guess so19:24
RoyK5+YO19:24
jrwreni was thinking closer to 10yo19:24
zorajnot that old :p19:24
RoyKjrwren: with three linux VMs on that, I just hope you're not giving them too much memory, or the system will be swapping badly19:24
RoyKjrwren: no, not that old19:24
RoyK5-6Y perhaps19:25
RoyKnothing wrong with the hardware, though19:25
zorajRoyK, 1GB for each guest, is not that fair ?19:25
RoyKjust give it enough RAM19:25
RoyKzoraj: depends what you want the VM to do19:25
RoyKif it's just a tiny webserver, 256MB should do19:26
RoyKwith 4GB in total, don't give it all away at once19:26
zorajnot heavy stuff, web serving, database hosting and git repository19:26
RoyKif a guest is given 1GB, it'll use it for caching if not for apps19:26
RoyKand for databases, use a separate VM for that, or run the database server on the host19:27
zorajreally !19:27
RoyKreally19:27
RoyKcreate a vm per use19:27
RoyKsay, you need a mysql server19:27
RoyKthat doesn't need much19:27
RoyKthen create a small "mydbserver" and install mysql on it, tune it well, and allow connections from the other VMs that need mysql19:28
RoyKit's not a big issue if you can give each VM 4GB each19:28
RoyKbut that's losing money19:28
zorajok I see19:29
RoyKzoraj: also, setup monitoring. using munin is ok, easy to setup and to manage19:29
RoyKso you can see nice graphs of how much memory/cpu/swap/io/etc is really in use19:30
zorajlike top command ?19:30
zorajbut for network19:30
RoyKyeah, but far more precise and with a web interface showing historic graphs19:30
RoyKhttp://malinkb.dyndns.org/munin/19:31
zorajthat sounds great19:31
RoyKas an example19:31
zorajlot of things to learn today :) ok I will get a look at it later19:31
RoyKzoraj: setting up a few VMs with such finite amount of memory will be a bit hard if you don't monitor it well19:34
RoyKzoraj: it should be possible, but don't overdo things. Don't give a VM 2GB just because someone says (s)he needs it19:35
zorajI agree, but as I said, it's for internal need, I think it's gonna fit our need, we have a hosting for production use. but I will still look at your monitoring, we need it as lightweight as possible and secure19:37
=== markthomas|away is now known as markthomas
RoyKzoraj: we have some 450 servers at work, most of them virtual - we've done one or two things about monitoring those ;)19:38
zorajthat's why I told you that setting up X on the server side would is not an option19:38
zoraj450 !19:38
RoyKsomething like that19:39
RoyKperhaps only 400 active19:39
zorajanyway that's huge19:39
RoyKmost of them are VMs on 11 blade servers19:40
zorajwhat did you mean by tiny server with 256MB of memory ?  does that mean, only serving static html page ? or can it still handle let's say ~1000 request/minute19:42
zorajI ask that question because, I'm wondering if setting my first guest with 1Gb would be a mistake19:43
zorajin any case, I could still change this setting right19:43
RoyKjust start with 51219:44
RoyKif it has a ton of php, it'll use some memory19:44
RoyKapache+php can be a memory hog on high traffic19:44
RoyKif you use nginx+php, it's far lighter19:44
RoyKfor only static, 128MB may do19:45
RoyK200-300MB would definetely be sufficient for static stuf19:45
RoyKf19:45
zorajokey19:45
RoyKand try not to use apache if you don't need it. nginx is lighter and more efficient if you don't need the more advanced stuff apache has19:46
zorajwe still have to have the same setting as our prod server though, and it's apache19:47
RoyKwhat do you run on that prod server?19:47
RoyKstatic pages or some cms?19:47
zorajdynamic pages built on top of a in-house framework, but with heavy workload19:49
RoyKphp? mysql or postgresql? java? something else?19:49
zorajstill LAMP stack19:49
RoyKzoraj: if this is meant to be a devsite for them, use the same software19:50
RoyKsame versions, same everything19:50
RoyKand ask for more memory on that box :P19:50
RoyKyou can probably get it cheap from ebay19:51
zorajI will probably ask the boss to purchase more memory, for now, I have to get it up and running, we'll see19:56
=== Az is now known as Azaril
=== neunon_ is now known as neunon
=== NoobsFlyRNP is now known as NoobsFlyVFR
=== genpaku_ is now known as genpaku
=== Chrisfu- is now known as Chrisfu
zorajwe will gonna do some Jenkins setup within the other guests20:01
zorajit will probably need at least 1Gb of RAM20:02
=== bilde2910 is now known as bilde2910|away
zorajtime to sleep, once again, thanks RoyK, if you were my neighbor, I'd have offered you a beer20:08
=== danwest_ is now known as danwest
RoyKzoraj: thanks ;)20:16
=== liam_ is now known as Guest91492
=== SpamapS_ is now known as SpamapS
=== martins-afk is now known as martinst
=== martinst is now known as martins-afk
=== arosales_ is now known as arosales
=== beisner- is now known as beisner
axisysneed help installing latest libc6 .. failing bad .. here is the output http://dpaste.com/1S7J8G922:10
=== martins-afk is now known as martinst
=== Blanoz is now known as blanoz
TJ-axisys: "No space left on device"22:29
TJ-axisys: if there seem to be enough free blocks, check the free inode count for the /usr/ file-system22:32
=== jdstrand_ is now known as jdstrand
=== lionel_ is now known as lionel
axisysTJ-: yep, df -i shows /usr is 100%23:49
axisys/dev/mapper/volg0-usr       366480 364992    1488  100% /usr23:49
axisysTJ-: how do I find out the inode usage under sub dirs?23:50
axisyshmm not too many inode use..23:52
axisys   1450 ./share/man/man123:52
axisys   2844 ./share/man/man323:52
axisysthat were the highest two23:52
axisysI guess /usr was built with no too many inodes?23:53
TJ-axisys: Probably lots of small files, but on a small file-system the inode count is low23:56
axisysTJ-: it is part of volg023:58
axisys  volg0   1   7   0 wz--n-  55.36g  27.89g23:58
axisysshould i just increase the size?23:58

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!