[xen-tools-discuss] CentOS guests on Debian 5 Host

Jonathan Aquilina eagles051387 at gmail.com
Tue Dec 21 09:04:14 CET 2010


Correct me if im wrong you might need to change to a full install 
instead of sparse

On 12/21/10 7:56 AM, Heath Yob wrote:
> Hi,
>
> I'm trying to create CentOS guests with xen-tools.
>
> I'm running Debian 5 with the latest Xen.
>
> Linux tech-xen-01 2.6.26-1-xen-amd64 #1 SMP Fri Mar 13 21:39:38 UTC
> 2009 x86_64 GNU/Linux
>
> I'm able to make debian guests so I know my setup is working but I am
> unable to get CentOS 4 or 5 guests to install.  There's not much
> online as far as resources to get CentOS working on a Debian host.
>
> This is the command I'm running:
>
> technetical-xen-01:/usr/lib/xen-tools# xen-create-image
> --hostname=test --ip=172.20.159.62 --dist=centos-4
> --install-method=rinse --arch=amd64 --pass --force
>
> I'm only using the --force so it overwrites.
>
> Now the system gets made but I get an error at the end of the build:
>
> Setting up root password
> 'passwd' command not found in the new install.
> All done
>
> This happens with both 4 and 5.
>
> When I look at the console using xm console test
> With version 5 it seem to dump the guest server into single user.
> With version 4 it just dumps the server to login and you can't login.
>
> I've tried amd64 and i386, same error.
>
> Here's the outputs I have:
>
> General Information
> --------------------
> Hostname       :  test
> Distribution   :  centos-4
> Partitions     :  swap            512Mb (swap)
>                    /               10Gb  (ext3)
> Image type     :  sparse
> Memory size    :  256Mb
> Kernel path    :  /boot/vmlinuz-2.6.26-1-xen-amd64
> Initrd path    :  /boot/initrd.img-2.6.26-1-xen-amd64
>
> Networking Information
> ----------------------
> IP Address 1   : 172.20.159.62 [MAC: 00:16:3E:5B:AE:EF]
> Netmask        : 255.255.252.0
> Broadcast      : 172.20.159.255
> Gateway        : 172.20.156.1
>
>
> Creating partition image: /data/clients/domains/test/swap.img
> Done
>
> Creating swap on /data/clients/domains/test/swap.img
> Done
>
> Creating partition image: /data/clients/domains/test/disk.img
> Done
>
> Creating ext3 filesystem on /data/clients/domains/test/disk.img
> Done
> Installation method: rinse
> Done
>
> Running hooks
> 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
>
>
> Logfile produced at:
> 	 /var/log/xen-tools/test.log
>
> I'm sure I'm missing something stupid, but any info would be helpful.
>
> Thanks,
>
> Heath
> _______________________________________________
> xen-tools-discuss mailing list
> xen-tools-discuss at xen-tools.org
> https://xen-tools.org/mailman/listinfo/xen-tools-discuss



More information about the xen-tools-discuss mailing list