[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-users] Debain Domu Xen PV boot hangs at CRON message


  • To: <xen-users@xxxxxxxxxxxxxxxxxxx>
  • From: "Pulkit Gupta" <pulgup@xxxxxxxxx>
  • Date: Sun, 17 Oct 2010 13:41:39 +0530
  • Delivery-date: Sun, 17 Oct 2010 01:13:20 -0700
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:from:to:subject:date:mime-version:content-type :x-priority:x-msmail-priority:x-mailer:x-mimeole; b=RU5RrKPDdCVo0Eu+7EdGqg2feCg8b4Xygss8vMGO3JiCtRUQyTRzG2zefrgDmhynSW aeB4qVgfKW+Jd+DOElSSc7fd6EmdEV29SasD9KVRa1/MVpsrjQV8aQGRT3SQKI6javoG EGFFZEOV7Kryg/75+FwaWy2LF9XAdo/mGjhf8=
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

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@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.