Re: Specify hard disk type (immutable) in the domain.xml file

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

 



On 10/24/2014 01:18 AM, fdytr ytruy wrote:
>  P { margin-bottom: 0.21cm; }Hi!

[We prefer plain text mail on this list; but your mailer litters weird
stuff into text mail, so you may need to tweak settings on your end to
make sure you send plain text]

> I'm using libvirt withVirtual Box. I have installed libvirt 0.10.2 and Virtual Box 4.1.
> I want to use "virsh define"to define my Virtual Box virtual machine. My question is:
> In my domain.xml, how can Ispecify that my hard disk is of type immutable/ multi attach etc. Can I use som kind oftag or attribute, something like this:
>  <disk type='file'device='disk'> <sourcefile='/path/to/my/file.vdi'/> <target dev='hda'bus='ide'/> <type>immutable</type> </disk>
> In the domain.xml is it possible to specifythe path to my folder where I have my snapshot.vdi file?

Doesn't this do it (at least, it works for qemu):

<disk ...>
  <source ...>
  <readonly/>
</disk>

since a readonly disk is immutable to the guest.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
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