HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   HOWTO-Related Questions (http://www.howtoforge.com/forums/forumdisplay.php?f=2)
-   -   CentOS DomU on Ubuntu 8.04 LTS Dom0 (http://www.howtoforge.com/forums/showthread.php?t=31068)

atjensen11 7th February 2009 18:45

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?

falko 8th February 2009 19:50

I haven't tried that tutorial, but I'd use xen-tools for creating guests. They also support creating CentOS guests.

atjensen11 9th February 2009 04:27

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.

falko 9th February 2009 14:40

Please use rpmstrap instead of debootstrap (that tool is only for Debian/Ubuntu).

atjensen11 9th February 2009 16:27

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.

falko 10th February 2009 17:47

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.

atjensen11 11th February 2009 02:55

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?

falko 11th February 2009 19:31

What's in the xen-tools log?

atjensen11 14th February 2009 19:45

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


falko 15th February 2009 16:45

Can you try to mount the image, chroot to it and run passwd manually?


All times are GMT +2. The time now is 03:48.

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