FAQ Search Today's Posts Mark Forums Read

» Linux Archive
Home
New Posts
Search
FAQ


Go Back   Linux Archive > Redhat > Fedora/Linux Management Tools

 
 
LinkBack Thread Tools
 
Old 08-06-2008, 05:26 PM
Cole Robinson
 
Default update virt-install options for specifying managed storage

The attached patch updates virt-install to allow specifying
libvirt managed storage.

--file can specified managed storage using:

- An absolute path to a managed volume
- A volume passed as --file volumeoolname:volname
- A pool to create storage on, using --file pooloolname

--cdrom can use the first of the above two options (doesn't
make sense to create install media).

There is an obvious problem with this approach though:
Specifying pool:foo or volume:foo:bar could collide
with existing file names, and volume:foo:bar would
fail if the specified pool had a colon in it. This
was mostly my quick solution so I could test it all
out, i'm open to suggestions how to change it. Once an
interface is decided on I'll update the docs.

This is built on the patch to remove prompting from
virt-install, fyi.

Thanks,
Cole

_______________________________________________
et-mgmt-tools mailing list
et-mgmt-tools@redhat.com
https://www.redhat.com/mailman/listinfo/et-mgmt-tools
 
Old 08-07-2008, 11:31 AM
"Daniel P. Berrange"
 
Default update virt-install options for specifying managed storage

On Wed, Aug 06, 2008 at 12:26:48PM -0400, Cole Robinson wrote:
> The attached patch updates virt-install to allow specifying
> libvirt managed storage.
>
> --file can specified managed storage using:
>
> - An absolute path to a managed volume
> - A volume passed as --file volumeoolname:volname
> - A pool to create storage on, using --file pooloolname
>
> --cdrom can use the first of the above two options (doesn't
> make sense to create install media).
>
> There is an obvious problem with this approach though:
> Specifying pool:foo or volume:foo:bar could collide
> with existing file names, and volume:foo:bar would
> fail if the specified pool had a colon in it. This
> was mostly my quick solution so I could test it all
> out, i'm open to suggestions how to change it. Once an
> interface is decided on I'll update the docs.

The other option would be to leave --file & --cdrom as they
already are, and instead use a more sensibly named option
like --disk. People are often confused thinging that can't
pass a block device to --file already.


The --cdrom arg also allows specifying a URI, in which case it
downloads the ISO image from the install tree for booting.

So I'd suggest using URI syntax

--disk file:///some/file/path[:cdrom|floppy][:ro|sh]
--disk vol:///poolname:volname[:cdrom|floppy][:ro|sh]
--disk pool:///poolname[:cdrom|floppy][:ro|sh]

So this defaults to creating a harddisk, writable, but lets you annotate
the arg to specify that its a cdrom, or floppy, and optionally readonly
or read-write shared. In the future I expect we'll have more disk types
like Flash, or USB massstorage, etc, so better to have a single --disk
arg, than adding --floppy --usbmsd, --flash etc.


Daniel
--
|: Red Hat, Engineering, London -o- http://people.redhat.com/berrange/ :|
|: http://libvirt.org -o- http://virt-manager.org -o- http://ovirt.org :|
|: http://autobuild.org -o- http://search.cpan.org/~danberr/ :|
|: GnuPG: 7D3B9505 -o- F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|

_______________________________________________
et-mgmt-tools mailing list
et-mgmt-tools@redhat.com
https://www.redhat.com/mailman/listinfo/et-mgmt-tools
 

Thread Tools




All times are GMT. The time now is 11:16 AM.

VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org