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

[Xen-users] Mounting NetBSD domU file-based volumes in linux dom0


  • To: xen-users <xen-users@xxxxxxxxxxxxxxxxxxx>
  • From: "Henning Sprang" <henning_sprang@xxxxxx>
  • Date: Thu, 14 Dec 2006 23:32:13 +0100
  • Delivery-date: Thu, 14 Dec 2006 14:32:21 -0800
  • Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:sender:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition:x-google-sender-auth; b=T0hjoK+CAYqcJ0ekQzykAm845DF0yF5xnYu55+6PREyTsBUIR22dTtVEzx3xh0MisVqGNr0gJnFCzp2f0vSeEMJalCGvPfW1E1VX6mKTy66nvnjaUD3ev84uUWZpJmrGxh0jbz0ozYtOVd7Znx1lqKmmvaL9f3U/971IILpyYrc=
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

Hi,
I installed a netbsd domU on a linux dom0, which was really easy with
the information from http://www.netbsd.org/Ports/xen/howto.html,
http://wiki.xensource.com/xenwiki/NetBSDdomU and
http://lists.xensource.com/archives/html/xen-users/2006-02/msg00245.html

But, as opposed to the usual process when manually installing a Linux
domU, I don't get NetBSD to create it's filesystem directly in the
block device as if it's a partition - it uses the block device as a
whole disk and creates it's own partitions/slices in there.

When trying to mount this disk in the dom0 system with lomount, I get this:

filet:/var/xen/domains/netbsd-test# lomount -t ufs -diskimage disk.img
-partition 1 imagemount/
Partition 1 was not found in disk.img.

When trying to use kpartx, I also have no success:

filet:/var/xen/domains/netbsd-test# losetup -f
/dev/loop0
filet:/var/xen/domains/netbsd-test# losetup /dev/loop0 disk.img
filet:/var/xen/domains/netbsd-test# kpartx -av /dev/loop0
filet:/var/xen/domains/netbsd-test# ls /dev/lo
log    loop/  loop0  loop1  loop2  loop3  loop4  loop5  loop6  loop7

I checked the obvious that the Dom0 Kernel has BSD Disklabel support -
it's compiled in by default on Debian:

CONFIG_BSD_DISKLABEL=y

Either kpartx and lomount can only handle Linux partitions, or I am
missing something.

Henning

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