www.centos.org Forum Index CentOS 5 - X86_64, s390(x) and PowerPC Support CentOS 5.1 x86_64, Xen, and how to create a stinkin' Ubuntu DomU
|
Bottom Previous Topic Next Topic |
| |
|
|
|---|
| Poster | Thread | Rated: 1 Votes |
|---|
|
CentOS 5.1 x86_64, Xen, and how to create a stinkin' Ubuntu DomU | #1 |
|
|---|---|---|---|
|
Peeking in the Member Window
![]()
Joined: 2008/4/17
From
Posts: 13
|
I've got a CentOS x86_64 install and have created a few domU's with CentOS 5.1 in the paravirtualized environment -- and that seems to work well.
I'd like to see if I can get MythTV setup in a domU with the PCI forwarding that is available now. However, I'd like to do with with either Ubuntu or Fedora -- and I'm starting with Ubuntu. BUT, I cannot figure out the install media. I've tried the URL approach -- but since Ubuntu has a different structure for its install media, I cannot use the GUI approach. So, I think I need to go with the command-line approach. I'm guessing what I need, and I figure someone can point me to the right boot images to use. I downloaded the vmlinuz and initrd images from http://archive.ubuntu.com/ubuntu/dists/gutsy/main/installer-amd64/current/images/cdrom/ but those are apprantly not what I need. How do I go about creating an Ubuntu domU with CentOS 5.1? Nearly all the directions I've found were using Ubuntu as the dom0 and using the Ubuntu tools. My specific error message is: And, in case it helps, here's my config file: I assume this is something simple and stupid on my part, but I haven't a clue. TIA! -Rob |
||
Posted on: 2008/4/19 16:48
|
|||
|
Re: CentOS 5.1 x86_64, Xen, and how to create a stinkin' Ubuntu DomU | #2 |
|
|---|---|---|---|
|
Newbie
![]()
Joined: 2005/9/22
From
Posts: 4
|
I have done this with Hardy (should be a similar process for Gutsy) following these steps:
1. Install the debootstrap RPM from Fedora development in Dom0 2. Create the devices to use as disks and mount the root partition in the Dom0. In my case I use LVM. Quote: # lvcreate -n ubuntu -L10G /dev/vgxen 3. Debootstrap a system. Make sure to include extra repositories (multiverse, universe) and tell it to include the correct linux-image-xen, modules, libc6-xen and grub packages. Use a mirror closer to you, and change architecture if you are using x86_64: Quote: # debootstrap --arch=i386 --include=linux-image-2.6.24-16-generic,linux-image-2.6.24-16-xen,linux-ubuntu-modules-2.6.24-16-xen,linux-image-xen,libc6-xen,grub --components=main,universe,multiverse hardy /mnt/xen http://mirror.3fl.net.au/ubuntu/ 4. Once that has finished chroot into the new debootstrapped tree for the next round of changes. Quote: # chroot /mnt/xen 5. Disable TLS libc libraries: Quote: # mv /lib/tls /lib/tls.disabled 6. Create /etc/fstab: Quote: # cat /etc/fstab 7. Create a folder for GRUB menu and update the config. This is the reason you install the linux-image-generic package: Quote: # mkdir -p /boot/grub 8. Edit /boot/grub/menu.lst - replace "-generic" with "-xen" - remove "quiet splash" from the kernel line - add "console=xvc0" to both kernel lines (normal and recovery mode) 9. Setup a getty on the Xen console (xvc0): Quote: # cd /etc/event.d 10. Add xvc0 to /etc/securetty to allow root to login 11. Remove references to the hardware clock; these will cause the DomU to hang: Quote: # update-rc.d -f hwclockfirst remove 12. Configure network interfaces (/etc/network/interfaces). In my setup I have DHCP, set static information if you require it: Quote: # cat /etc/network/interfaces 13. Create /etc/hosts file Quote: # cat /etc/hosts 14. Create /etc/hostname file Quote: # cat /etc/hostname 15. Exit chroot and unmount the filesystem. Quote: # exit 16. Create DomU configuration. Because you have installed a kernel in DomU you can use pygrub: Quote: # cat /etc/xen/ubuntu Start your DomU and it should be all good! There is a bug with Hardy at the moment where the network driver will cause a kernel panic on ifup, but the kernel from the Bug Tracker will resolve that - it can be installed while in the chroot. |
||
Posted on: 2008/5/6 6:32
|
|||
|
Re: CentOS 5.1 x86_64, Xen, and how to create a stinkin' Ubuntu DomU | #4 |
|
|---|---|---|---|
|
WebMaster
![]()
Joined: 2005/3/19
From
Posts: 80
|
Thank you, Speedster
This appears to be a recap of the Ubuntu article . I had removed the LVM complexity, and made a simple local dd image to install into, which I loop mounted for the debootstrap to use: Following the debootstrap method against a plain Debian (testing) 'lenny' archive, I get the following failures: and sadly it did not get enough installed for me for the grub-install bootloader fix up to work, so I get; It is not clear to me how to dial up logging or verboseness of debootstrap after reading the man page, and it does not appear to write to a log file. Thanks for any feedback -- Russ herrold p.s., there is an unanswered question in the Ubuntu article forum as well. ;) |
||
Posted on: 2008/8/20 14:13
|
|||
|
Re: CentOS 5.1 x86_64, Xen, and how to create a stinkin Ubuntu DomU | #5 |
|
|---|---|---|---|
|
Newbie
![]()
Joined: 2005/9/22
From
Posts: 4
|
Sorry, I went on holiday and changed jobs so haven't been checking up on forums! debootstrap should put a log in the root of the path you're installing the packages to (debootstrap.log). That's about all I can remember, I haven't built a debian guest for a while!
|
||
Posted on: 2008/10/10 1:34
|
|||
Top Previous Topic Next Topic |
|



Topic options
Print Topic
Threaded
Newest First
1 Votes
robgreene





You cannot start a new topic.
You can view topic.