Ian,

Thanks. I created a zvol on the other pool and connected it up to the Windows 
Server 2012 R2 vm.

Just for reference:

{
    "add_disks":    [
      {
        "media":    "disk",
        "model":    "virtio",
        "size":        65536,
        "nocreate":    true,
        "boot":        false,
        "path":        "/dev/zvol/rdsk/fastpool/smbtest1"
      }
    ]
}

Next problem is how to create an internal network for use by the kvm vm's but 
which has no internet access. I know its something that can be done in Hyper-V 
and VMware.

Sean Weatherall
________________________________
From: Ian Collins [[email protected]]
Sent: 24 January 2017 03:25
To: [email protected]
Subject: Re: [smartos-discuss] Use zvol / dataset from GZ in KVM vm

On 24/01/17 12:38 PM, TRITONIA SOLUTIONS LIMITED wrote:
Hi,

Is it possible to have a zvol or dataset from the global zone accessible within 
a KVM virtual machine. I was hoping to setup the new zvol / dataset on a 
different zpool (not zones). I've read some discussions about using lofs but 
that seems to only work with LX or SmartOS zones.

Are you looking to add volume raw (not possible) or as a virtual disk?

If the latter, you can create the volume on another pool and just add it as a 
disk in the machine's JSON with nocreate set true (if creating) or add it to an 
existing machine.

Cheers,

Ian.

smartos-discuss | Archives<https://www.listbox.com/member/archive/184463/=now> 
[https://www.listbox.com/images/feed-icon-10x10.jpg31e6b2b.jpg?uri=aHR0cHM6Ly93d3cubGlzdGJveC5jb20vaW1hZ2VzL2ZlZWQtaWNvbi0xMHgxMC5qcGc]
 <https://www.listbox.com/member/archive/rss/184463/28043872-e46a94d7>  | 
Modify<https://www.listbox.com/member/?&;> Your Subscription       
[https://www.listbox.com/images/listbox-logo-small.png31e6b2b.png?uri=aHR0cHM6Ly93d3cubGlzdGJveC5jb20vaW1hZ2VzL2xpc3Rib3gtbG9nby1zbWFsbC5wbmc]
 <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

Reply via email to