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] Howto access the guest filesystem under LVM ?

To: Goran Vukoman <xen-list@xxxxxxxx>, xen-users@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-users] Howto access the guest filesystem under LVM ?
From: Pascal <ml@xxxxxxxxxxxxxxxxx>
Date: Sun, 17 Jun 2007 21:25:49 +0200
Delivery-date: Sun, 17 Jun 2007 12:23:59 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <1182107531.16245.5.camel@goofy>
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>
References: <46757AD6.7090905@xxxxxxxxxxxxxxxxx> <20070617183746.GB5893@kufelek> <467585A9.2000700@xxxxxxxxxxxxxxxxx> <1182107531.16245.5.camel@goofy>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 2.0.0.4 (Windows/20070604)

Hi

It's not an image file !

Here is the xen config file

# Automatically generated xen config file
name = "centos45"
memory = "1024"
disk = [ 'phy:/dev/xenvps/centos45,xvda,w', ]
vif = [ 'mac=00:16:3e:1b:9b:36, bridge=xenbr0', ]

uuid = "cd39e4ad-a993-4e2e-fef0-4dcb6d3d862b"
bootloader="/usr/bin/pygrub"
vcpus=1
on_reboot   = 'restart'
on_crash    = 'restart'


What I want is mounted the phy:/dev/xenvps/centos45 in dom0 to be able to copy all the domU (/proc /dev /bin etc)

pascal

Goran Vukoman a écrit :
I don't know virt-install but maybe the file is partitioned? Check this
with

fdisk -l -u my-image.img

and check the start sector of desired partition. Then mount with

mount -o loop,offset=XXXXX my-image.img /mnt

XXXXX = number of start sector multiplied with 512
e.g. start sector = 63 -> XXXXX = 63 * 512 = 32256

Goran

Am Sonntag, den 17.06.2007, 21:04 +0200 schrieb Pascal:
  
I have created a guest using virt-install.
On the dom0 we have created a LogicalVolume and used it to install the guest

We need to copy all the contents of the guest, so we'd like to access 
the guest filesystem from dom0

Tried something like :
mount -o loop /dev/xenvps/mylv /mnt

But it doesn't work
    
        
Omit "-o loop". /dev/xenvps/mylv is a (symlink-to) a real block device
file, so there's no need for loop.

Keep in mind that having it mounted R/W in guest and R/W or R/O in dom0
at the same time is asking for trouble.

  
      
It doesn't work

# mount /dev/mapper/xenvps-centos45 /mnt/
mount: you must specify the filesystem type

Pascal
_______________________________________________
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