Skip to content

Instantly share code, notes, and snippets.

@gowatana
Created December 7, 2018 12:10
Show Gist options
  • Save gowatana/ee4af1b919d6331373c52f3e56d4cb1c to your computer and use it in GitHub Desktop.
Save gowatana/ee4af1b919d6331373c52f3e56d4cb1c to your computer and use it in GitHub Desktop.
Nutanix AHV での、ユーザ VM の vDisk 接続。
<?xml version="1.0"?>
<disk type="network" device="lun">
<driver name="qemu" type="raw" cache="none" error_policy="report" io="native"/>
<source protocol="iscsi" name="iqn.2010-06.com.nutanix:vmdisk-5f37574d-326a-40b0-8824-c14d727f6974/0">
<host name="127.0.0.1" port="3261"/>
</source>
<backingStore/>
<target dev="sda" bus="scsi"/>
<boot order="2"/>
<alias name="scsi0-0-0-0"/>
<address type="drive" controller="0" bus="0" target="0" unit="0"/>
</disk>
@gowatana
Copy link
Author

gowatana commented Dec 7, 2018

下記のようなコマンドラインで取得。cdrom は除外している。

CVM$ virsh dumpxml 3 | xmllint --xpath "//disk[@device!='cdrom']" - | xmllint --format -

@gowatana
Copy link
Author

gowatana commented Dec 7, 2018

下記の投稿むけ。

Nutanix AHV でのユーザ VM の vDisk 接続の様子。
http://blog.ntnx.jp/entry/2018/12/07/214622

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment