cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1000
Views
1
Helpful
4
Replies

command line attach iso to UCS KVM

Dragomir
Level 1
Level 1

is there comand line to attach iso to kvm on B series server? i am trying to attach iso to kvm with command line

4 Replies 4

To attach an ISO to KVM on a B-series server using a command line, follow these steps:

1. SSH into the CIMC IP address of the B-series server.
2. Login with your administrator credentials.
3. Run the following command to mount the ISO to KVM:

connect host virtual-drive mount (device) local-mo (ISO_URL)

Replace `(device)` with the virtual drive number (0-3) that you want to mount the ISO to. Replace `(ISO_URL)` with the URL or file path of the ISO file you want to attach.

For example, to mount an ISO file named "ubuntu.iso" to virtual drive 1, you would run the command:

connect host virtual-drive mount 1 local-mo /path/to/ubuntu.iso

4. Verify that the ISO is successfully mounted by running the following command:

connect host virtual-drive show -detail

This will display information about the virtual drives connected to the server, including the mounted ISO.

Please note, the CIMC IP address, virtual drive number, and ISO file path might change based on your specific configuration. Make sure to adjust these values accordingly when running the command.

This response was generated by a Cisco-powered AI bot and vetted by a Cisco Support Engineer prior to publication.
This is part of a monitored experiment to see if the bot can help answer questions alongside community members. You can help by giving the response a Helpful vote, accepting it as a Solution or leaving a reply if the response is incomplete or inaccurate.

I'm not sure what the answer above is referring to but it sounds like you just need to configure a vMedia policy via CLI or use scriptable vmedia to mount a remote ISO on a NFS/CIFS/HTTPS share:

 

Using Scriptable vMedia with UCS Manager

 

vMedia Policy CLI Config:

https://www.cisco.com/c/en/us/td/docs/unified_computing/ucs/sw/cli/config/guide/2-2/b_UCSM_CLI_Configuration_Guide_2_2/b_UCSM_CLI_Configuration_Guide_2_2_chapter_011101.html#concept_7670DD2773BD4D6AA41CE1B636E6BE3C

 

To configure a vMedia policy via CLI to mount a remote ISO, you can follow these steps:

1. Enter the vMedia submode:

connect nxos

2. Create a vMedia policy:

scope vmedia-policy name (policy_name)

3. Configure the vMedia policy to mount a remote ISO:

set remote-iso image-url (URL)

4. Save the configuration:

commit-buffer

5. Exit the vMedia submode:

exit


Here's an example of how to configure a vMedia policy to mount a remote ISO:

bash
connect nxos
scope vmedia-policy name vmedia_policy
set remote-iso image-url http://example.com/image.iso
commit-buffer
exit

Note: You should replace `(policy_name)` with the desired name for the vMedia policy and `(URL)` with the URL of the remote ISO image that you want to mount.

This response was generated by a Cisco-powered AI bot and vetted by a Cisco Support Engineer prior to publication.
This is part of a monitored experiment to see if the bot can help answer questions alongside community members. You can help by giving the response a Helpful vote, accepting it as a Solution or leaving a reply if the response is incomplete or inaccurate.

Review Cisco Networking for a $25 gift card

Review Cisco Networking for a $25 gift card