`<font face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size="2"><div style="font-family: Verdana, Arial, Helvetica, sans-serif;"><br></div><br><font color="#990099" style="font-family: Verdana, Arial, Helvetica, sans-serif;">-----"Jonathan Adams via illumos-developer" <developer@lists.illumos.org> skrev: -----</font><div class="iNotesHistory" style="padding-left: 5px;"><div style="padding-right: 0px; padding-left: 5px; border-left-style: solid; border-left-color: black; border-left-width: 2px;"><font face="Verdana, Arial, Helvetica, sans-serif">Till: Saso Kiselkov <skiselkov.ml@gmail.com></font><br><font face="Verdana, Arial, Helvetica, sans-serif">Från: "Jonathan Adams via illumos-developer" <developer@lists.illumos.org></font><br><font face="Verdana, Arial, Helvetica, sans-serif">Datum: 2014-06-27 15:49</font><br><font face="Verdana, Arial, Helvetica, sans-serif">Kopia: Johan Kragsterman <johan.kragsterman@capvert.se>, illumos-dev <developer@lists.illumos.org></font><br><font face="Verdana, Arial, Helvetica, sans-serif">Ärende: Re: [developer] Vbf: KVM on a LU?</font><br><br><div dir="ltr" style="font-family: Verdana, Arial, Helvetica, sans-serif;">the contents of my "run-ubuntu.sh" on one of my OI servers, using a zvol.<br><div><br>MAC=$(dladm show-vnic -po macaddress kvmvnic1)<br>/usr/bin/qemu-kvm \<br> -boot order=c,menu=off \<br> -enable-kvm \<br> -vnc <a href="http://0.0.0.0:2">0.0.0.0:2</a> \<br> -smp 2 \<br> -m 512 \<br> -no-hpet \<br> -localtime \<br> -drive file=/dev/zvol/rdsk/datapool1/kvm/ubuntu/disk0,if=ide,index=0 \<br> -net nic,vlan=0,name=net0,model=e1000,macaddr=$MAC \<br> -net vnic,vlan=0,name=net0,ifname=kvmvnic1,macaddr=$MAC \<br> -vga std \<br> -k en-gb \<br> -usb -usbdevice tablet<br><br></div><div>hope this helps.<br></div></div><div class="gmail_extra" style="font-family: Verdana, Arial, Helvetica, sans-serif;"><br></div><div class="gmail_extra" style="font-family: Verdana, Arial, Helvetica, sans-serif;"><br></div><div class="gmail_extra" style="font-family: Verdana, Arial, Helvetica, sans-serif;"><br></div><div class="gmail_extra" style="font-family: Verdana, Arial, Helvetica, sans-serif;"><br></div><div class="gmail_extra" style="font-family: Verdana, Arial, Helvetica, sans-serif;"><br></div><div class="gmail_extra" style="font-family: Verdana, Arial, Helvetica, sans-serif;">Thanks, Jonathan!</div><div class="gmail_extra" style="font-family: Verdana, Arial, Helvetica, sans-serif;"><br></div><div class="gmail_extra" style="font-family: Verdana, Arial, Helvetica, sans-serif;">Yeah, this is the way I do it as well on a normal local volume created in zfs, except I use virtio instead of ide as if.</div><div class="gmail_extra" style="font-family: Verdana, Arial, Helvetica, sans-serif;"><br></div><div class="gmail_extra" style="font-family: Verdana, Arial, Helvetica, sans-serif;">Well, I guess this might work on a LUN as well. Got to try, haven't tried it yet.</div><div class="gmail_extra" style="font-family: Verdana, Arial, Helvetica, sans-serif;"><br></div><div class="gmail_extra" style="font-family: Verdana, Arial, Helvetica, sans-serif;">Though I would very much like to be able to pass scsi cmd directly from the VM to the device, but I guess that needs the presence of a scsi pass through driver in KVM, and I don't know if that excists in illumos KVM. Though it looks like that when I look at github, on the link I provided earlier.</div><div class="gmail_extra" style="font-family: Verdana, Arial, Helvetica, sans-serif;"><br></div><div class="gmail_extra" style="font-family: Verdana, Arial, Helvetica, sans-serif;"> Here it comes again:</div><div class="gmail_extra" style="font-family: Verdana, Arial, Helvetica, sans-serif;"><br></div><div class="gmail_extra"><font face="Verdana, Arial, Helvetica, sans-serif">https://github.com/joyent/illumos-kvm-cmd/blob/master/hw/virtio-blk.h</font></div><div class="gmail_extra" style="font-family: Verdana, Arial, Helvetica, sans-serif;"><br></div><div class="gmail_extra" style="font-family: Verdana, Arial, Helvetica, sans-serif;">I guess most of you know that this excists in libvirt, that isn't included in illumos KVM. But according to the github link, it sure looks like it is...?</div><div class="gmail_extra" style="font-family: Verdana, Arial, Helvetica, sans-serif;"><br></div><div class="gmail_extra" style="font-family: Verdana, Arial, Helvetica, sans-serif;">Hope someone that knows something about this can provide some info...</div><div class="gmail_extra" style="font-family: Verdana, Arial, Helvetica, sans-serif;"><br></div><div class="gmail_extra" style="font-family: Verdana, Arial, Helvetica, sans-serif;"><br></div><div class="gmail_extra" style="font-family: Verdana, Arial, Helvetica, sans-serif;">Rgrds Johan</div><div class="gmail_extra" style="font-family: Verdana, Arial, Helvetica, sans-serif;"><br></div><div class="gmail_extra" style="font-family: Verdana, Arial, Helvetica, sans-serif;"><br></div><div class="gmail_extra" style="font-family: Verdana, Arial, Helvetica, sans-serif;"><br></div><div class="gmail_extra" style="font-family: Verdana, Arial, Helvetica, sans-serif;"><br></div><div class="gmail_extra" style="font-family: Verdana, Arial, Helvetica, sans-serif;"><br><br><div class="gmail_quote">On 27 June 2014 14:26, Saso Kiselkov via illumos-developer <span dir="ltr"><<a href="mailto:developer@lists.illumos.org" target="_blank">developer@lists.illumos.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="">On 6/27/14, 3:19 PM, Johan Kragsterman wrote:<br> > Hi!<br> ><br> > I try again, perhaps I was not clear enough...?<br> ><br> > What I'm talking about, is the illumos KVM port, that I use, and try to get an access from an illumos KVM virtual machine to a scsi LU provided by a fibre channel SAN.<br><br></div>Ah, that sounds more like a KVM-specific thing. You best ask around on<br> the SmartOS mailing lists, they're the guys who did the KVM porting<br> work. Vanilla Illumos actually does not include KVM, it's only the<br> downstream distros like SmartOS, OmniOS and OpenIndiana that integrated<br> that patchset, so I can't really help you with that.<br><br> Cheers,<br><span class="HOEnZb"><font color="#888888">--<br> Saso<br></font></span><div class="HOEnZb"><div class="h5"><br><br> -------------------------------------------<br> illumos-developer<br> Archives: <a href="https://www.listbox.com/member/archive/182179/=now" target="_blank">https://www.listbox.com/member/archive/182179/=now</a><br> RSS Feed: <a href="https://www.listbox.com/member/archive/rss/182179/21283363-66d62e51" target="_blank">https://www.listbox.com/member/archive/rss/182179/21283363-66d62e51</a><br> Modify Your Subscription: <a href="https://www.listbox.com/member/?&" target="_blank">https://www.listbox.com/member/?&</a><br> Powered by Listbox: <a href="http://www.listbox.com" target="_blank">http://www.listbox.com</a><br></div></div></blockquote></div><br></div><div bgcolor="#ffffff" style="font-family: Verdana, Arial, Helvetica, sans-serif; width: auto; margin: 0px; padding: 5px; clear: both; border-top-width: 1px; border-top-style: solid; border-top-color: rgb(204, 204, 204); background-color: rgb(255, 255, 255);"><table bgcolor="#ffffff" border="0" cellpadding="0" cellspacing="0" style="background-color:#fff" width="100%"><tbody><tr><td padding="4px"><font color="#333333" size="1" style="font-family:helvetica, sans-serif;"> <strong>illumos-developer</strong> | <a href="https://www.listbox.com/member/archive/182179/=now" style="text-decoration: none; border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: rgb(68, 68, 68);" title="Go to archives for illumos-developer"><font color="#669933">Archives</font></a> <a border="0" href="https://www.listbox.com/member/archive/rss/182179/23755348-1998767f" style="text-decoration: none;" title="RSS feed for illumos-developer"><font color="#669933"><img border="0" src="http://postlink.www.listbox.com/1735313/833487e62783d55fe81f119fb93ef644/23755348/4c23191f.jpg?uri=aHR0cHM6Ly93d3cubGlzdGJveC5jb20vaW1hZ2VzL2ZlZWQtaWNvbi0xMHgxMC5qcGc"></font></a> | <a href="https://www.listbox.com/member/?member_id=23755348&id_secret=23755348-0bb51dcb" style="text-decoration: none; border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: rgb(68, 68, 68);" title=""><font color="#669933">Modify</font></a> Your Subscription</font></td><td align="right" valign="top"><a href="http://www.listbox.com" style="border-bottom:none;"> <img border="0" src="http://postlink.www.listbox.com/1735314/3379085af0f1cf7fc3708f04b4471ae2/23755348/4c23191f.png?uri=aHR0cHM6Ly93d3cubGlzdGJveC5jb20vaW1hZ2VzL2xpc3Rib3gtbG9nby1zbWFsbC5wbmc" title="Powered by Listbox"></a></td></tr></tbody></table></div></div></div><div></div></font>
`