Pulkit Gupta
2010-Oct-17 08:11 UTC
[Xen-users] Debain Domu Xen PV boot hangs at CRON message
Hi, I am running CentOS 5.5 with Xen. I wanted to make a Xen Debian 5.0.6 OS template so that I can create any number of Guests by just untarring the whole archieve in the new Guest''s LVM (I am using LVMs) So I created a XEN HVM Debian minimal install and shut it down. After doing that I mounted the LVM using kpartx to map the partition on the LVM. I mounted it on /mnt/debian Then I copied the /lib/modules to /mnt/debian/lib/modules for copying the XEN PV modules. I modified the /mnt/debian/etc/fstab to use /dev/sda1 at ''/'' and to use /dev/sda2 as SWAP After that I tarred the whole system : root > cd /mnt/debian root > tar --zcvp --numeric-owner -f /root/debain-5.tar.gz * Then I made the two LVM one for SWAP and the other as the file system. /dev/vg/debian - This will be mounted as sda1 /dev/vg/debian_swap - This will be mounted as sda2 I mounted /dev/vg/debian and untarred the above archieve in it. Then I created the following Config : # START--- kernel = "/boot/myXENvmlinuz" ramdisk = "/boot/myXENinitrd.img" name = "debian" memory = "256" hostname = "debi.com" cpu_weight = "256" vcpus = "2" vif = ["ip=192.168.1.15, vifname=vifdebain.0, mac=myMAC"] disk = ["phy:/dev/vg/debain,sda1,w" , "phy:/dev/vg/debain_swap,sda2,w"] root = "/dev/sda1 ro" serial = "pty" # END Then boot the machine : root> xm create /etc/xen/debian -c The machine boots but hangs after starting the CRON. This is the same thing that happens with Fedora 13 (I created the template the same way) Virt-Manager shows that the CPU usage jumps to exactly 49.5 - 50 % of the system CPU. Please let me know what am I doing wrong ??? How should I get this template working ? _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Pulkit Gupta
2010-Oct-18 08:43 UTC
Re: [Xen-users] Debain Domu Xen PV boot hangs at CRON message
Hi, I found the following thread in the Mailing list : http://lists.xensource.com/archives/html/xen-users/2010-02/msg00904.html It says to add hvc0 instead of tty1in /etc/inittab I did that but its still not working and is getting hung after the CRON I have attached my /etc/inittab Please help someone _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Matej Zary
2010-Oct-18 10:05 UTC
RE: [Xen-users] Debain Domu Xen PV boot hangs at CRON message
Hi, /etc/inittab: Replaced 1:2345:respawn:/sbin/getty 38400 tty1 with 1:2345:respawn:/sbin/getty 38400 hvc0 Regards Matej -----Original Message----- From: xen-users-bounces@lists.xensource.com [mailto:xen-users-bounces@lists.xensource.com] On Behalf Of Pulkit Gupta Sent: Monday, October 18, 2010 10:43 AM To: xen-users@lists.xensource.com Subject: Re: [Xen-users] Debain Domu Xen PV boot hangs at CRON message Hi, I found the following thread in the Mailing list : http://lists.xensource.com/archives/html/xen-users/2010-02/msg00904.html It says to add hvc0 instead of tty1in /etc/inittab I did that but its still not working and is getting hung after the CRON I have attached my /etc/inittab Please help someone _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Pulkit Gupta
2010-Oct-18 12:55 UTC
Re: [Xen-users] Debain Domu Xen PV boot hangs at CRON message
Hi, I just added PyGrub as the boot loader and it worked. But cant it work without pyGRUB ? Is pyGRUB better or is it better to go without pyGRUB ? Regards, Pulkit Gupta _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Hi, For Xen Paravirtualization is it better to use TWO LVM : 1) One for ''/'' 2) For SWAP OR Is it better to have one LVM with two partitions in it i.e. for ''/'' and SWAP Many guides make TWO LVMs and mount it as sda1 and sda2. Will it impact perfomance if only one LVM is used with two partitions ? Regards, Pulkit Gupta _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On 2010/10/18 03:33 PM, Pulkit Gupta wrote:> Hi, > > For Xen Paravirtualization is it better to use TWO LVM : > 1) One for ''/'' > 2) For SWAP > > OR > > Is it better to have one LVM with two partitions in it i.e. for ''/'' > and SWAP > > Many guides make TWO LVMs and mount it as sda1 and sda2. > Will it impact perfomance if only one LVM is used with two partitions ? > > Regards, > Pulkit Gupta > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-usersThis wouldn''t make a difference on performance, but it would make resizing easier :) -- Kind Regards Rudi Ahlers, SoftDux MD Website: http://www.SoftDux.com Blog: http://Blog.SoftDux.com Support: http://Billing.SoftDux.com Office: 087 805 9573 Cell: 082 554 7532 Fax: 086 609 6128 _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users