/srv/irclogs.ubuntu.com/2012/09/30/#ubuntu-server.txt

=== cpg is now known as cpg|away
=== cpg|away is now known as cpg
DarkStar1hello has anyone here managed to install courier mailserver on 12.04? I am having issues with the webadmin interface. not loading00:41
=== positron is now known as Guest76422
=== cpg is now known as cpg|away
=== Skaag_ is now known as Skaag
=== troy__ is now known as Troy^
=== dendro-afk is now known as dendrobates
=== n0ts is now known as n0ts_off
=== cpg|away is now known as cpg
Sprocksmy grub menu stays on screen, can someone help? I changed the timeout to 0 already03:22
=== cpg is now known as cpg|away
=== Err404NotFound is now known as Error404NotFound
nsudocan i share my samba shares over internet ?? how do i configure my router??05:40
andolnsudo: The question isn't so much if you can share samba over the Internet as if you really want to share Samba over the Internet...05:42
nsudowell i need my brother to see some home videos he is miles away! they are around 500 gb andol05:44
andolnsudo: Making them availible across SFTP seems like a much better option, and if he wants to mount the share he can use something like sshfs for that.05:46
nsudoand andol what about settings in router?05:47
andolnsudo: I have really no idea what the current configuration is on your router, nor how to change whatever might be needed on it.05:49
nsudoand andol can it be done just by port forwarding?05:51
andolIf you are running a standard NAT setup, yes, then "port forwarding" is most likely what you want to use.05:53
nsudoand andol thx06:09
=== cpg|away is now known as cpg
=== cpg is now known as cpg|away
greenowlhello06:36
greenowlis anyone here?06:38
=== n0ts_off is now known as n0ts
greenowlnames06:39
greenowlhello?06:41
=== cpg|away is now known as cpg
greenowlquit06:42
=== cpg is now known as cpg|away
=== n0ts is now known as n0ts_off
=== cpg|away is now known as cpg
=== n0ts_off is now known as n0ts
=== cpg is now known as cpg|away
=== railsraider_ is now known as railsraider
=== n0ts is now known as n0ts_off
=== n0ts_off is now known as n0ts
=== n0ts is now known as n0ts_off
ejvhello, this evening I upgraded from 10.04 to 12.04 and (among other things) it has run amuck on my software raid (mdadm). It fails to assemble, complaining about "invalid raid superblock magic on /dev/sdXX". This array however was *just working* 2 hours ago under 10.04. How do I salvage this mess without losing data? Thanks.08:18
=== railsraider_ is now known as railsraider
pentagonWhat key ID do you use to verify the md5sums?08:39
pentagonWhat key ID do you use to verify the md5sums of ubuntu 12?09:16
pentagonWhat key ID do you use to verify the md5sums of ubuntu 12?09:45
pentagonWhat key ID do you use to verify the md5sums of ubuntu 12?09:45
=== n0ts_off is now known as n0ts
DarkStar1Hi anyone here worked with courier mail servers? I'm trying to migrate a server from one to another09:49
pentagonWhat key ID do you use to verify the md5sums of ubuntu 12?09:59
pentagonWhat key ID do you use to verify the md5sums of ubuntu 12?10:20
=== Ursinha-afk is now known as Ursinha
pentagonWhat key ID do you use to verify the md5sums of ubuntu 12?10:24
=== n0ts is now known as n0ts_off
TJ-pentagon: "gpg --verify MD5SUMS.gpg MD5SUMS" will tell you the Key ID10:32
pentagonTJ-: what key id do you use?10:37
TJ-pentagon: The command will tell you!10:38
pentagonTJ-: its about making sure10:39
pentagonWhat do you use.10:39
TJ-pentagon: That's how you make sure10:39
pentagonMake sure of what?10:39
pentagonI don't think anyone understands how things work.10:39
pentagonOr you are just harassing me more.10:40
pentagonWhat are you trying to prove?10:40
pentagonIntelligence bieng frowned upon causes discomfort?10:41
TJ-You get the key-ID from the command. You look-up the key on the keyserver. You examine the keys that have signed the key to be sure it's one you're prepared to trust.10:41
pentagonOk, you have made your point.10:41
pentagonI am uncomfortable.10:41
TJ-https://help.ubuntu.com/community/VerifyIsoHowto10:41
pentagonAre you a link bot?10:42
pentagonI asked a focused question.10:42
pentagonIs #defocus this whole network ?10:42
pentagonWhat key ID do you use to verify the md5sums of ubuntu 12?10:42
TJ-I've just told you10:42
pentagonis it a hard question ?10:43
pentagonlook in your .gpg folder10:43
pentagontell me the KEY ID10:43
pentagonWhat key ID do you use to verify the md5sums of ubuntu 12?10:43
pentagondo you sopeak english?10:43
pentagondo you understand these words?10:43
pentagonKEY ID10:43
pentagonits a short string10:44
pentagonKEY ID10:44
pentagondo you know how to check TJ ?10:46
pentagonlook in your .gpg folder10:46
TJ-pentagon: I've told you how to get the key ID, and how to verify it via the web-of-trust. That is how a security-conscious admin verifies the key - not by asking anonymous IRC chatters which key ID they use.10:47
pentagonTJ-: dont make assumptions10:48
pentagonI asked a question because I want to know the answer to my question.10:48
pentagonDon't play the I know better than you game of the 90's10:48
pentagonthis is 2012 everyone on irc isnt a sucker anymore10:48
pentagonfool me once shame on you10:48
TJ-pentagon: I'll let you find other answers seeing as you don't like mine.10:49
pentagonWhat key ID do you use to verify the md5sums?10:49
pentagonDo you see how you havent answered?10:49
pentagonAre you a robot??10:49
TJ-!polite | pentagon10:49
ubottupentagon: The people here are volunteers, your attitude should reflect that. Answers are not always available. See http://wiki.ubuntu.com/IRC/Guidelines10:49
pentagonARe you not programmed to answer my question?10:49
pentagonvolunteer or not10:50
pentagonyou dont need to ramble on10:50
pentagonif you dont want to answer MY question then dont10:50
pentagondont give me an answer to another question I DID NOT ASK10:50
pentagonnow please let someone else respond if you will not answer10:51
Doonz!polite | pentagon10:51
ubottupentagon: The people here are volunteers, your attitude should reflect that. Answers are not always available. See http://wiki.ubuntu.com/IRC/Guidelines10:51
pentagonAnyone else out there? What key ID do you use to verify the md5sums?10:52
pentagonTJ-: can I give you some advice?10:57
=== Jelly_ is now known as gelswip
=== gelswip is now known as gelswippt
=== gelswippt is now known as gelswip
DarkStar1Hi anyone here worked with courier mail servers?11:58
DarkStar1Anyone alive here?12:10
dsavime, sort of12:11
TJ-DarkStar1: I used to, but now I use Dovecot12:12
dsaviTJ-, I know exactly what you mean12:13
DarkStar1TJ-: why did you switch?12:14
dsaviit was not an informed decision12:14
DarkStar1I need to setup a mail server and migrate an existing server by the end of today :(12:15
TJ-DarkStar1: not reliable enough. too many changes in the code base. config files all over the place. Not so easy to administer for fire-and-forget deployments12:16
TJ-DarkStar1: Postfix+Dovecot (or +Courier) will do Maildir-style mailboxes12:17
DarkStar1Guess I'll give dovecot a try then. I've been struggling with this all day12:17
TJ-DarkStar1: which part is causing you grief?12:17
DarkStar1Well I thought I had the mysql authentication sorted12:18
DarkStar1as I was given aa dump of a mailbox but I can't seem to autheticate with it12:19
DarkStar1TJ-: even the webadmin doesn't work12:19
TJ-DarkStar1: I recall having 'issues' with mysql auth on courier years ago now; don't recall how I solved it though12:20
DarkStar1can dovecot authenticate via mysql?12:21
TJ-DarkStar1: all I can recommend, is pay close attention to the log-files, turn on maximum debug logging, and use Google copiously to understand things!12:21
DarkStar1TJ-:  I have been doing thsat for 24hrs+ now and still not moved forward :)12:22
TJ-DarkStar1: Yes12:22
TJ-DarkStar1: ouch :( Rings bells for me, that does!12:22
DarkStar1Awesome!! DO you have a decent doc for setting this up I can follow. I don't have many hows of the day left to do this. and I still have to learn how to use the imapsync tool I bought earlier12:23
DarkStar1many hours* not hows :)12:23
TJ-DarkStar1: will this help? http://wiki.dovecot.org/HowTo/DovecotLDAPostfixAdminMySQL12:24
TJ-DarkStar1: There's also this Linode guide for Ubuntu (based on 10.04 but its almost identical for 12.04) http://library.linode.com/email/postfix/dovecot-mysql-ubuntu-10.04-lucid12:25
DarkStar1Cheers dude/dudette. I'll get installing right now12:26
DarkStar1TJ-: what's the quickest way to test if the imap server is running? I haven't allocted a name for the server yet so it's only via ip12:37
TJ-telnet to its port12:38
DarkStar1TJ-: thx12:41
samba35when i am trying to upgrade my system i am gettting lot of error13:00
dsavican someone help me setting up smtp with postfix?13:00
samba35E: Sub-process /usr/bin/dpkg returned an error code (1)13:00
samba35this is last line of error13:00
samba35how do i clear apt cache and rebuild apt database13:00
RoyKtry apt-get install -f or dpkg --configure -a13:00
RoyKapt-get clean && apt-get update13:01
samba35ok13:02
samba35hmm same error ,is it becase of i am behind a firewal ? but i am able to update other ubuntu update but some package are still giveing same error -inface some days back i did update for 100+ mb and it work13:04
dsavican someone help me with this? telnet mydomain.com smtp works from my local internet connection, but it refuses connection requests from other places13:05
dsavithe port is open according to nmap13:06
TJ-dsavi: what do the mail logs show? (/var/log/mail*)13:08
dsaviTJ-, successful connection: postfix/smtpd[23208]: connect from <redacted>[<ip address>]13:15
dsaviTJ-, but the unsuccessful connections don't show up13:15
TJ-dsavi: So they're being rebuffed by the firewall maybe?13:17
dsaviTJ-, it's possible, I don't know how to check that13:17
dsaviTJ-, I made an iptables rule to accept traffic on *:25, although it was a copied/pasted command so I don't know how well it worked13:18
TJ-dsavi: Are you, by any chance, trying to connect to port 25 of a consumer ISP? Many ISPs block port 25 incoming (and some, outgoing) to prevent open spam relays13:19
dsaviTJ-, I'm telneting from one of my vpses to an linode instance where postfix is running13:20
dsaviand that's unsuccessful13:20
TJ-Linode? Well they don't block. To be clear, you've confirmed that postfix will accept external connections?13:23
TJ-dsavi: What I'm getting at is, where are the 'other places' you talked about that fail to connect? Could they be blocked for outgoing port 25 by ISPs?13:24
dsaviTJ-, I tested from two VPSes, one at dreamhost and the other from godaddy or something13:25
dsaviTJ-, and then from my mobile broadband connection which I'm currently using, also the only one that made a successful connection13:26
TJ-dsavi: The way I'd test it is to set up a simple tcp server on a different port than 25, and see if you can telnet onto it instead13:26
TJ-dsavi: This post shows how to use netcat for that: http://ubuntuforums.org/showthread.php?t=82887013:27
dsaviTJ-, would dovecot count? telnet mydomain.com pop3 works from everywhere13:28
TJ-dsavi: Yes13:28
TJ-dsavi: Sounds like port 25 being blocked somewhere then. Try accessing another well-known SMTP server from Dreamhost/Godaddy to see if they are blocked13:29
dsaviTJ-, could it have anything to do with what mynetworks is set to in postfix/main.cf?13:29
dsaviI don't know what that config option does at all13:29
TJ-dsavi: Yes. But if that was responsible you'd see log entries in mail.error or similar log-file13:31
DarkStar1TJ-: did you setup dovecot with mysql?13:47
DarkStar1sorry to interrupt. I am a bit pushed for time. :(13:47
TJ-DarkStar1: Only for testing - I use Unix accounts13:49
DarkStar1TJ-: were your tests successful?13:50
TJ-DarkStar1: yes13:50
DarkStar1Cool. Can you remember or give hints as the which were the critical files to modify to get it working?13:51
TJ-I can't sorry. I know I didn't have any issues doing it - it was all straightforward13:51
DarkStar1I was looking at the sql-conf file and I'm a little confused with the differences between some query sections13:51
DarkStar1Aah crap can someone help me pls. it seems I have a runaway telnet process13:53
DarkStar1I was just trying to telnet into the imap port and couldn't so when I grep'ed the process I realise that I couldn't kill it.13:54
DarkStar1every time i grep it (ps -ef | grep telnet) I find it has a different pid13:54
DarkStar1how can I kill it?13:55
TJ-DarkStar1: £killall telnet"13:55
TJ-DarkStar1: "killall telnet"13:55
DarkStar1doesn't work13:57
DarkStar1I get a no process found13:57
TJ-DarkStar1: Is a shell process re-spawning it? If so, kill the parent process (the PPID is the column after the PID in "ps -efly" output)13:58
TJ-DarkStar1: Are you trying to kill the telnetd service by any chance?13:59
TJ-that's not the 'telnet' client of course13:59
DarkStar1TJ-: was trying to kill the client14:00
DarkStar1I can't nor it seems can I kill the parent14:01
DarkStar1How can I stop the service?14:01
TJ-DarkStar1: Well you must have something set to respawn it if you're seeing lots of different PIDs for the telnet client14:01
TJ-DarkStar1: "sudo service <service-name> stop"14:01
DarkStar1didn't work. doesn't recognise telnet14:03
TJ-DarkStar1: Well no, because the service is a daemon, so it'd be "telnetd" if anything. But that won't stop your telnet client running14:03
DarkStar1but it should stop a respawn right?14:04
DarkStar1TJ-: not telnetd either14:05
TJ-DarkStar1: nope. Services are set to respawn if they stop, for obvious reasons. That doesn't affect any clients for the protocols those services answer to locally14:05
TJ-DarkStar1: going back to the beginning - when you used the 'telnet' client on the DreamHost/GoDaddy VPSes to test the SMTP connection to Linode, what was the *exact* command-line you used to start telnet?14:08
DarkStar1TJ-:  I did a "telnet localhost imap2"14:11
dsaviTJ-, I think you're thinking of me not DarkStar114:12
DarkStar1then in the interactive mode (whilst trying to test the courier imap server) typed a 'AB LOGIN "user" "secret"14:13
DarkStar1then killed the process by pressing a ctrl+c14:13
DarkStar1because I had to do something but couldn't exit telnet for some reason14:13
TJ-dsavi: I admit things are confusing! I got your SMPT issue confused with DarkStar1's telnet issue!14:14
DarkStar1:)14:14
dsaviTJ-, Haha, well, that happens :)14:14
TJ-Can't you both just get together and merge the working parts of your mail servers? :P14:14
dsaviHaha :D14:15
DarkStar1sure14:15
dsaviThe ironic thing is that I'm setting this up so I can receive *ONE* email from Amazon SES so I can migrate our email delivery to them14:15
DarkStar1I only need telnet to test that the imap server is up and running anyway. The bigger issue is setting up dovecot to which I need help really badly14:16
DarkStar1for which*14:16
TJ-DarkStar1: the mysql parts? The only thing I recall is, I had to ensure that the query was selecting the correct columns from the correct table in the correct database - all pretty obvious14:17
TJ-dsavi: On your problem of SMTP not connecting - I was wondering if you were trying to use 'telnet' from Dreamhost/GoDaddy to Linode, and if so, if you were doing "telnet <mailserver-ip> 25" ?14:18
dsaviTJ-, I did telnet mydomain.com smtp14:19
dsaviI'll try 2514:19
dsaviTJ-, 25 and smtp have the same results14:20
TJ-dsavi: That was my point - making sure you were specifying the destination port :)14:20
dsaviTJ-, but really, this telnet thing is irrelevant, my real issue is that my domain doesn't receive email14:21
dsaviTJ-, I try to send email to one address, and I get this error from GMail: Google tried to deliver your message, but it was rejected by the recipient domain. The error that the other server returned was: 553 553 Unknown recipient. (state 13).14:21
TJ-dsavi: Have you checked the entire path, starting with the MX records in DNS?14:22
dsaviTJ-, here's where the problem begins, I don't currently have access to change the MX records14:22
TJ-dsavi: It could be that the Google mail-servers are using a different mail-exchanger than the one you're expecting. DNS zone changes can take time to propagate14:23
TJ-dsavi: Does the current MX for the domain match the server you're working on?14:23
dsaviTJ-, it doesn't, but since the linode guide said nothing about changing the mx records, I thought that the server specified in the mx records might be pre configured correctly, and that my server was the one with bad config14:25
TJ-dsavi: The MX record is the authority on where mail for the domain is delivered. All MTAs look up that when determining where to deliver email to. You can check it using "dig -t MX <domain.tld>"14:27
TJ-dsavi: (do the 'dig' from another system, not the server in question nor the server hosting the DNS zone!)14:29
DarkStar1Yeah I thought I had done that correctlyI think my system is too unstable. what's the comand for restart. shutdown -r now doesn't seem to work properly14:29
DarkStar1doesn't seem means it's taking a long time to restart14:30
dsaviTJ-, yep, did it and the server doesn't match, but I suspect the domain is the one used by linode to redirect mail to their instances14:30
TJ-DarkStar1: Sometimes it will if processes are 'stuck'14:30
DarkStar1+ I get errors when I sudo to root14:30
DarkStar1TJ-: it's been like that for a long time now. On two separeat installations14:31
TJ-DarkStar1: Some hardware doesn't properly handle the shutdown signal;14:32
TJ-dsavi: The only way I can think for you to receive the email, is to create an account on the mail server currently configured in the MX record for the domain, so the server will accept the username@14:33
dsaviTJ-, Okay14:34
dsaviI'll have to get access to the linode web backend14:35
dsavi:/14:35
TJ-huh?14:35
TJ-dsavi: You mean the email is to an @linode.com username?14:35
dsaviTJ-, no, it's account@mydomain.com14:36
dsaviBut I don't have access to the linode control panel where I could change the mx records for that domain14:36
dsaviI'm the server admin and web dev but I haven't needed access to that until now14:37
TJ-dsavi: Ahhh, .... drat?14:37
dsaviTJ-, Yeah, I'll just have to get my boss to get me access or change the mx records or whatever14:37
TJ-dsavi: You could set up a local redirect if all you're doing is testing it. Assuming the mail server is known as "mail.mydomain.tld" you'd add to "/etc/hosts" the line "<mail-server-ip> mail.mydomain.tld" - that way, that system would use '<mail-server-ip>' instead of using a DNS MX lookup14:40
dsaviTJ-, All I need is to receive this one email from Amazon web services, so I don't think a local redirect would work14:41
TJ-dsavi: Ahhh... can you change the email address the AWS sends to?14:42
dsaviTJ-, Here's what I'm trying to do: I want to migrate our email delivery to Amazon Simple Email Service, but to do it, you need to confirm that you control an email address by having a confirmation email sent to it14:43
TJ-dsavi: Ahhhh!!!! OK, so there's no way around it then14:44
dsaviTJ-, Yeah, email delivery was terrible on our old sendmail setup, got rejected by other servers seemingly at random, so I decided to migrate to Amazon SES or Sendgrid (We chose SES)14:45
dsaviSo you see my dilemma :P14:45
TJ-dsavi: It's chicken-and-egg. Most delivery problems are due to not having correct SPF type records on your DNS that match your mail servers14:46
dsaviYeah14:47
dsaviTJ-, Anyway, I need to go now, I think I know what to do next (Change mx records), so thanks a lot for your help :)14:47
TJ-Good luck!14:47
dsavi:)14:48
=== dsavi is now known as dsavi_afk
DarkStar1Which package installs the auth-sql.conf.ext? because it's missing in the conf.d directory16:41
DarkStar1for dovecot16:41
edgy# dpkg -l linux-headers-`uname -r`17:06
edgyNo packages found matching linux-headers-3.2.0-31-generic.17:06
edgywhy there is no headers in the server but there is in the desktop?17:06
qman__edgy, that just means it's never been installed on your system17:12
qman__apt-cache search linux-headers-`uname -r`17:12
edgyqman__: but why it's not installed by default in the server but installed by default in the desktop? why is it needed?17:22
qman__edgy, those are part of build tools, which are not included in either by default17:23
qman__they may have been added if you installed a driver or software that requires them17:23
qman__out of the box, compilers and associated things to compile software (headers and dev packages) are not installed17:23
edgy$ apt-cache show linux-headers-`uname -r` |grep Task17:24
edgyTask: ubuntu-desktop, ubuntu-usb, edubuntu-desktop, edubuntu-usb, xubuntu-desktop, mythbuntu-frontend, mythbuntu-desktop, mythbuntu-backend-slave, mythbuntu-backend-master, lubuntu-desktop17:24
edgyqman__: doesn't this mean it's installed by default with ubuntu-desktop?17:24
qman__possibly, it never used to be, but jockey might drag it in17:24
qman__or some other software that requires compiling at install17:25
edgyqman__: apt-cache show ubuntu-desktop would tell you that it's recommended so it's not that jockey drag it, it's really installed by default17:27
qman__oh, that's why17:27
qman__recommend17:27
qman__recommends only became installed by default a couple years ago17:27
qman__but, that is why it gets installed, so that things like DKMS and jockey can compile stuff when you ask them to17:28
qman__server doesn't have those things out of the box and as such doesn't need headers either17:28
edgyreasonable17:29
=== railsraider_ is now known as railsraider
edgythough now I found it's strange that the headers are recommended for ubuntu-desktop but not kubuntu-desktop17:31
qman__does seem strange, but who knows17:33
edgyqman__: now the important issue for me is this17:34
edgyI am getting "error: physical volume pv0 not found." with grub updates17:34
edgywhat could be wrong please?17:34
edgythere is a bug at https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/1014159 but no response!17:36
uvirtbotLaunchpad bug 1014159 in grub2 "update-grub error: physical volume pv0 not found." [Undecided,Confirmed]17:36
qman__edgy, unfortunately I don't know enough about it to know why that is happening, but it appears that you don't have a volume called pv0, and it's looking for one anyway17:38
qman__I'd check out the grub configs and see if anything refers to that17:38
edgyqman__: good hint, let me check17:40
edgydon't knoq qman__ but when I do grep -r pv0 on /etc/lvm/archive/ there are entries for it17:55
AaronMickDeeI installed ubuntu server on an old IDE drive. I had an extra SATA drive, so I 'dd if=/dev/sda of=/dev/sdb'. How do I update grub2 to know to boot from /dev/sdb instead of the ide drive?18:06
edgyAaronMickDee: aren't you goint to remove the IDE disk?18:10
edgyAaronMickDee: I think you just remove the IDE and put the SATA and it would work, if not, run update-grub and it would generate the correct grub.cfg file18:13
edgyAaronMickDee: if you want to keep both may be you just need to change hd0 to hd1 in the config file and try18:14
qman__AaronMickDee, sudo grub-install /dev/sdb18:28
qman__then remove the old disk and you're set18:28
AaronMickDeeqman: Thanks!18:45
AlanBellhi all18:49
AlanBellI am contemplating a server upgrade from 10.04 to 12.04 and the server is running KVM with a bunch of assorted VMs on it18:50
AlanBellif I pause all the VMs, do a do-release-upgrade and unpause the VMs will they just cheerfully carry on? Anyone tested that?18:50
qman__sounds dangerous18:51
AlanBelldoes doesn't it :)18:53
AlanBellcan you run kvm in an ec2 t1.micro?18:54
TJ-AlanBell: I can't think of anything that would knock them out. Do you have any special external devices with virtio ?18:54
AlanBellTJ-: no, it is pretty standard local drives on the host18:56
AlanBellit kind of sounds dangerous, but the more I think about it the more I think it should work18:56
TJ-AlanBell: Will you be changing the kernel version?18:56
AlanBellsure, 10.04 to 12.0418:56
AlanBellrunning the standard server kernel18:57
TJ-Which AMIs from and to?18:57
AlanBellnot doing it on Amazon, doing it on real hardware18:57
AlanBellthe ec2 question was because I was thinking of doing a dry run on ec218:58
TJ-AlanBell: oh OK - your question made me think it was EC218:58
AlanBellI don't have the vt capable hardware kicking about to trial this on18:58
TJ-AlanBell: Do you have/can you create enough spare space to install a 12.04 server in parallel, and test it? If you're using LVM for example, that would be trivial to do.18:59
TJ-AlanBell: You could even install the 12.04 into a VM on a bare metal/LVM partition to reduce down-time to a bare minimum19:00
AlanBellplenty of space, not quite sure I understand that scenario though19:02
AlanBellyou mean dual boot 12.04?19:02
TJ-AlanBell: I was thinking of minimising the time to install a dual-boot for the purposes of testing 12.04 on the bare metal, if keeping the VMs operational is critical19:02
TJ-AlanBell: If you can afford for the VMs to be offline then you can do it the other way - from CD/USB live to the new partition/volume19:03
AlanBelloh, right, yeah, keeping them operational is kind of critical, but a bit of downtime is OK19:03
AlanBellso you are thinking of doing a fresh install of the host and moving the VMs across19:04
AlanBellrather than a do-release-upgrade19:04
qman__that's what I would do, set up a new server, migrate the VMs19:05
qman__and that way if it doesn't work you still have the old one19:05
TJ-AlanBell: That's how I usually do it. Create an LV, use it as the device for a VM, install into it, then "update-grub" on the host to add it to the boot menu, then finally reboot the host to test it. Any problems - boot back into the regular OS and read the VMs logs to figure out what went wrong19:05
TJ-AlanBell: On my systems everything is LVM - if you have the same option, it makes the move relatively easy to back out of instantly19:06
TJ-AlanBell: The VMs don't require much from the host OS so you can do that part of an upgrade test relatively fast. 2nd stage would be a dist-upgrade of the host (assuming you have complex configs that need to be migrated) or else use apt-mark on the host to generate and copy over the list of installed packages to the new 12.04 install.19:08
AlanBellyeah, networking config is a bit complex19:10
TJ-AlanBell: Then dist-upgrade is probably the final solution, but this allows you to dip your toes in the water so-to-speak, without ending up falling in the river!19:11
AlanBelldon't have easy access to the grub menu (remote server, can restart remotely console stuff is a pita)19:11
TJ-AlanBell: Well that's not insurmountable - I've had that on occasion too. You simply make sure you pre-edit /boot/grub/grub.cfg and set which OS entry should be the default boot entry.19:11
AlanBellyeah, was thinking through that19:12
AlanBelllittle bit scary, but should work19:12
RoyKnot too scary ;)19:12
TJ-AlanBell: The other thing is - you might want to check this - but I seem to recall that there was some work underway recently in KVM to support guest-in-guest. If it has landed for kernel 3.2 and the kvm/qemu in 12.04, you could run your VMs from inside a VM running the new 12.04 :s19:13
AlanBellyeah, someone told me that earlier, I think I have a chicken and egg problem with that though19:13
TJ-AlanBell: So you'd have 10.04(host) > (12.04(guest/host) > VMs19:13
AlanBellI think the outer one has to be 12.04 or it doesn't pass the VT flag inwards19:14
AlanBellhowever I might be able to do that on my laptop19:14
TJ-AlanBell: Well, you can install the 3.2 kernel on its own to the current 10.04 install, and boot from that. I've done that a few times although I didn't test extensively that *every* possible service still works.19:15
TJ-AlanBell: On my systems I have a separate /boot/ that shares kernels and grub across multiple OS versions, so its pretty easy for me to do that.19:17
AlanBellyeah, with these I went for a completely default install19:18
TJ-12.04 installer has the option to do complete LVM now19:19
TJ-Might be worth migrating to an LVM arrangement at the same time, for future-proofing19:19
* RoyK is also running lucid on a kvm host and is considering an upgrade19:24
RoyKor a bloody reinstall to keep things simple19:24
=== cpg|away is now known as cpg
AlanBellRoyK: I think I am going to try the brave upgrade, and file bugs if it doesn't work19:26
* TJ- hands out the grey hairs :p19:28
* DarkStar1 grabs a few19:32
* AlanBell tries try.cloud.ubuntu.com19:34
AlanBellif that will run KVM then I can make a 10.04 amazon ami, install kvm and put a vm on it, then upgrade the host and see what happens19:35
AlanBellhttp://paste.ubuntu.com/1252509/ promising19:36
AlanBellwell I have an hour to play with this thing, it starts running 12.04, lets install kvm, kick off a quantal #desktop install in a vm, then upgrade the host to quantal19:43
RoyKAlanBell: an upgrade will most probably work, I've done that a dozen or so times lucid->precise19:59
AlanBellyeah, so have I on desktops, just not with kvm running20:00
RoyKhaven't tried to upgrade kvm hosts yet20:00
RoyKthat is, I tried once 12.04 was released, and that failed, had to reinstall20:01
RoyKbut not kvm-related20:01
AlanBellthere is a real nasty in the release notes, looks like all the KVM vms vanish20:01
RoyKwhere?20:01
AlanBellbug 93135020:02
uvirtbotLaunchpad bug 931350 in virt-manager "vms missing after upgrade from Lucid to Precise" [Undecided,Confirmed] https://launchpad.net/bugs/93135020:02
AlanBellkind of a huge issue really, in terms of the likely laundry bills it could cause20:03
RoyKheh20:05
RoyKflagged "medium"20:05
RoyKthat's rather hilarious20:05
AlanBelland "fixed" in release notes20:05
TJ-Amazing it hasn't bee fixed. It's not hard to set-up a Lucid bare metal and test VMM to find out what causes the duplicate entry (to fix that), or to create a simply .postinst script the runs the config through 'sed'20:06
RoyK"it's a bug, but it's fixed once we tell people it won't work"?20:06
TJ-One of the downsides to a fixed 6-month release cycle - too many bugs and not enough bodies20:06
RoyKTJ-: these are LTS releases, not your average 6-month releases20:08
AlanBellindeed, this one is rather a minor manual fix to resolve the problem20:08
TJ-Makes no difference... the devs are still in the 6-month release cycle20:08
AlanBelljust rather a distressing situation to discover20:09
TJ-AlanBell: At least there was a release-note! You didn't have to suffer the effect and have to find out why20:09
AlanBellTJ-: very much so, and a good reminder to always read the release notes it is too!20:09
TJ-AlanBell: Yes. It's an underrated pastime20:10
tomsonHi guys. How to create user and folder for him, /home/username. 2. how to limit him just to this particular folder? Any help would be appreciated.20:11
=== cpg is now known as cpg|away
=== cpg|away is now known as cpg
AlanBellok, my testing on my hour of Amazon reveals that virt-manager gets disconnected during upgrades and kvm pausing is not the same as suspending, don't think you can pause a vm and reboot and restart it20:28
=== cpg is now known as cpg|away
AlanBellbest thing to do would be to do a clean shutdown of the guests, do the upgrade and fire them up again20:29
AlanBelland fix the xml if they vanish20:29
AlanBellnice job for next weekend I think20:29
=== glebihan_ is now known as glebihan
=== cpg|away is now known as cpg
=== cpg is now known as cpg|away
=== cpg|away is now known as cpg
WyleyrabbitHi everyone23:25
Wyleyrabbitneed some help. I just upgraded my Ubuntu 10.04 LTS server to 12.04 LTS, and everything is great...except I can't get php to talk to a database. Also, I'm getting errors in /var/log/apach2/error.log - mod_fcgid segfaults.23:25
Wyleyrabbitis this the right channel to be in for this?23:27
Wyleyrabbithello?23:30
clunkychickenhi23:31
=== n0ts_off is now known as n0ts

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