Skip to content

Instantly share code, notes, and snippets.

@gowatana
Created December 7, 2018 11:56
Show Gist options
  • Save gowatana/3ed5dec20ea550c117211dc03ac26d41 to your computer and use it in GitHub Desktop.
Save gowatana/3ed5dec20ea550c117211dc03ac26d41 to your computer and use it in GitHub Desktop.
Oracle Linux 7 KVM の vDisk
<?xml version="1.0"?>
<disk type="file" device="disk">
<driver name="qemu" type="qcow2"/>
<source file="/var/lib/libvirt/images/vm01.qcow2"/>
<backingStore/>
<target dev="vda" bus="virtio"/>
<alias name="virtio-disk0"/>
<address type="pci" domain="0x0000" bus="0x00" slot="0x07" function="0x0"/>
</disk>
@gowatana
Copy link
Author

gowatana commented Dec 7, 2018

コマンドは、

# virsh dumpxml 1 | xmllint --xpath "//disk" - | 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