WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

Re: [Xen-users] Newbie DomU problem

Brian,

Why are you setting the root device in the dom-u to be /dev/sda6 ? Your
dom-u has no such partition specified to be created in the config.

Since you are using ATA drives, you are correct that it should be 'hda'
and not 'sda'.

Change all instances of 'hda6' to 'hda1' in your configuration file and
all should be well. You are specifying how the dom-u deals with your
gentoo image file when making it into a drive. (what disk it becomes on
the dom-u side), this has absolutely nothing to do with dom-0.

In other words, this line :

disk = [ 'file:/home/poncho/gentoo/gentoo.2006-1.img,hda1,w' ]

Is telling the dom-u to mount that image as its own hda1.

root=/dev/hda1 ro is telling it that the newly created hda1 should also
be the root file system, initially read only (as any Linux system would
boot ..), then remount as read-write once init starts. 

I can't help you further with this issue unless you make these
corrections first :) Again, completely forget hda6.

You're also still missing a swap file system, which I really recommend
due to the amount of RAM you've allocated the dom-u or you'll be back
shortly wondering about malloc() error messages ;)

Thanks
Tim


On Wed, 2006-07-05 at 09:48 +0930, Brian wrote:
> On Tue, Jul 04, 2006 at 09:44:37AM +0800, Tim Post wrote:
> > Are you certain that shoudn't be a 'sda' not 'hda' ?  (Are you using
> > SATA drives?)
> > 
> > Try altering the line to read:
> > 
> > disk = [ 'file:/home/poncho/gentoo/gentoo.2006-0.img,sda1,w' ] 
> > 
> > And likewise edit :
> > 
> > root=/dev/hda6 ro to root=/dev/sda1 ro
> > 
> 
> Ok, the log now shows
> 
> tarting udevd
> Creating devices
> Loading xennet
> netfront: Initialising virtual ethernet driver.
> Loading xenblk
> Registering block device major 8
> Loading reiserfs
> Waiting for device /dev/sda6 to appear:  ok
> rootfs: major=8 minor=6 devn=2054
> Mounting root /dev/sda6
> mount: unknown filesystem type 'ext3'
> umount: /dev: device is busy
> umount: /dev: device is busy
> Kernel panic - not syncing: Attempted to kill init!
> 
> _____________________________________________
> 
> The vm1 config file is now 
> 
> disk = [ 'file:/home/poncho/gentoo/gentoo.2006-0.img,sda6,w' ]
> memory = 256
> vcpus = 1
> builder = 'linux'
> name = 'vm1'
> vif = [ 'mac=00:16:3e:01:fa:c9' ]
> localtime = 0
> on_poweroff = 'destroy'
> on_reboot = 'restart'
> on_crash = 'restart'
> extra = 'TERM=xterm'
> kernel = "/boot/vmlinuz-xen"
> ramdisk = "/boot/initrd-xen"
> root = "/dev/sda6 ro"
> 
> ______________________________________
> 
> According to df -h the home partition is hda7. When I change the line
> disk = [ 'file:/home/poncho/gentoo/gentoo.2006-0.img,sda7,w' ]
> the system reverts to the old problem .....waiting for hda6 to appear.
> 
> Brian
> - 
> Powered by Suse Linux 9.2
> 
> 
> _______________________________________________
> Xen-users mailing list
> Xen-users@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-users
> 
> 


_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users