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, 19: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, 20:50
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,747 Times in 2,578 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, 05: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, 15:40
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,747 Times in 2,578 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, 17: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, 18:47
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,747 Times in 2,578 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
  #7  
Old 11th February 2009, 03:55
atjensen11 atjensen11 is offline
Senior Member
 
Join Date: Dec 2007
Posts: 199
Thanks: 9
Thanked 6 Times in 6 Posts
Default

So I installed rinse and the dependency package rpm.

The xen-create-image command appeared to work great without any errors. However, when starting the DomU using the -c parameter to go into the console, a prompt appears requiring me to log in for Maintenance.

I don't know the default password. When the xen-create-image was running, it stated that there is no passwd command in the centos-5 package and so the password was not changed when the image was created.

Any suggestions?
Reply With Quote
  #8  
Old 11th February 2009, 20:31
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,747 Times in 2,578 Posts
Default

What's in the xen-tools log?
__________________
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
  #9  
Old 14th February 2009, 20:45
atjensen11 atjensen11 is offline
Senior Member
 
Join Date: Dec 2007
Posts: 199
Thanks: 9
Thanked 6 Times in 6 Posts
Default

Here is a snippet of the xen-tools log file for this DomU. Everything above this point was successful (creation of LVM on Dom0, IP addresses, etc.)

Code:
Running post-install script post-install.sh:
  Creating resolv.conf
[: 32: ==: unexpected operator
BUGFIX
  Mounting /proc
  Bootstrapping yum
  Authfix
There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:

   No module named sqlitecachec

Please install a package which provides this module, or
verify that the module is installed correctly.

It's possible that the above module doesn't match the
current version of Python, which is:
2.4.3 (#1, May 24 2008, 13:47:28) 
[GCC 4.1.2 20070626 (Red Hat 4.1.2-14)]

If you cannot solve this problem yourself, please go to 
the yum faq at:
  http://wiki.linux.duke.edu/YumFaq
  

chroot: cannot run command `/usr/bin/authconfig': No such file or directory
  Cleaing up
There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:

   No module named sqlitecachec

Please install a package which provides this module, or
verify that the module is installed correctly.

It's possible that the above module doesn't match the
current version of Python, which is:
2.4.3 (#1, May 24 2008, 13:47:28) 
[GCC 4.1.2 20070626 (Red Hat 4.1.2-14)]

If you cannot solve this problem yourself, please go to 
the yum faq at:
  http://wiki.linux.duke.edu/YumFaq
  

  Final tidy...
Installation complete.
Done

Running hooks
Running hook 10-disable-tls
hook 10-disable-tls: done.
Running hook 20-setup-yum
There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:

   No module named sqlitecachec

Please install a package which provides this module, or
verify that the module is installed correctly.

It's possible that the above module doesn't match the
current version of Python, which is:
2.4.3 (#1, May 24 2008, 13:47:28) 
[GCC 4.1.2 20070626 (Red Hat 4.1.2-14)]

If you cannot solve this problem yourself, please go to 
the yum faq at:
  http://wiki.linux.duke.edu/YumFaq
  

hook 20-setup-yum: done.
Running hook 30-disable-gettys
hook 30-disable-gettys: done.
Running hook 35-setup-users
hook 35-setup-users: done.
Running hook 40-setup-networking
hook 40-setup-networking: done.
Running hook 50-setup-hostname
hook 50-setup-hostname: done.
Running hook 55-create-dev
/bin/sh: ./MAKEDEV: No such file or directory
/bin/sh: ./MAKEDEV: No such file or directory
/bin/sh: ./MAKEDEV: No such file or directory
mknod: missing operand after `202'
Try `mknod --help' for more information.
mknod: missing operand after `202'
Try `mknod --help' for more information.
mknod: missing operand after `202'
Try `mknod --help' for more information.
mknod: `/dev/xvc0': File exists
hook 55-create-dev: done.
Running hook 60-copy-host-files
There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:

   No module named sqlitecachec

Please install a package which provides this module, or
verify that the module is installed correctly.

It's possible that the above module doesn't match the
current version of Python, which is:
2.4.3 (#1, May 24 2008, 13:47:28) 
[GCC 4.1.2 20070626 (Red Hat 4.1.2-14)]

If you cannot solve this problem yourself, please go to 
the yum faq at:
  http://wiki.linux.duke.edu/YumFaq
  

hook 60-copy-host-files: done.
Running hook 65-copy-user-files
hook 65-copy-user-files: done.
Running hook 70-install-ssh
There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:

   No module named sqlitecachec

Please install a package which provides this module, or
verify that the module is installed correctly.

It's possible that the above module doesn't match the
current version of Python, which is:
2.4.3 (#1, May 24 2008, 13:47:28) 
[GCC 4.1.2 20070626 (Red Hat 4.1.2-14)]

If you cannot solve this problem yourself, please go to 
the yum faq at:
  http://wiki.linux.duke.edu/YumFaq
  

hook 70-install-ssh: done.
Running hook 75-fixup-securetty
hook 75-fixup-securetty: done.
Running hook 80-install-modules
hook 80-install-modules: done.
Running hook 90-make-fstab
hook 90-make-fstab: done.
Running hook 99-clean-image
There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:

   No module named sqlitecachec

Please install a package which provides this module, or
verify that the module is installed correctly.

It's possible that the above module doesn't match the
current version of Python, which is:
2.4.3 (#1, May 24 2008, 13:47:28) 
[GCC 4.1.2 20070626 (Red Hat 4.1.2-14)]

If you cannot solve this problem yourself, please go to 
the yum faq at:
  http://wiki.linux.duke.edu/YumFaq
  

hook 99-clean-image: done.
Done

No role scripts were specified.  Skipping

Creating Xen configuration file
Done
Setting up root password
'passwd' command not found in the new install.
All done
Reply With Quote
  #10  
Old 15th February 2009, 17:45
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,747 Times in 2,578 Posts
 
Default

Can you try to mount the image, chroot to it and run passwd manually?
__________________
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 11:57
Ubuntu 8.04 LTS - RAID 1 + LVM + XEN atjensen11 HOWTO-Related Questions 1 20th January 2009 21:35
The Perfect Server - Ubuntu Hardy Heron (Ubuntu 8.04 LTS Server): Mailfiltering melwood HOWTO-Related Questions 1 2nd September 2008 13:54
how do I setup a Ubuntu domU guest on a CentOS / Fedora Core XEN server? SoftDux Installation/Configuration 0 27th July 2008 20:49
Virtual Users And ... And SquirrelMail (Ubuntu 8.04 LTS) WaveQam HOWTO-Related Questions 2 18th July 2008 08:28


All times are GMT +2. The time now is 02:31.


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