Hi folks. Host - Debian Etch 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/ --passwdUnknown 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 Send instant messages to your online friends http://uk.messenger.yahoo.com _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
You can copy the hardy file(s) from another ubuntu system into the debian one. Hope that helps, Cheers, Todd On Sun, Sep 14, 2008 at 10:34 AM, Stephen Liu <satimis@yahoo.com> wrote:> Hi folks. > > > Host - Debian Etch > > > 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 > 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 > > Send instant messages to your online friends http://uk.messenger.yahoo.com > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users >-- Todd Deshane http://todddeshane.net check out our book: http://runningxen.com _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Sun, 2008-09-14 at 13:29 -0400, Todd Deshane wrote:> You can copy the hardy file(s) from another ubuntu system into the debian one.He should be able to just copy the file: /usr/share/debootstrap/scripts/hardy from an Ubuntu system to his Debian system. I''d actually be curious to know if that worked. If I''m not mistaken, it should :) He should then be able to strap Hardy on his system. Cheers, --Tim _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Sun, Sep 14, 2008 at 2:48 PM, Tim Post <echo@echoreply.us> wrote:> On Sun, 2008-09-14 at 13:29 -0400, Todd Deshane wrote: >> You can copy the hardy file(s) from another ubuntu system into the debian one. > > He should be able to just copy the file: >> /usr/share/debootstrap/scripts/hardy from an Ubuntu system to his Debian > system. I''d actually be curious to know if that worked. > > If I''m not mistaken, it should :) He should then be able to strap Hardy > on his system. >Right. I''ve done that sort of thing before. You can do a similar thing with installing Debian on Ubuntu (you just need to pass a proper mirror option, if necessary)> Cheers, > --Tim > > >-- Todd Deshane http://todddeshane.net check out our book: http://runningxen.com _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
--- Todd Deshane <deshantm@gmail.com> wrote:> On Sun, Sep 14, 2008 at 2:48 PM, Tim Post <echo@echoreply.us> wrote: > > On Sun, 2008-09-14 at 13:29 -0400, Todd Deshane wrote: > >> You can copy the hardy file(s) from another ubuntu system into the > debian one. > > > > He should be able to just copy the file: > > > > > /usr/share/debootstrap/scripts/hardy from an Ubuntu system to his > Debian > > system. I''d actually be curious to know if that worked. > > > > If I''m not mistaken, it should :) He should then be able to strap > Hardy > > on his system.Hi Todd, Could you please explain in more detail how to do the job? On an Ubuntu Hardy box or on a Virtual box running Ubuntu Hardy as Host? Where shall I keep the file copied (/usr/share/debootstrap/scripts/hardy) on Debian_Xen Virtual box? If I don''t have a Debian_Xen Virtual box is there a solution? Can I make use of Hardy installer CD or Hardy ISO image to install Hardy as Guest on Debian_Xen Virtual box? If YES, please advise how to do it. Others noted with thanks TIA B.R. Stephen L> > > > Right. I''ve done that sort of thing before. You can do a similar > thing > with installing > Debian on Ubuntu (you just need to pass a proper mirror option, if > necessary) > > > > Cheers, > > --Tim > > > > > > > > > > -- > Todd Deshane > http://todddeshane.net > check out our book: http://runningxen.com >Send instant messages to your online friends http://uk.messenger.yahoo.com _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Sun, Sep 14, 2008 at 10:05 PM, Stephen Liu <satimis@yahoo.com> wrote:> > --- Todd Deshane <deshantm@gmail.com> wrote: > >> On Sun, Sep 14, 2008 at 2:48 PM, Tim Post <echo@echoreply.us> wrote: >> > On Sun, 2008-09-14 at 13:29 -0400, Todd Deshane wrote: >> >> You can copy the hardy file(s) from another ubuntu system into the >> debian one. >> > >> > He should be able to just copy the file: >> > >> >> > /usr/share/debootstrap/scripts/hardy from an Ubuntu system to his >> Debian >> > system. I''d actually be curious to know if that worked. >> > >> > If I''m not mistaken, it should :) He should then be able to strap >> Hardy >> > on his system. > > > Hi Todd, > > > Could you please explain in more detail how to do the job? > >On the debian box do as root or with sudo: cd /usr/share/debootstrap/scripts/ wget http://todddeshane.net/tmp/hardy Next, run your xen-create-image command again Enjoy. Yes you could use virtual box or another Ubuntu box and install debootstrap if necessary too. This is a xen users list though, for some information on virtual box see: http://www.virtualbox.org/ Hope that helps, Cheers, Todd _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
--- Todd Deshane <deshantm@gmail.com> wrote: - snip -> > Could you please explain in more detail how to do the job? > > > > > On the debian box do as root or with sudo: > cd /usr/share/debootstrap/scripts/ > wget http://todddeshane.net/tmp/hardy > Next, run your xen-create-image command again > Enjoy.Thanks. Would it affect other debian scripts?> Yes you could use virtual box or another Ubuntu box and install > debootstrap if necessary too. > > This is a xen users list though, for some information on virtual box > see: > http://www.virtualbox.org/Oh Sorry. I did not mean Virtualbox, the virtualization package. I meant other virtural machine running Xen with Ubuntu Hardy as Host. B.R. Stephen Send instant messages to your online friends http://uk.messenger.yahoo.com _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Sun, Sep 14, 2008 at 10:45 PM, Stephen Liu <satimis@yahoo.com> wrote:> > --- Todd Deshane <deshantm@gmail.com> wrote: > > - snip - > > >> > Could you please explain in more detail how to do the job? >> > >> > >> On the debian box do as root or with sudo: >> cd /usr/share/debootstrap/scripts/ >> wget http://todddeshane.net/tmp/hardy >> Next, run your xen-create-image command again >> Enjoy. > > Thanks. > > > Would it affect other debian scripts? >Only ones like deboostrap, which is what xen-create image calls, that use that script to download the base packages.> > >> Yes you could use virtual box or another Ubuntu box and install >> debootstrap if necessary too. >> >> This is a xen users list though, for some information on virtual box >> see: >> http://www.virtualbox.org/ > > > Oh Sorry. I did not mean Virtualbox, the virtualization package. I > meant other virtural machine running Xen with Ubuntu Hardy as Host. >OK, you have to be careful when throwing terminology around :) Yeah, you can use that, just install the package debootstrap and it will come with a number of scripts in the /usr/share/deboostrap/scripts dir. Cheers, Todd -- Todd Deshane http://todddeshane.net check out our book: http://runningxen.com _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
--- Todd Deshane <deshantm@gmail.com> wrote: - snip -> > Could you please explain in more detail how to do the job? > > > > > On the debian box do as root or with sudo: > cd /usr/share/debootstrap/scripts/ > wget http://todddeshane.net/tmp/hardy > Next, run your xen-create-image command again > Enjoy.Hi Todd. Performed following test but failed; # find / -name debootstrap -type d /usr/lib/debootstrap /usr/share/doc/debootstrap # ls /usr/lib/debootstrap/ devices.tar.gz functions scripts # ls /usr/lib/debootstrap/scripts/ breezy hoary.buildd sarge sid woody etch lenny sarge.buildd warty woody.buildd hoary potato sarge.fakechroot warty.buildd # cd /usr/lib/debootstrap/scripts/ # wget http://todddeshane.net/tmp/hardy --20:39:14-- http://todddeshane.net/tmp/hardy => `hardy'' Resolving todddeshane.net... 128.153.22.41 Connecting to todddeshane.net|128.153.22.41|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 5,839 (5.7K) [text/plain] 100%[=============================================================>] 5,839 19.94K/s 20:39:15 (19.88 KB/s) - `hardy'' saved [5839/5839] * end * # 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 --mirror=http://ftp.au.debian.org/debian/ --passwd 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 * end * Remark: logfile same as above described. AGAIN ==== # cp /usr/lib/debootstrap/scripts/hardy /usr/lib/xen-tools/hardy.d # ls /usr/lib/xen-tools/ centos4.d dapper.d edgy.d fedora.d hardy.d sid.d ubuntu.d common.sh debian.d etch.d gentoo.d sarge.d stentz.d # 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 --mirror=http://ftp.au.debian.org/debian/ --passwd 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 * end * Remark: logfile same as above described # ls -l /usr/lib/xen-tools/ total 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 -rw-r--r-- 1 root root 5839 2008-09-14 20:46 hardy.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-12 22:41 ubuntu.d AGAIN ==== # rm /usr/lib/xen-tools/hardy.d # cd /usr/lib/xen-tools/ # ln -s ubuntu.d hardy.d # ls -l total 24 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-14 21:02 hardy.d -> ubuntu.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-12 22:41 ubuntu.d # 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 --mirror=http://ftp.au.debian.org/debian/ --passwd General Infomation -------------------- Hostname : xen3.satimis.com Distribution : hardy Fileystem Type : ext3 Size Information ---------------- Image size : 2Gb Swap size : 256Mb Image type : sparse Memory size : 32Mb Kernel path : /boot/vmlinuz-2.6.18-xen Networking Information ---------------------- IP Address 1 : 192.168.0.113 Netmask : 255.255.255.0 Gateway : 192.168.0.1 WARNING ------- Loopback module not loaded and you''re using loopback images Run the following to load the module: modprobe loop loop_max=255 Creating swap image: /vserver/domains/xen3.satimis.com/swap.img Done Creating disk image: /vserver/domains/xen3.satimis.com/disk.img Done Creating ext3 filesystem on /vserver/domains/xen3.satimis.com/disk.img Done Installing your system with debootstrap mirror http://ftp.au.debian.org/debian/ Done System installation failed. Aborting Logfile produced at: /var/log/xen-tools/xen3.satimis.com.log * end * # tail /var/log/xen-tools/xen3.satimis.com.log Copying files from new installation to host. Copying files from /tmp/xxmLdO1cNA/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 * end * B.R. Stephen Send instant messages to your online friends http://uk.messenger.yahoo.com _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Mon, 2008-09-15 at 12:28 +0800, Stephen Liu wrote: [ snip ]> # 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 > --mirror=http://ftp.au.debian.org/debian/ --passwdTry passing --mirror=http://archive.ubuntu.com/ubuntu/ , the Debian mirrors aren''t going to know anything about hardy. :) The ''hardy'' script in debootstrap should take it from there. Cheers, --Tim _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
--- Tim Post <echo@echoreply.us> wrote:> On Mon, 2008-09-15 at 12:28 +0800, Stephen Liu wrote: > [ snip ] > > > # 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 > > --mirror=http://ftp.au.debian.org/debian/ --passwd > > Try passing --mirror=http://archive.ubuntu.com/ubuntu/ , the Debian > mirrors aren''t going to know anything about hardy. :) > > The ''hardy'' script in debootstrap should take it from there.Hi Tim, # 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 --mirror=http://archive.ubuntu.com/ubuntu/ --passwd General Infomation -------------------- Hostname : xen3.satimis.com Distribution : hardy Fileystem Type : ext3 Size Information ---------------- Image size : 2Gb Swap size : 256Mb Image type : sparse Memory size : 32Mb Kernel path : /boot/vmlinuz-2.6.18-xen Networking Information ---------------------- IP Address 1 : 192.168.0.113 Netmask : 255.255.255.0 Gateway : 192.168.0.1 WARNING ------- Loopback module not loaded and you''re using loopback images Run the following to load the module: modprobe loop loop_max=255 Creating swap image: /vserver/domains/xen3.satimis.com/swap.img Done Creating disk image: /vserver/domains/xen3.satimis.com/disk.img Done Creating ext3 filesystem on /vserver/domains/xen3.satimis.com/disk.img Done Installing your system with debootstrap mirror http://archive.ubuntu.com/ubuntu/ Done System installation failed. Aborting Logfile produced at: /var/log/xen-tools/xen3.satimis.com.log * end * Failed # tail /var/log/xen-tools/xen3.satimis.com.log Copying files from new installation to host. Copying files from /tmp/unZo4HI7LG/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 * end * same warning. B.R. Stephen L Send instant messages to your online friends http://uk.messenger.yahoo.com _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Mon, 2008-09-15 at 15:11 +0800, Stephen Liu wrote: [ snip ]> WARNING > ------- > Loopback module not loaded and you''re using loopback images > Run the following to load the module: > > modprobe loop loop_max=255Did you ensure that loop was loaded? If not, its going to be impossible to mount a file backed block device and copy over the newly strapped file system, much less boot it. Please do what the warning recommends and try again. Cheer up , you''re almost there :) Cheers, --Tim _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
--- Tim Post <echo@echoreply.us> wrote:> On Mon, 2008-09-15 at 15:11 +0800, Stephen Liu wrote: > [ snip ] > > > WARNING > > ------- > > Loopback module not loaded and you''re using loopback images > > Run the following to load the module: > > > > modprobe loop loop_max=255 > > Did you ensure that loop was loaded? If not, its going to be > impossible > to mount a file backed block device and copy over the newly strapped > file system, much less boot it.Hi Tim, # ps aux | grep loop root 3822 0.0 0.0 0 0 ? S< 04:21 0:00 [loop0] root 3876 0.0 0.0 0 0 ? S< 04:21 0:00 [loop1] root 4631 0.0 0.0 2760 696 pts/1 S+ 04:36 0:00 grep loop> Please do what the warning recommends and try again.I really don''t understand what "There is no ''/bin/ls'' installed in the new installation directory" refers. I have been googling around. Some threads said it is a bug. B.R. satimis Send instant messages to your online friends http://uk.messenger.yahoo.com _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Try a more manual procedure. Something like: sudo mkdir -p /xen/images sudo dd if=/dev/zero of=/xen/images/para.partition bs=1M seek=10240 count=1 ls -lh /xen/images/ sudo mkfs.ext3 -F /xen/images/para.partition sudo mkdir /mnt/para sudo mount -o loop /xen/images/para.partition /mnt/para http://archive.ubuntu.com/ubuntu sudo debootstrap hardy /mnt/para You should then have a file system at /mnt/para. You can then customize things like hostname,etc. When you are done customizing, umount it and make a domU config file. something like: kernel="/boot/<Xen kernel>" ramdisk="/boot/Xen initrd" disk=[''tap:aio:/xen/images/para.partition,xvda1,w''] memory=512 vif=[''''] root="/dev/xvda1" extra=''xencons=tty'' and then xm create -c <the config file> On Mon, Sep 15, 2008 at 7:40 AM, Stephen Liu <satimis@yahoo.com> wrote:> > --- Tim Post <echo@echoreply.us> wrote: > >> On Mon, 2008-09-15 at 15:11 +0800, Stephen Liu wrote: >> [ snip ] >> >> > WARNING >> > ------- >> > Loopback module not loaded and you''re using loopback images >> > Run the following to load the module: >> > >> > modprobe loop loop_max=255 >> >> Did you ensure that loop was loaded? If not, its going to be >> impossible >> to mount a file backed block device and copy over the newly strapped >> file system, much less boot it. > > > Hi Tim, > > > # ps aux | grep loop > root 3822 0.0 0.0 0 0 ? S< 04:21 0:00 > [loop0] > root 3876 0.0 0.0 0 0 ? S< 04:21 0:00 > [loop1] > root 4631 0.0 0.0 2760 696 pts/1 S+ 04:36 0:00 grep > loop > > > >> Please do what the warning recommends and try again. > > > I really don''t understand what "There is no ''/bin/ls'' installed in the > new installation directory" refers. I have been googling around. Some > threads said it is a bug. > > > B.R. > satimis > > Send instant messages to your online friends http://uk.messenger.yahoo.com > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users >-- Todd Deshane http://todddeshane.net check out our book: http://runningxen.com _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
--- Todd Deshane <deshantm@gmail.com> wrote:> Try a more manual procedure. > > Something like: > > sudo mkdir -p /xen/images > sudo dd if=/dev/zero of=/xen/images/para.partition bs=1M seek=10240 > count=1 > ls -lh /xen/images/ > sudo mkfs.ext3 -F /xen/images/para.partition > sudo mkdir /mnt/para$ sudo mkdir -p /xen/images Password: $ sudo dd if=/dev/zero of=/xen/images/para.partition bs=1M seek=10240 count=1 1+0 records in 1+0 records out 1048576 bytes (1.0 MB) copied, 0.003378 seconds, 310 MB/s $ ls -lh /xen/images/ total 1.1M -rw-r--r-- 1 root root 11G 2008-09-15 09:06 para.partition $ sudo mkfs.ext3 -F /xen/images/para.partition mke2fs 1.40-WIP (14-Nov-2006) warning: 256 blocks unused. Filesystem labelOS type: Linux Block size=4096 (log=2) Fragment size=4096 (log=2) 1313280 inodes, 2621440 blocks 131084 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 16416 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 33 mounts or 180 days, whichever comes first. Use tune2fs -c or -i to override. * end * Up to here there is no problem.> sudo mount -o loop /xen/images/para.partition /mnt/para > http://archive.ubuntu.com/ubuntuIf putting above in ONE line it complains; $ sudo mount -o loop /xen/images/para.partition /mnt/para http://archive.ubuntu.com/ubuntu Usage: mount -V : print version mount -h : print this help mount : list mounted filesystems mount -l : idem, including volume labels So far the informational part. Next the mounting. The command is `mount [-t fstype] something somewhere''. Details found in /etc/fstab may be omitted. mount -a [-t|-O] ... : mount all stuff from /etc/fstab mount device : mount device at the known place mount directory : mount known device here mount -t type dev dir : ordinary mount command Note that one does not really mount a device, one mounts a filesystem (of the given type) found on the device. One can also mount an already visible directory tree elsewhere: mount --bind olddir newdir or move a subtree: mount --move olddir newdir A device can be given by name, say /dev/hda1 or /dev/cdrom, or by label, using -L label or by uuid, using -U uuid . Other options: [-nfFrsvw] [-o options] [-p passwdfd]. For many more details, say man 8 mount . * end * If running them in 2 lines; $ sudo mount -o loop /xen/images/para.partition /mnt/para No complaint However; $ http://archive.ubuntu.com/ubuntu Can''t run on console. Please advise. TIA B.R. satimis> sudo debootstrap hardy /mnt/para > > You should then have a file system at /mnt/para. > > You can then customize things like hostname,etc. > > When you are done customizing, umount it and make a domU config file. > > something like: > > kernel="/boot/<Xen kernel>" > ramdisk="/boot/Xen initrd" > disk=[''tap:aio:/xen/images/para.partition,xvda1,w''] > memory=512 > vif=[''''] > root="/dev/xvda1" > extra=''xencons=tty'' > > and then > > xm create -c <the config file> > > > On Mon, Sep 15, 2008 at 7:40 AM, Stephen Liu <satimis@yahoo.com> > wrote: > > > > --- Tim Post <echo@echoreply.us> wrote: > > > >> On Mon, 2008-09-15 at 15:11 +0800, Stephen Liu wrote: > >> [ snip ] > >> > >> > WARNING > >> > ------- > >> > Loopback module not loaded and you''re using loopback images > >> > Run the following to load the module: > >> > > >> > modprobe loop loop_max=255 > >> > >> Did you ensure that loop was loaded? If not, its going to be > >> impossible > >> to mount a file backed block device and copy over the newly > strapped > >> file system, much less boot it. > > > > > > Hi Tim, > > > > > > # ps aux | grep loop > > root 3822 0.0 0.0 0 0 ? S< 04:21 0:00 > > [loop0] > > root 3876 0.0 0.0 0 0 ? S< 04:21 0:00 > > [loop1] > > root 4631 0.0 0.0 2760 696 pts/1 S+ 04:36 0:00 > grep > > loop > > > > > > > >> Please do what the warning recommends and try again. > > > > > > I really don''t understand what "There is no ''/bin/ls'' installed in > the > > new installation directory" refers. I have been googling around. > Some > > threads said it is a bug. > > > > > > B.R. > > satimis > > > > Send instant messages to your online friends > http://uk.messenger.yahoo.com > > > > _______________________________________________ > > Xen-users mailing list > > Xen-users@lists.xensource.com > > http://lists.xensource.com/xen-users > > > > > > -- > Todd Deshane > http://todddeshane.net > check out our book: http://runningxen.com >Send instant messages to your online friends http://uk.messenger.yahoo.com _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
I pasted in the wrong spot, those lines should be:> sudo mount -o loop /xen/images/para.partition /mnt/para > sudo debootstrap hardy /mnt/para http://archive.ubuntu.com/ubuntu_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
--- Todd Deshane <deshantm@gmail.com> wrote:> I pasted in the wrong spot, those lines should be: > > > sudo mount -o loop /xen/images/para.partition /mnt/para > > sudo debootstrap hardy /mnt/para http://archive.ubuntu.com/ubuntuContinue; $ sudo debootstrap hardy /mnt/para http://archive.ubuntu.com/ubuntu Password: $ ls -l /mnt/para/ total 20 drwxr-xr-x 2 root root 4096 2008-09-15 09:35 debootstrap drwx------ 2 root root 16384 2008-09-15 09:07 lost+found $ ls -l /mnt/para/debootstrap/ total 4 -rw-r--r-- 1 root root 78 2008-09-15 09:35 debootstrap.log $ cat /mnt/para/debootstrap/debootstrap.log /usr/lib/debootstrap/scripts/hardy: line 3: default_mirror: command not found Unable to proceed further. B.R. Stephen Send instant messages to your online friends http://uk.messenger.yahoo.com _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Hi Rogier, Thanks for your advice. --- Rogier Wessel <rhwessel@xs4all.nl> wrote:> Hi Stephen, > > On Tue, 2008-09-16 at 00:43 +0800, Stephen Liu wrote: > > $ cat /mnt/para/debootstrap/debootstrap.log > > /usr/lib/debootstrap/scripts/hardy: line 3: default_mirror: command > > not > > found > > > > > > Unable to proceed further. > > cp /usr/lib/debootstrap/scripts/breezy > /usr/lib/debootstrap/scripts/hardy worked for me although I''m not > completely sure about the implications of using the info of an older > config.# cp /usr/lib/debootstrap/scripts/breezy /usr/lib/debootstrap/scripts/hardy # rm /usr/lib/xen-tools/hardy.d # xen-create-image --hostname=xen5.satimis.com --size=2Gb --swap=256Mb --ide --ip=192.168.0.115 --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 --mirror=http://archive.ubuntu.com/ubuntu/ --passwd 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/xen5.satimis.com.log $ tail /var/log/xen-tools/xen5.satimis.com.log 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. Fails AGAIN ==== # cd /usr/lib/xen-tools/ # ln -s ubuntu.d hardy.d # xen-create-image --hostname=xen5.satimis.com --size=2Gb --swap=256Mb --ide --ip=192.168.0.115 --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 --mirror=http://archive.ubuntu.com/ubuntu/ --passwd ..... ..... WARNING ------- Loopback module not loaded and you''re using loopback images Run the following to load the module: modprobe loop loop_max=255 Creating swap image: /vserver/domains/xen5.satimis.com/swap.img Done Creating disk image: /vserver/domains/xen5.satimis.com/disk.img Done Creating ext3 filesystem on /vserver/domains/xen5.satimis.com/disk.img Done Installing your system with debootstrap mirror http://archive.ubuntu.com/ubuntu/ Done System installation failed. Aborting Logfile produced at: /var/log/xen-tools/xen5.satimis.com.log * end * # tail /var/log/xen-tools/xen5.satimis.com.log Copying files from new installation to host. Copying files from /tmp/P36A9rHTCz/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 Still fail I don''t understand "There is no ''/bin/ls'' installed in the new installation directory". What does it refer to? B.R. Stephen L Send instant messages to your online friends http://uk.messenger.yahoo.com _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users