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

Re: [Xen-users] uml -> xen SOLVED



>On Mon, Jul 17, 2006 at 03:37:02PM -0700, fess wrote:
> 
> > >I have some debian uml images and I have to convert to xen 
> compatible 
> > >image.
> > >Or please help me how can I reconfigure the debian uml images to 
> work 
> > >with Xen 3.0.2.
> > 
> > Aren't uml images just file system images?
> > 
> > I wouldn't think you needed to convert them at all,  Just follow 
> xen's> instructions for booting of a filesystem in a file.
> 
>  You'll need to do some conversion for the device names in the
> image are different.
> 
>  e.g /etc/fstab on a UML host will use /dev/ubd/0 for the first
> disk, rather than /dev/{hda sda}.
> 
>  I don't have a list to hand, but it should be just a case of
> trial an error to update things like the fstab file, /etc/inittab,
> etc.
> 
> Steve
> -- 
> 

I did that:
mount -o loop /uml/bin /mnt/somewhere on the dom0
fix the fstab /dev/udba ->/dev/hda
/dev/udba       /               ext3    auto       0       1
/dev/hda       /               ext3    auto       0       1

fix the /etc/network/interfaces include only that:
# The loopback interface
auto lo
iface lo inet loopback

umount /mnt/somewhere

and then I wrote the domU config to /etc/xen/foo
# general
name    = "foo";
memory  = 512;

# booting
kernel  = "/boot/vmlinuz-2.6.16.18-xenU";
extra = "udev";

# virtual harddisk
disk = [ "file:/uml/bin,hda,w"];
root = "/dev/hda ro";

# network
nics=1
dhcp ="off"
ip="192.168.0.54"
netmask="255.255.255.0"
gateway="192.168.0.1"
hostname="xen-uml"

after that
xm create /etc/xen/foo -c

-------------------
Starting periodic command scheduler: cron.
Starting web server: apache.

Debian GNU/Linux 3.1 valeta tty1

foo login:
---------------------

I became happy:-)



_______________________________________________
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®.