Hallo! After succesfully installing xen(-3.0) for the first time from binaries ( 2.6.12.6-xen0) under kubuntu-breezy without problems now I''m trying to get a virtual machine up and running. I followed this howto: http://www.howtoforge.com/perfect_xen_setup_debian_ubuntu and I also read the mini-howto: http://wiki.xensource.com/xenwiki/UbuntuHoaryHowTo from the wiki. After installation I debootstrapped a debian installation, and after that I would like to run it as virtual machine. Unfortunately my vm "stays" at the point of starting crond. After commenting the getty lines in the inittab, I don''t have the rewpawn lines, but no more happens. Can anybody help? Please let me know what more infos you need. Here''s my vm-sxp file: name ="vm-ldap" kernel ="/boot/vmlinuz-2.6.12.6-xenU" root ="/dev/hda1" memory =128 disk = [''file:/virtual/xen/images/ldap.img,hda1,w'',''file:/virtual/xen/images/ldap-swap.img,hda2,w''] # network nics=1 dhcp ="off" ip="192.168.50.10" netmask="255.255.255.0" gateway="192.168.50.1" hostname="vm-ldap.xxx" domain="xxx" extra="3" Thank you very much Angela _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Angela Gavazzi wrote:> Hallo! > > After succesfully installing xen(-3.0) for the first time from binaries > ( 2.6.12.6-xen0) under kubuntu-breezy without problems now I''m trying to get > a virtual machine up and running. > I followed this howto: > http://www.howtoforge.com/perfect_xen_setup_debian_ubuntu > and I also read the mini-howto: > http://wiki.xensource.com/xenwiki/UbuntuHoaryHowTo > from the wiki. > > After installation I debootstrapped a debian installation, and after that I > would like to run it as virtual machine. > Unfortunately my vm "stays" at the point of starting crond. > After commenting the getty lines in the inittab, I don''t have the rewpawn > lines, but no more happens.there is clearly something wrong with those instructions. I followed them as well and had problems creating the virtual images. Once I worked through the problems, I had an image that would not boot. xen complained about hot plug scripts not running. I really need to automate the image construction process so we will have a repeatable process for producing these images. ---eric _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Wednesday 07 December 2005 16:10, Eric S. Johansson wrote:> Angela Gavazzi wrote: > > Hallo! > > > > After succesfully installing xen(-3.0) for the first time from binaries > > ( 2.6.12.6-xen0) under kubuntu-breezy without problems now I''m trying to > > get a virtual machine up and running. > > I followed this howto: > > http://www.howtoforge.com/perfect_xen_setup_debian_ubuntu > > and I also read the mini-howto: > > http://wiki.xensource.com/xenwiki/UbuntuHoaryHowTo > > from the wiki. > > > > After installation I debootstrapped a debian installation, and after that > > I would like to run it as virtual machine. > > Unfortunately my vm "stays" at the point of starting crond. > > After commenting the getty lines in the inittab, I don''t have the rewpawn > > lines, but no more happens. > > there is clearly something wrong with those instructions. I followed > them as well and had problems creating the virtual images. Once I > worked through the problems, I had an image that would not boot. xen > complained about hot plug scripts not running. > > I really need to automate the image construction process so we will have > a repeatable process for producing these images.Try this one: http://www.tahina.priv.at/~cm/talks/setup-xen-debian Michael -- ---------------------------------------------------------------------------------------- Michael Mey Thinking Objects Software GmbH | mailto: michael.mey@to.com Lilienthalstrasse 2/1 | phone: +49 711 88770-147 70825 Stuttgart-Korntal, Germany | fax: +49 711 88770-449 ---------------------------------------------------------------------------------------- _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Michael Mey wrote:>> I really need to automate the image construction process so we will have >> a repeatable process for producing these images. > Try this one: > http://www.tahina.priv.at/~cm/talks/setup-xen-debianfor debian, it seems to work kinda.. Starting deferred execution scheduler: atd. Starting periodic command scheduler: cron. INIT: Id "1" respawning too fast: disabled for 5 minutes INIT: no more processes left in this runlevel for ubuntu, it also failed. the problem is that even if I could get debian to work, I need to work from an umbuntu base. so onto the failures: #1 I: Configuring gnupg... I: Configuring ubuntu-keyring... W: Failure while configuring base packages. This will be attempted 5 times. W: Failure while configuring base packages. This will be attempted 5 times. W: Failure while configuring base packages. This will be attempted 5 times. W: Failure while configuring base packages. This will be attempted 5 times. W: Failure while configuring base packages. This will be attempted 5 times. I: Base system installed successfully. #2 + chroot /mnt /usr/bin/aptitude upgrade Reading package lists... Done Building dependency tree... Done Initializing package states... Done root@xeno:~# and it had a whole lot more to do. I''ve been racking my brain and can''t quite remember what magic mode of failure makes a shell script terminate without any error messages in mid-script. what''s infuriating is the debian version goes through the identical segment without a problem. any ideas on how to fix this problem? of course, it strikes me that it should be possible to create a disk image by using qemu and a bootable CD-ROM image. The problem is, you get a real disk image complete with partitions and since the Linux loopback device is a botched job that can''t cope with petitions and that the magic cylinder, heads, and sectors are guessed at, it''s damned difficult to try and pull a partition out of a file based disk image. So far, I''ve failed every time. The only tool I''ve really found that gets it right is losetup but making a copy of the mounted partition via /dev/loopX gives me root@xeno:/home/esj# mount -o loop ubuntu-server-root.img /virt_disk/ mount: wrong fs type, bad option, bad superblock on /dev/loop7, missing codepage or other error In some cases useful info is found in syslog - try dmesg | tail or so when I come back from shoveling snow, I''ll try making a cp level copy of the partition onto a new straight file image. ---eric _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Eric S. Johansson
2005-Dec-11 16:23 UTC
next chapter in domUbuntu was:Re: [Xen-users] Xen newbie question
Eric S. Johansson wrote:> when I come back from shoveling snow, I''ll try making a cp level copy of > the partition onto a new straight file image.long story short, I was unable to extract the ubuntu partition created using qemu and make a working domU. There''s something about me and partition math that just doesn''t seem to work with file based partitioned disk images. so in rereading the documentation I saw the trick of copying files from the dom0 image into a domU partition. I did and it worked... mostly. I believe that this technique or very close variant will work for any Linux distribution and let you get to a working domU image relatively quickly. The majority of the time will be spent waiting for qemu to do its stuff. the rough sequence is: Build OS image in qemu mount partition from qemu OS image (I used lomount which is now apparently included in xen 3.0) cp -a qemu_partition file_image cp -a domU_modules file_image fix /etc/network/interfaces for your local network edit /etc/modules for only the modules you need edit inittab to remove... (haven''t worked this part out quite right yet) create your domU.xm xm create domU.xm -c (puzzlement number one: why is there a 20-30 second delay on initializing CPU #1. I''m also only seeing one CPU. Do I need to do something different with domU. Will xen manage the CPU''s for the domU''s? puzzlement number two: why do I get "couldn''t get a file descriptor referring to the console" message? Searching says it''s something related to the console set up in inittab but I haven''t puzzled it out yet) You will probably get LVM and EVMS errors at this point. Ignore them Login using the account and password you created when installing via qemu. turn off: LVM EVMS ntp ntpd and maybe others. Reboot the domU image and verify everything is operating correctly. Now I haven''t gone this far yet but this is my plan: It seems to me that one could create new domU images by copying this baseline image into larger file or LVM based disks. It also strikes me that one should be able to create a relatively large LVM disk, dd the baseline image into it and then it resize the filesystem to match the LVM disk. They both have challenges and I''m going to play with both. I know the simple copy will work so that may not be any advantage to the dd and resize except for satisfying one''s alpha geek testosterone urges which I know none of us here suffer from. If others could play with this model, I would greatly appreciate it. I want to make sure it works and then put it up on the wiki. I must say, this wouldn''t be such a problem if we could "boot" a domU from CD-ROM. ;-) I other hand, we only need to do this once in awhile and the qemu approach doesn''t suck too badly as long as you are running on something faster than a Pentium III/500 megahertz laptop. Thanks for the help folks and working out the bugs in this procedure would be a great contribution opportunity for the non-coding, reasonably sophisticated end-user. ---eric _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Michael Mey
2005-Dec-12 08:52 UTC
Re: next chapter in domUbuntu was:Re: [Xen-users] Xen newbie question
On Sunday 11 December 2005 17:23, Eric S. Johansson wrote:> Eric S. Johansson wrote: > puzzlement number two: why do I get "couldn''t get a file descriptor > referring to the console" message? Searching says it''s something > related to the console set up in inittab but I haven''t puzzled it out yet)I got the same problem when I just copied the files of dom0 to a domU partition and booted it. Yes, AFAIK it is related to some console setup in inittab. I searched the web for a while and tried to comment 1:2345:respawn:/sbin/getty 38400 tty1 #2:23:respawn:/sbin/getty 38400 tty2 #3:23:respawn:/sbin/getty 38400 tty3 #4:23:respawn:/sbin/getty 38400 tty4 #5:23:respawn:/sbin/getty 38400 tty5 #6:23:respawn:/sbin/getty 38400 tty6 lines 2 -6 as it was recommended in some forum - but it didn''t work for me. So I decided to debootstrap me some debain domU :) Michael -- ---------------------------------------------------------------------------------------- Michael Mey Thinking Objects Software GmbH | mailto: michael.mey@to.com Lilienthalstrasse 2/1 | phone: +49 711 88770-147 70825 Stuttgart-Korntal, Germany | fax: +49 711 88770-449 ---------------------------------------------------------------------------------------- _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Eric S. Johansson
2005-Dec-12 14:22 UTC
Re: next chapter in domUbuntu was:Re: [Xen-users] Xen newbie question
Michael Mey wrote:> > lines 2 -6 as it was recommended in some forum - but it didn''t work for me. So > I decided to debootstrap me some debain domU :)yes, I tried the debootstrap route and sat there watching in childlike wonder as it presented me with a rainbow of failures. Left me muttering something about rocket club open source projects as I am often given to doing lately. still, I think the QEMU based methodology has merit as it has a good probability of being completely OS distribution independent and is much much faster when deploying a new domU. Major problems being extracting partitions and the warning message I described earlier. I tried the dd and resize trick last night. It worked really really well. The primary advantage of the copy method of propagating domU is that it allows you to change filesystems to something other than what you have on your baseline image. When I created the baseline domU filesystem, I added dir_index to the mkfs specification. I''ve also created reiserfs / filesystems from a ext3 baseline image. anyway, I am happier than I''ve been in while and now I need to migrate all of my old gentoo xen 2.0.4 domU partitions over to ubuntu domU''s ---eric _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users