Ferreira, N. L. (Nuno)
2009-Jan-22 13:01 UTC
[Xen-users] virt-install - how to mount the domU device?
Dear * After my last e-mail about self-containing a xen guest (i.e. with xen aware kernel inside the domU) and Fajar''s answer, I tryed to create a domU using virt-install (no swap for now, only one ext3 partition mounted on /). I installed domU OS on a dom0 LVM logical volume on VG vgxen. LV was prepared like this : lvcreate --size=10GB --name=vm1 vgxen (did not do a mkfs.ext3 /dev/vgxen/vm1, since its going to be formatted by virt-install) I''m able to start the new domU without apparent problems. My question is: How can I mount this new domU such that I can tweak it a bit for my needs? I did tried the follwoing: After having a "xm shutdown vm1" I tried to mount it with mount /dev/vgxen/vm1 /mnt/vgxen mount: you must specify the filesystem type This is of course due to the fact that virt-install formats the LV. Even if I try to mount with mount /dev/vgxen/vm1 /mnt/vgxen -t ext3 I get the same error. Cheers, Nuno _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Fajar A. Nugraha
2009-Jan-22 13:15 UTC
Re: [Xen-users] virt-install - how to mount the domU device?
On Thu, Jan 22, 2009 at 8:01 PM, Ferreira, N. L. (Nuno) <n.l.ferreira@uu.nl> wrote:> I tryed to create a domU using virt-install (no swap for now, only one ext3 > partition mounted on /).> Even if I try to mount with > > mount /dev/vgxen/vm1 /mnt/vgxen -t ext3I assume you use only one PARTITION on domU (i.e NO lvm on domU side)? If so, then try this : - kpartx -av /dev/vgxen/vm1 - mount /dev/mapper/vm1p1 /mnt/vgxen (or something similar located on /dev/mapper) - after you unmount it, don''t forget to run kpartx -dv /dev/vgxen/vm1 Regards, Fajar _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Ferreira, N. L. (Nuno)
2009-Jan-22 13:30 UTC
Re: [Xen-users] virt-install - how to mount the domU device?
Ah. I did not knew this command! It works Fajar. Best, Nuno> I assume you use only one PARTITION on domU (i.e NO lvm on domU side)? > If so, then try this : > > - kpartx -av /dev/vgxen/vm1 > - mount /dev/mapper/vm1p1 /mnt/vgxen (or something similar located on > /dev/mapper) > - after you unmount it, don''t forget to run kpartx -dv /dev/vgxen/vm1 > > Regards, > > Fajar >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users