[Users] ovirt cli - starting vm with special options

This is a multi-part message in MIME format. --------------010309070700010401030204 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit hi, to make it easier for me to play with VMs, I thought of using the ovirt cli to start a VM whenever I want to rebuild it, however, the CLI command below keeps failing - any pointers ? action vm start --vm-os-kernel /var/www/html/repo/centos/6/os/x86_64/images/pxeboot/vmlinuz --vm-os-initRd /var/www/html/repo/centos/6/os/x86_64/images/pxeboot/initrd.img --vm-os-boot "ks=http://172.30.0.1/ks/dev/solrm01-dev.ks ksdevice=eth0 ip=172.30.0.249 netmask=255.255.255.0" --host-identifier vm2 alex --------------010309070700010401030204 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit <html> <head> <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1"> </head> <body bgcolor="#FFFFFF" text="#000000"> <font size="-1"><font face="Tahoma">hi,<br> <br> to make it easier for me to play with VMs, I thought of using the ovirt cli to start a VM whenever I want to rebuild it, however, the CLI command below keeps failing - any pointers ? <br> <br> action vm start --vm-os-kernel /var/www/html/repo/centos/6/os/x86_64/images/pxeboot/vmlinuz --vm-os-initRd /var/www/html/repo/centos/6/os/x86_64/images/pxeboot/initrd.img --vm-os-boot "ks=<a class="moz-txt-link-freetext" href="http://172.30.0.1/ks/dev/solrm01-dev.ks">http://172.30.0.1/ks/dev/solrm01-dev.ks</a> ksdevice=eth0 ip=172.30.0.249 netmask=255.255.255.0" --host-identifier vm2<br> <br> <br> alex<br> <br> <br> </font></font> </body> </html> --------------010309070700010401030204--

Hi Alex, Your syntax is incorrect, 1. /action syntax is: 'action <type> <id> <action> [parent-object identifiers] [attribute options]' 2. to see detailed help for this action do: 'help action vm vm2 start' or 'help action' 3. in your case /action syntax should be: 'action vm vm2 start ...' 4. also --host-identifier option is not available in this action, please use auto-completion or /help to see available options, for more details, see [1] [1] http://wiki.ovirt.org/wiki/CLI On 11/06/2012 12:46 AM, Alex Leonhardt wrote:
hi,
to make it easier for me to play with VMs, I thought of using the ovirt cli to start a VM whenever I want to rebuild it, however, the CLI command below keeps failing - any pointers ?
action vm start --vm-os-kernel /var/www/html/repo/centos/6/os/x86_64/images/pxeboot/vmlinuz --vm-os-initRd /var/www/html/repo/centos/6/os/x86_64/images/pxeboot/initrd.img --vm-os-boot "ks=http://172.30.0.1/ks/dev/solrm01-dev.ks ksdevice=eth0 ip=172.30.0.249 netmask=255.255.255.0" --host-identifier vm2
alex
_______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
-- Michael Pasternak RedHat, ENG-Virtualization R&D

This is a multi-part message in MIME format. --------------010904030606010606020702 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit aha! sorry - found it :) .. it works now :) On 11/06/2012 07:10 AM, Michael Pasternak wrote:
Hi Alex,
Your syntax is incorrect,
1. /action syntax is: 'action<type> <id> <action> [parent-object identifiers] [attribute options]'
2. to see detailed help for this action do: 'help action vm vm2 start' or 'help action'
3. in your case /action syntax should be: 'action vm vm2 start ...'
4. also --host-identifier option is not available in this action, please use auto-completion or /help to see available options, for more details, see [1]
[1] http://wiki.ovirt.org/wiki/CLI
On 11/06/2012 12:46 AM, Alex Leonhardt wrote:
hi,
to make it easier for me to play with VMs, I thought of using the ovirt cli to start a VM whenever I want to rebuild it, however, the CLI command below keeps failing - any pointers ?
action vm start --vm-os-kernel /var/www/html/repo/centos/6/os/x86_64/images/pxeboot/vmlinuz --vm-os-initRd /var/www/html/repo/centos/6/os/x86_64/images/pxeboot/initrd.img --vm-os-boot "ks=http://172.30.0.1/ks/dev/solrm01-dev.ks ksdevice=eth0 ip=172.30.0.249 netmask=255.255.255.0" --host-identifier vm2
alex
_______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
--------------010904030606010606020702 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit <html> <head> <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type"> </head> <body bgcolor="#FFFFFF" text="#000000"> <font size="-1"><font face="Tahoma">aha! sorry - found it :) .. it works now :) <br> <br> <br> </font></font><br> On 11/06/2012 07:10 AM, Michael Pasternak wrote: <blockquote cite="mid:5098B7F7.1000809@redhat.com" type="cite"> <pre wrap=""> Hi Alex, Your syntax is incorrect, 1. /action syntax is: 'action <type> <id> <action> [parent-object identifiers] [attribute options]' 2. to see detailed help for this action do: 'help action vm vm2 start' or 'help action' 3. in your case /action syntax should be: 'action vm vm2 start ...' 4. also --host-identifier option is not available in this action, please use auto-completion or /help to see available options, for more details, see [1] [1] <a class="moz-txt-link-freetext" href="http://wiki.ovirt.org/wiki/CLI">http://wiki.ovirt.org/wiki/CLI</a> On 11/06/2012 12:46 AM, Alex Leonhardt wrote: </pre> <blockquote type="cite"> <pre wrap="">hi, to make it easier for me to play with VMs, I thought of using the ovirt cli to start a VM whenever I want to rebuild it, however, the CLI command below keeps failing - any pointers ? action vm start --vm-os-kernel /var/www/html/repo/centos/6/os/x86_64/images/pxeboot/vmlinuz --vm-os-initRd /var/www/html/repo/centos/6/os/x86_64/images/pxeboot/initrd.img --vm-os-boot "ks=<a class="moz-txt-link-freetext" href="http://172.30.0.1/ks/dev/solrm01-dev.ks">http://172.30.0.1/ks/dev/solrm01-dev.ks</a> ksdevice=eth0 ip=172.30.0.249 netmask=255.255.255.0" --host-identifier vm2 alex _______________________________________________ Users mailing list <a class="moz-txt-link-abbreviated" href="mailto:Users@ovirt.org">Users@ovirt.org</a> <a class="moz-txt-link-freetext" href="http://lists.ovirt.org/mailman/listinfo/users">http://lists.ovirt.org/mailman/listinfo/users</a> </pre> </blockquote> <pre wrap=""> </pre> </blockquote> </body> </html> --------------010904030606010606020702--
participants (2)
-
Alex Leonhardt
-
Michael Pasternak