add disk problems for domain

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



hi,all

I use Java api `domain.attachDeviceFlags(xml, 0);` to add a disk for domain. the xml file like this:

 <disk type='file' device='disk'>
      <driver name='qemu' type='raw'/>
      <source file='/dev/sp1353486595267/v1353488096262'/>
      <target dev='vdb' bus='virtio'/>
    </disk>

then I use  command `virsh detach-disk $domain vdb` to remove the disk.

what  I said above have no any errors.but the problem is when I restart this vm ,the  disk still exist,because I see it from the command `virsh dumpxml $domain` ,how to remove the disk from this domain persistently.

thanks in advance.

>zhijun

_______________________________________________
libvirt-users mailing list
libvirt-users@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvirt-users

[Index of Archives]     [Virt Tools]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]

  Powered by Linux