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] uml -> xen SOLVED

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-users] uml -> xen SOLVED
From: Dévai Tamás <Devai.Tamas@xxxxxxxxxx>
Date: Fri, 21 Jul 2006 08:26:46 +0200
Delivery-date: Fri, 21 Jul 2006 01:50:54 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Priority: normal
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
>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

<Prev in Thread] Current Thread [Next in Thread>
  • Re: [Xen-users] uml -> xen SOLVED, Dévai Tamás <=