12 Aug 23:05
[PATCH] virt-install cli options for managed storage
From: Cole Robinson <crobinso@...>
Subject: [PATCH] virt-install cli options for managed storage
Newsgroups: gmane.linux.redhat.et-mgmt-tools
Date: 2008-08-12 21:06:38 GMT
Subject: [PATCH] virt-install cli options for managed storage
Newsgroups: gmane.linux.redhat.et-mgmt-tools
Date: 2008-08-12 21:06:38 GMT
Per Dan's advice, I've changed the previously proposed virt-install cli options for specifying libvirt managed storage. This patch does not change any possible semantics of --file or --cdrom: they remain strictly for specifying local media. In this way they are basically deprecated. A new cli option is added: --disk. The format is: --disk path:///some/file/path[:device=cdrom|floppy][:permissions=ro|sh] --disk vol:///poolname/volname[:device=cdrom|floppy][:permissions=ro|sh] --disk pool:///poolname[:device=cdrom|floppy][:permissions=ro|sh] The changes from Dan's proposal are: - use of path:/// instead of file:///, since this will hopefully clear up any confusion users previously had with specifying block devices. - For vol:///, I used / as a delimiter vs. ':' between the pool and vol name, to avoid any extra collisions (since I assume '/' is not part of a legal pool name). - Explictly list what type of extra option we are appending (device, permissions). This adds clarity to the command line, reduces chance of name collision, and is similar to the approach used by qemu. The --disk option is quite useful even for the local case, since users can now add cdrom and floppy drives (and eventually other device types) via the cli. This could also be expanded(Continue reading)
RSS Feed