There is no supported way as far as I know, as Garret already mentioned using it from inside the vm is probably easier.
However you can use /opt/custom/smf to load a script at boot in the global zone that could in theory act as a initiator. (Unless joyent has stripped those bits, I have no setup to test this with) You can then use zonecfg to update the device to point to the block devices that got added over iscsi. So it's theoretically possible, but it's like turning as car into a plane. It may fly, but it is more likely to drop like a brick. Regards Jorge On 2016-08-26 17:54, 龙白滔 wrote: > Yes, it would work in this way. The situation is that the iSCSI service is > available only on admin network (for security consideration) in our setting, > and can be accessed only from GZ. > ------------------------- > > 发件人: Garrett D'Amore <[email protected]> > 发送时间: 2016年8月26日 22:51:50 > 收件人: [email protected] > 主题: Re: [smartos-discuss] using dedicated disk device as KVM VM's additional > disks > > wouldnt it be easier to just mount the iscsi disk directly from within the > guest for this? assuming your guest has an iscsi initiator. > > Sent from my iPhone > > On Aug 26, 2016, at 7:27 AM, 龙白滔 <[email protected]> wrote: > >> hi, >> >> We' d like our KVM VMs to use iSCSI storage directly, say mapping an iSCSI >> target to a local device and dedicating it to a KVM VM as a secondary disk. >> How can we achieve so using SmartOS vmadm? >> >> Appreciate your kind help. >> >> Baitao from China > > SMARTOS-DISCUSS | Archives [1] [2] | Modify [3] Your Subscription > [4] Links: ------ [1] https://www.listbox.com/member/archive/184463/=now [2] https://www.listbox.com/member/archive/rss/184463/26452851-88b650c7 [3] https://www.listbox.com/member/?& [4] http://www.listbox.com ------------------------------------------- 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
