ubuntu.com - launchpad.net - ubuntu help
|
|
Installation & Upgrades For questions about upgrading and installation of your new Ubuntu OS. |
View Poll Results: Please rate the usefulness of this tutorial: | |||
useful |
|
1 | 50.00% |
not useful (already implemented a solution) |
|
0 | 0% |
not useful (don't need it) |
|
1 | 50.00% |
no idea what it is |
|
0 | 0% |
Voters: 2. You may not vote on this poll |
|
Thread Tools | Display Modes |
|
#1 |
5 Cups of Ubuntu
Join Date: Aug 2006
My beans are hidden!
|
Following are the steps I took to install Lucid on Xen using Steve Kemp's fantastic xen-tools package. I did some cursory research and couldn't find any Lucid templates, so I modified the existing templates. It's not very elegant, but it appears to have gotten the job done (many VMs running for days now without problems).
UPDATE: The dev version of xen-tools, and presumably debootstrap, has lucid/pygrub support, so pretty soon these instructions will be redundant (i.e., you might take a look at those versions as well/instead). System:
I can produce diffs, if there's interest in the above. Please jump in and modify the above, add to it, etc. As I said, it's not a very elegant solution, but I needed it quickly. (I also must apologize in advance if I'm not able to keep up with questions here, if there are any--we're a bit slammed with work at the moment.) Last edited by ac4000; 6 Days Ago at 12:23 PM.. |
|
|
|
#2 | |
First Cup of Ubuntu
Join Date: Oct 2005
Beans: 8
|
Re: HOW TO: install Lucid/10.04 LTS on Xen 3.1 with xen-tools/debootstrap
Great tutorial. Thanks.
I have one question. The cfg file created for the domU had the normal kernel and initrd lines and not the pygrub bootloader line. I had to change that to enable pygrub. And also the console stops working midway the boot sequence. After the following lines: Quote:
Best Regards, Tiago Baptista |
|
|
|
|
#3 |
5 Cups of Ubuntu
Join Date: Aug 2006
My beans are hidden!
|
Re: HOW TO: install Lucid/10.04 LTS on Xen 3.1 with xen-tools/debootstrap
Tiago, thanks for pointing that out. In the tutorial, I missed the part where you need to comment out the kernel and initrd lines in xen-tools.conf, which causes xm to boot with pygrub (no need to call it explicitly). I will update the above.
As for the console disconnection, I have the line Code:
serial_console = hvc0 Here's the diff between the package version and my xen-tools.conf: Code:
--- xen-tools.conf 2008-09-29 19:08:11.000000000 -0400 +++ /etc/xen-tools/xen-tools.conf 2010-05-10 13:00:39.000000000 -0400 -# lvm = skx-vg +lvm = xenvg -swap = 128Mb # Swap size +swap = 512Mb # Swap size -dist = etch # Default distribution to install. +dist = lucid # Default distribution to install. -# passwd = 1 +#passwd = 1 -kernel = /boot/vmlinuz-`uname -r` -initrd = /boot/initrd.img-`uname -r` +# Undefined, to use pygrub. +#kernel = /boot/vmlinuz-`uname -r` +#initrd = /boot/initrd.img-`uname -r` -# arch=[i386|amd64] +arch=amd64 -# serial_device = hvc0 #default +serial_device = hvc0 #default +# serial_device = xvc0 -# disk_device = xvda #default +disk_device = xvda #default |
|
|
|
#4 |
First Cup of Ubuntu
Join Date: Oct 2005
Beans: 8
|
Re: HOW TO: install Lucid/10.04 LTS on Xen 3.1 with xen-tools/debootstrap
Yes, that solved both problems. Thanks.
Best, Tiago |
|
|
|
#5 |
Just Give Me the Beans!
|
Followed the advice above. I get
Error: (2, 'Invalid kernel', 'xc_dom_find_loader: no loader found\n') Any ideas? |
|
|
|
#6 |
5 Cups of Ubuntu
Join Date: Aug 2006
My beans are hidden!
|
Re: HOW TO: install Lucid/10.04 LTS on Xen 3.1 with xen-tools/debootstrap
Make sure pygrub is linked properly to /usr/bin/pygrub ... that's the first thing that jumps to mind. You could also try running pygrub directly and pointing it at the image or LV to make sure it's finding something to boot. If that doesn't work, would you mind posting the generated config file?
|
|
|
|
#7 |
First Cup of Ubuntu
Join Date: May 2010
Beans: 1
|
please help me :
i was try your tutorial , but whee i running xm create show error : fanani@server:~# xm create /etc/xen/artivisi.com.cfg Using config file "/etc/xen/artivisi.com.cfg". Error: Boot loader didn't return any data! my /etc/xen-tools/xen-tools.conf file : here my /etc/xen/artivisi.com.cfg file : here can u help me . Thank for all |
|
|
|
#8 |
5 Cups of Ubuntu
Join Date: Aug 2006
My beans are hidden!
|
Re: HOW TO: install Lucid/10.04 LTS on Xen 3.1 with xen-tools/debootstrap
Everything looks in order (my cfg doesn't have the "extra" line at the bottom, but I doubt that's causing the problem). That said, I haven't tried this on an image, only on LVMs, so you might need to call pygrub explicitly. You could try pointing pygrub at the image to see if you get a result (if you don't, it means it can't find the boot image for some reason).
Something like this should work: Code:
pygrub /opt/serveratv/domains/artivisi.com/disk.img |
|
|
Bookmarks |
Tags |
lucid, pygrub, xen, xen-tools |
|
|