Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 14th September 2008, 17:40
satimis satimis is offline
Senior Member
 
Join Date: Oct 2006
Posts: 533
Thanks: 4
Thanked 2 Times in 2 Posts
Default How to create Ubuntu guest

Hi folks.


Host - Debian Etch
Xen


I tried to create an Ubuntu Hardy guest with following steps but
without success.


# cp /etc/xen-tools/xen-tools.conf /etc/xen-tools/xen-tools-ubuntu.conf


# xen-create-image --hostname=xen3.satimis.com --size=2Gb --swap=256Mb
--ide \
> --ip=192.168.0.113 --netmask=255.255.255.0 --gateway=192.168.0.1--force \
> --dir=/vserver --memory=32Mb --arch=i386
--kernel=/boot/vmlinuz-2.6.18-xen \
> --debootstrap --dist=hardy
--config-file=/etc/xen-tools/xen-tools-ubuntu.conf \
> --mirror=http://ftp.hostrino.com/pub/ubuntu/ --passwd
Code:
Unknown option: config-file

  We're trying to configure an installation of hardy in
 /vserver - but there is no hook directory for us to use.

  This means we don't know how to configure this installation.

  We'd expect the hook directory to be : /usr/lib/xen-tools/hardy.d

  Aborting.


Logfile produced at:
         /var/log/xen-tools/xen3.satimis.com.log

Please advise how to make use of "/usr/lib/xen-tools/hardy.d"? What will be the correct steps. TIA


B.R.
satimis
Reply With Quote
Sponsored Links
  #2  
Old 15th September 2008, 14:07
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,747 Times in 2,578 Posts
Default

Does the directory /vserver exist?
__________________
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 15th September 2008, 14:27
satimis satimis is offline
Senior Member
 
Join Date: Oct 2006
Posts: 533
Thanks: 4
Thanked 2 Times in 2 Posts
Default

Quote:
Originally Posted by falko View Post
Does the directory /vserver exist?
Yes.


$ ls -al /vserver/
Code:
total 12
drwxr-xr-x  3 root root 4096 2008-09-13 04:39 .
drwxr-xr-x 23 root root 4096 2008-09-12 23:19 ..
drwxr-xr-x  5 root root 4096 2008-09-14 07:52 domains

B.R.
satimis
Reply With Quote
  #4  
Old 16th September 2008, 19:07
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,747 Times in 2,578 Posts
Default

Ok, I think that maybe hardy is not yet supported. What's the output of
Code:
ls -la /usr/lib/xen-tools
?
__________________
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 16th September 2008, 19:37
satimis satimis is offline
Senior Member
 
Join Date: Oct 2006
Posts: 533
Thanks: 4
Thanked 2 Times in 2 Posts
Default

Quote:
Originally Posted by falko View Post
Ok, I think that maybe hardy is not yet supported. What's the output of
Code:
ls -la /usr/lib/xen-tools
?
# ls -la /usr/lib/xen-tools/
Code:
total 64
drwxr-xr-x   7 root root  4096 2008-09-16 09:25 .
drwxr-xr-x 128 root root 36864 2008-09-14 06:32 ..
drwxr-xr-x   2 root root  4096 2008-09-12 22:41 centos4.d
-rw-r--r--   1 root root  2658 2006-11-19 05:51 common.sh
lrwxrwxrwx   1 root root     8 2008-09-12 22:41 dapper.d -> ubuntu.d
drwxr-xr-x   2 root root  4096 2008-09-12 22:41 debian.d
lrwxrwxrwx   1 root root     8 2008-09-12 22:41 edgy.d -> ubuntu.d
lrwxrwxrwx   1 root root     8 2008-09-12 22:41 etch.d -> debian.d
drwxr-xr-x   2 root root  4096 2008-09-12 22:41 fedora.d
drwxr-xr-x   2 root root  4096 2008-09-12 22:41 gentoo.d
lrwxrwxrwx   1 root root     8 2008-09-12 22:41 sarge.d -> debian.d
lrwxrwxrwx   1 root root     8 2008-09-12 22:41 sid.d -> debian.d
lrwxrwxrwx   1 root root     8 2008-09-12 22:41 stentz.d -> fedora.d
drwxr-xr-x   2 root root  4096 2008-09-16 08:57 ubuntu.d
hardy is NOT there.


Tried both dapper and edgy. All fail


# tail /var/log/xen-tools/xen5.satimis.com.log
Code:
Copying files from new installation to host. Copying files from /tmp/IxWnj3F2Gr/var/cache/apt/archives -> /var/cache/apt/archives
Done
Done
The installation of the new system appears to have failed.

There is no '/bin/ls' installed in the new installation directory
Done
System installation failed.  Aborting

I don't understand "There is no '/bin/ls' installed in the new installation directory". What does it mean?


B.R.
satimis
Reply With Quote
  #6  
Old 17th September 2008, 18:49
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,747 Times in 2,578 Posts
Default

Quote:
Originally Posted by satimis View Post
hardy is NOT there.
This means it's not supported.


Quote:
Originally Posted by satimis View Post
# tail /var/log/xen-tools/xen5.satimis.com.log
Code:
Copying files from new installation to host. Copying files from /tmp/IxWnj3F2Gr/var/cache/apt/archives -> /var/cache/apt/archives
Done
Done
The installation of the new system appears to have failed.

There is no '/bin/ls' installed in the new installation directory
Done
System installation failed.  Aborting

I don't understand "There is no '/bin/ls' installed in the new installation directory". What does it mean?


B.R.
satimis
What are the outputs of
Code:
ls -la /usr/lib/xen-tools/ubuntu.d/
and
Code:
df -h
?
__________________
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 2nd January 2010, 07:24
computer_freak_8 computer_freak_8 is offline
Junior Member
 
Join Date: Sep 2009
Posts: 18
Thanks: 3
Thanked 5 Times in 5 Posts
Default

I know this thread is old, but I just finished installing Ubuntu 9.10 (Karmic) on Xen as a guest, so I figured I should post what I had to do to get it that way. (Note: I can't boot... yet. Not sure what's wrong, is says "Error: Bootloader isn't executable"; either way, I managed to get past the stumbling block, as detailed below... perhaps this isn't the right way, but at least it did say that it installed, and not that it failed.)

First, I followed this tutorial, using image-based installations. I originally tried to install Ubuntu as a guest, but it was without success (I haven't tried again until just now, since Debian installed nicely). So, I had some "leftover breadcrumbs" to work off of for this attempt. I found this thread when I used Google for help with the "there is no hook directory for us to use" part.

Here's what I have in one of my directories:
Code:
user@hostname:~$ ls -lA /usr/lib/xen-tools/ubuntu.d/
total 68
-rwxr-xr-x 1 root root  774 2008-09-29 18:08 01-disable-daemons
-rwxr-xr-x 1 root root  595 2008-09-29 18:08 05-shadowconfig-on
-rwxr-xr-x 1 root root  482 2008-09-29 18:08 15-disable-hwclock
-rwxr-xr-x 1 root root 1887 2008-09-29 18:08 20-setup-apt
-rwxr-xr-x 1 root root  511 2008-09-29 18:08 25-generate-locale
-rwxr-xr-x 1 root root 1007 2008-09-29 18:08 30-disable-gettys
-rwxr-xr-x 1 root root 3437 2008-09-29 18:08 35-setup-users
-rwxr-xr-x 1 root root 2649 2008-09-29 18:08 40-setup-networking
-rwxr-xr-x 1 root root 2240 2008-09-29 18:08 50-setup-hostname
-rwxr-xr-x 1 root root  813 2008-09-29 18:08 60-copy-host-files
-rwxr-xr-x 1 root root  729 2008-09-29 18:08 65-copy-user-files
-rwxr-xr-x 1 root root  571 2008-09-29 18:08 70-install-ssh
-rwxr-xr-x 1 root root  843 2008-09-29 18:08 75-fixup-securetty
-rwxr-xr-x 1 root root 1811 2008-09-29 18:08 80-install-modules
-rwxr-xr-x 1 root root 2151 2008-09-29 18:08 90-make-fstab
-rwxr-xr-x 1 root root  485 2008-09-29 18:08 99-clean-image
-rwxr-xr-x 1 root root  584 2008-09-29 18:08 99-enable-daemons
user@hostname:~$
I believe I had just copied them over from one of the other folders - I didn't even have the computer in 2008, and that's the timestamp on the files - so they're probably the same ones that got installed along with the Debian stuff, just not quite in the same spot.

Partial "ls -lA /usr/lib/xen-tools/" output:
Code:
lrwxrwxrwx 1 root root   27 2010-01-01 22:06 karmic.d -> /usr/lib/xen-tools/ubuntu.d
.
.
.
drwxr-xr-x 2 root root 4096 2009-10-20 21:54 ubuntu.d
Again, in this next one, I think it's just a copy of the original for one of the other (older - I think "gusty") Ubuntu scripts; partial "ls -lA /usr/share/debootstrap/scripts/" output:
Code:
lrwxrwxrwx 1 root root    6 2010-01-01 22:12 karmic -> ubuntu
-rw-r--r-- 1 root root 5839 2009-10-20 22:00 ubuntu

Here's the final stuff in the shell:

Code:
user@hostname:~$ sudo xen-create-image --hostname=ubuntu-test-machine --role=udev --dhcp --dist=karmic

General Information
--------------------
Hostname       :  ubuntu-test-machine
Distribution   :  karmic
Partitions     :  swap            512Mb (swap)
                  /               5Gb   (ext3)
Image type     :  sparse
Memory size    :  128Mb

Networking Information
----------------------
IP Address     : DHCP [MAC: FF:11:22:33:44:00]
Netmask        : 255.255.255.x
Broadcast      : x.x.x.255
Gateway        : x.x.x.x


Creating partition image: /home/xen/domains/ubuntu-test-machine/swap.img
Done

Creating swap on /home/xen/domains/ubuntu-test-machine/swap.img
Done

Creating partition image: /home/xen/domains/ubuntu-test-machine/disk.img
Done

Creating ext3 filesystem on /home/xen/domains/ubuntu-test-machine/disk.img
Done
Installation method: debootstrap
Done

Running hooks
Done

Role: udev
	File: /etc/xen-tools/role.d/udev
Role script completed.

Creating Xen configuration file
Done
Setting up root password
Enter new UNIX password: 
Retype new UNIX password: 
passwd: password updated successfully
All done


Logfile produced at:
	 /var/log/xen-tools/ubuntu-test-machine.log
user@hostname:~$

Looking back, I think the bootload issue was caused by me commenting out the kernel/initrd lines in the main xen-tools configuration file. I'm not sure, but I'm loopback-mounting, and chroot-installing a kernel, so I'll find out soon. Also, I think the kernel version needed is "2.6.31-16-generic".
Reply With Quote
The Following User Says Thank You to computer_freak_8 For This Useful Post:
falko (3rd January 2010)
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
how do I setup a Ubuntu domU guest on a CentOS / Fedora Core XEN server? SoftDux Installation/Configuration 0 27th July 2008 20:49
Create fedora guest on debian xabin Installation/Configuration 3 11th March 2008 21:40
Problem on restart bind9 satimis Server Operation 6 30th October 2007 03:01
Chroot SSH + ISPConfig Norman Installation/Configuration 27 26th March 2007 04:40
Verify email setup meekish Installation/Configuration 28 27th October 2006 16:36


All times are GMT +2. The time now is 21:36.


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