Port-xen archive

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

Re: NetBSD vs Linux



On 28/10/2009 9:41 AM, Sarton O'Brien wrote:
For me, the best course of action is to use the debian installer kernel
(http://wiki.debian.org/Xen#DomU.28guest.29) and go through the setup to
obtain the latest bits and pieces. Depending on how I update, I'll
probably obtain a later kernel version.

I just downloaded the latest xm-debian.cfg, added:

vif = [ 'bridge=bridge0' ]
disk = [ 'file:/usr/pkg/etc/xen/debian-tmp.img,hda,w' ]

then issued:

xm create debianinstall -c install=true install-mirror=http://ftp.au.debian.org/debian install-installer=http://people.debian.org/~joeyh/d-i/images/daily/

And everything worked/installed perfectly.

Afterward I mounted the debian-tmp.img and copied out:

/boot/vmlinuz-2.6.30-2-686-bigmem
/boot/initrd.img-2.6.30-2-686-bigmem

Then after unmounting and detaching the vnd I booted the domU using this config:

kernel = "/vmlinuz-2.6.30-2-686-bigmem"
ramdisk = "/initrd.img-2.6.30-2-686-bigmem"
memory = 256
name = "debian"
disk = [ 'file:/usr/pkg/etc/xen/debian-tmp.img,xvda,w' ]
vif = [ 'bridge=bridge0'  ]
root = "/dev/xvda1 ro"
extra = "xencons=tty1"

And am now running:

Linux debian 2.6.30-2-686-bigmem #1 SMP Sat Sep 26 02:30:18 UTC 2009 i686 GNU/Linux

under:

NetBSD gogeta.internal 5.99.21 NetBSD 5.99.21 (XEN3_DOM0) #14: Mon Oct 26 23:44:02 EST 2009 root%spike.internal@localhost:/usr/obj/sys/arch/amd64/compile/XEN3_DOM0 amd64

I'm not sure if all the hda references need to be xvda but it wasn't booting until I made that change.

HTH.

Sarton


Home | Main Index | Thread Index | Old Index