Alain Barthe
2009-Feb-08 15:37 UTC
[Xen-users] vbdmount: a script to mount/umount virtual disks
Hello xen users,
I wrote a script to mount/umount virtual disks. It sets up needed parttions
and/or LVM,
looks for a fstab inside the virtual disks and then mounts partitions
according to it.
It is useful to modify a domU (fix configuration, install packages, ...)
while it is off.
It can be found at http://www.albar.fr/downloads/vbdmount.py
The documentation is at http://www.albar.fr/vbdmount_html/index.html
Here is the usage:
Usages:
vbdmount.py [-v] [-o mount-opts] { -f config-file | -b block-device
}[:path-to-mount] mount-point''
vbdmount.py [-v] -u mount-point
Mounts one or more virtual block devices, expressed either as a string (flag
-b) or as a domU configuration file (flag -f).
options:
-h, --help show this help message and exit
-o MOUNTOPTS, --mount-options=MOUNTOPTS
Options to be passed to the mount command
-f CONFIGFILE, --domu-config-file=CONFIGFILE
A domU configuration file
-b VBD, --block-device=VBD
A virtual block device path (file or LV or raw
device)
-u, --umount Unmounts the mounted virtual block device
-v, --verbose Prints a verbose output
Any feedback will be appreciated, particularly for non standard
configuration that does not work.
Enjoy.
Alain.
_______________________________________________
Xen-users mailing list
Xen-users@lists.xensource.com
http://lists.xensource.com/xen-users