Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > HOWTO-Related Questions

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 7th February 2009, 18:45
atjensen11 atjensen11 is offline
Senior Member
 
Join Date: Dec 2007
Posts: 199
Thanks: 9
Thanked 6 Times in 6 Posts
Default CentOS DomU on Ubuntu 8.04 LTS Dom0

I have been following the tutorial referenced here.

http://www.howtoforge.com/create-cen...ntu-hardy-dom0

Now there are lots of typos and errors in the tutorial, but I managed to overcome them. Upon creating the CentOS DomU, I do get a login prompt and can login.

The first issue I had was that I couldn't get any updates or install packages. I thought it was a DNS issue. But after fixing that, I noticed I couldn't even ping.

Typing ifconfig at the command prompt, I noticed that eth0 has a MAC address, but no IP. I did follow the tutorial on specifying the IP. I also tried specifying it in the Xen config file for the DomU.

Regardless of which method I try, I get an error message upon starting the DomU that says another host already has claimed this IP address. I know for a fact that is not the case. I have changed the IP address too and no matter what I change it to, I get the same error message.

Any ideas of where to look next?
Reply With Quote
Sponsored Links
  #2  
Old 8th February 2009, 19:50
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

I haven't tried that tutorial, but I'd use xen-tools for creating guests. They also support creating CentOS guests.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 9th February 2009, 04:27
atjensen11 atjensen11 is offline
Senior Member
 
Join Date: Dec 2007
Posts: 199
Thanks: 9
Thanked 6 Times in 6 Posts
Default

I tried your suggestion tonight of using xen-tools. First, I looked under /usr/lib/xen-tools and saw two CentOS related directories: centos-4.d and centos-5.d.

So I assumed that when creating the DomU using xen-tools, I would use the parameter:

Code:
--dist=centos-5
However, the installation failed. Below is the sanitized result of the log file.

Code:
General Information
--------------------
Hostname       :  centos-5.example.com
Distribution   :  centos-5
Partitions     :  swap            256Mb (swap)
                  /               10Gb  (ext3)
Image type     :  sparse
Memory size    :  256Mb
Kernel path    :  /boot/vmlinuz-2.6.24-23-xen
Initrd path    :  /boot/initrd.img-2.6.24-23-xen

Networking Information
----------------------
IP Address 1   : 192.168.100.103 [MAC: 00:16:3E:XX:XX:XX]
Netmask        : 255.255.255.0
Broadcast      : 192.168.100.255
Gateway        : 192.168.100.1

Creating partition image: /home/xen/domains/centos-5.example.com/swap.img
0+0 records in
0+0 records out
0 bytes (0 B) copied, 4.1828e-05 s, 0.0 kB/s
Done

Creating swap on /home/xen/domains/centos-5.example.com/swap.img
Setting up swapspace version 1, size = 268431 kB
no label, UUID=76fa5bc5-1262-4ec1-975e-f1e735698c1a
Done

Creating partition image: /home/xen/domains/centos-5.example.com/disk.img
0+0 records in
0+0 records out
0 bytes (0 B) copied, 4.521e-05 s, 0.0 kB/s
Done

Creating ext3 filesystem on /home/xen/domains/centos-5.example.com/disk.img
mke2fs 1.40.8 (13-Mar-2008)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
655360 inodes, 2621440 blocks
131072 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=2684354560
80 block groups
32768 blocks per group, 32768 fragments per group
8192 inodes per group
Superblock backups stored on blocks:
        32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632

Writing inode tables: done
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done

This filesystem will be automatically checked every 27 mounts or
180 days, whichever comes first.  Use tune2fs -c or -i to override.
Done
Installation method: debootstrap
Falling back to default debootstrap command

Copying files from host to image.
Copying files from /var/cache/apt/archives -> /tmp/aG2vqt910a/var/cache/apt/archives
Done
Done
E: No such script: /usr/share/debootstrap/scripts/centos-5

Copying files from new installation to host.
Copying files from /tmp/aG2vqt910a/var/cache/apt/archives -> /var/cache/apt/archives
Done
Done
The installation of the new system has failed.

The system is missing the common file: /bin/ls
Done
System installation failed.  Aborting
I get a similar error when trying a CentOS 4 DomU as well.
Reply With Quote
  #4  
Old 9th February 2009, 14:40
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

Please use rpmstrap instead of debootstrap (that tool is only for Debian/Ubuntu).
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #5  
Old 9th February 2009, 16:27
atjensen11 atjensen11 is offline
Senior Member
 
Join Date: Dec 2007
Posts: 199
Thanks: 9
Thanked 6 Times in 6 Posts
Default

So I changed the --install-method parameter to be rpmstrap instead of the default debootstrap.

Now I receive the following error:
Code:
Installation method: rpmstrap
The following required binary for the installation was not found
        /usr/bin/rpmstrap
Done
System installation failed.  Aborting
I googled around and found many references to rpmstrap being broken in Gutsy. I am running the Hardy (8.04 LTS) server version.

I also did an apt-cache search for the rpmpackage, but nothing was found using the standard repositories. On the Ubuntu site, I could only find the package mentioned in the Gutsy and Gutsy-updates listings.
Reply With Quote
  #6  
Old 10th February 2009, 17:47
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

If rpmstrap doesn't work, you can also use rinse. There's a rinse package for Hardy. Of course, you must configure xen-tools to use rinse instead of rpmstrap.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
CentOS 5.2 Domu on Ubuntu Hardy Dom0 Camran Installation/Configuration 5 3rd November 2009 10:57
Ubuntu 8.04 LTS - RAID 1 + LVM + XEN atjensen11 HOWTO-Related Questions 1 20th January 2009 20:35
The Perfect Server - Ubuntu Hardy Heron (Ubuntu 8.04 LTS Server): Mailfiltering melwood HOWTO-Related Questions 1 2nd September 2008 12:54
how do I setup a Ubuntu domU guest on a CentOS / Fedora Core XEN server? SoftDux Installation/Configuration 0 27th July 2008 19:49
Virtual Users And ... And SquirrelMail (Ubuntu 8.04 LTS) WaveQam HOWTO-Related Questions 2 18th July 2008 07:28


All times are GMT +2. The time now is 18:33.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.