Bug 863138 - rhevm-cli disks/nics examples
Summary: rhevm-cli disks/nics examples
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: Documentation
Version: 3.1.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Dan Macpherson
QA Contact: ecs-bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-10-04 14:11 UTC by Brian J. Atkisson
Modified: 2019-04-28 09:23 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Instance Name: Not Defined Build: CSProcessor Builder Version 1.5 Build Filter: null Build Name: Build Date: 03-08-2012 11:59:56
Last Closed: 2012-10-11 06:23:47 UTC
oVirt Team: ---
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Brian J. Atkisson 2012-10-04 14:11:45 UTC
Description of problem:

Please provide working examples of adding NICs and disks to a vm. https://access.redhat.com/knowledge/docs/en-US/Red_Hat_Enterprise_Virtualization/3.1-Beta/html-single/CLI_Guide/index.html#Create_a_Sub-Resource_create_--RESOURCE-identifier gives some basic syntax, but it doesn't actually work:

[RHEVM shell (connected)]# create nic vm  --vm-identifier vm_name --network-name ldap --interface eth0 --mac 00:00:01:1a:2d:3a 
error: syntax error

Not sure what I'm doing wrong, but working examples would be very helpful.


Version-Release number of selected component (if applicable):
rhevm-cli-3.1.0.7-1.el6ev.noarch

How reproducible:


Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 Dan Macpherson 2012-10-11 06:23:47 UTC
Hi Brian,

I had a look at the issue and there are two things to note:

1. The "create" command was recently changed to "add". Likewise, I've changed the docs to use "add". Also

2. If you look at Example 5.23...

> Example 5.23. Creating a new network interface on a virtual machine
> 
> [RHEVM shell (connected)]# add nic --vm-identifier MyVM1 --name eth0 --network MyNetwork

... you can see the syntax used is different to yours (replaced "create" with "add" as per note 1 above)...

> [RHEVM shell (connected)]# add nic vm  --vm-identifier vm_name (etc, etc)

Note that the command syntax is "add nic" not "add nic vm". To target a vm, you use the "--vm-identifier" parameter and replace the vm_name with your VM.

I tested out the correct syntax and it seems to work for me.

I'm closing this as NOTABUG, but if anyone feels it should be reopened please feel free to do so.


Note You need to log in before you can comment on or make changes to this bug.