I believe if you attempt to run vmadm update with a add_cdrom.json file
specified as shown in the example, it will tell you:

updates to disks are only allowed when state is "stopped", currently:
running (running)

For me that wasn't a problem because I was able to shut down the VM, make
the change and bring it back up again. If you can't do that, one option is
to just mount the iso within the KVM guest's OS. On Windows, there are
several free utilities to do that. And on Linux, you can just mount the iso
using normal mount commands.

Others much more knowledgeable than I may have a better idea...

On Mon, Feb 23, 2015 at 3:22 PM, Peter Kelm <peter.k...@peterkelm.com>
wrote:

> Mark,
>
> Not sure whether I understand this correctly:
>
> Can I just "vmadm update <<zone>>" with another "path" argument to load
> another CD? I don't want to remove/add the device, just the media loaded.
>
> Best regards,
>
> Peter
>
> Am 23.02.2015 um 21:14 schrieb Mark Creamer via smartos-discuss <
> smartos-disc...@lists.smartos.org>:
>
> I think if you check on the vmadm page
> https://wiki.smartos.org/display/DOC/Using+vmadm+to+manage+virtual+machines
> under the section on add and remove a disk, you'll be able to do it. Just
> below the section on disk is doing the same thing with a cdrom.
>
> On Mon, Feb 23, 2015 at 2:38 PM, Peter Kelm via smartos-discuss <
> smartos-disc...@lists.smartos.org> wrote:
>
>> All,
>>
>> What is the recommended way to "load/unload" ISO files that were
>> connected to a KVM zone at boot time?
>>
>> E.g. if I do the following:
>> vmadm start <<zone>> cdrom=/DVD.iso,ide
>>
>> In the above, how could I change to another ISO file while the VM is
>> running? I couldn't find anything in the vmadm man page...
>>
>> Best regards,
>>
>> Peter
>>
>> -------------------------------------------
>> smartos-discuss
>> Archives: https://www.listbox.com/member/archive/184463/=now
>> RSS Feed:
>> https://www.listbox.com/member/archive/rss/184463/23055384-4ad60763
>> Modify Your Subscription: https://www.listbox.com/member/?&;
>> Powered by Listbox: http://www.listbox.com
>>
>
>
>
> --
> Mark
> *smartos-discuss* | Archives
> <https://www.listbox.com/member/archive/184463/=now>
> <https://www.listbox.com/member/archive/rss/184463/25252853-72390e47> |
> Modify
> <https://www.listbox.com/member/?&;>
> Your Subscription <http://www.listbox.com/>
>
>
> *Kelm Engineering*
> Karl-Bröger-Str. 46
> 91074 Herzogenaurach
> Germany
> Tel:  +49 (9132) 745325
> Fax: +49 (9132) 9060596
> eMail: peter.k...@peterkelm.com
>
>
>
>
>
>


-- 
Mark



-------------------------------------------
smartos-discuss
Archives: https://www.listbox.com/member/archive/184463/=now
RSS Feed: https://www.listbox.com/member/archive/rss/184463/25769125-55cfbc00
Modify Your Subscription: 
https://www.listbox.com/member/?member_id=25769125&id_secret=25769125-7688e9fb
Powered by Listbox: http://www.listbox.com

Reply via email to