fdytr ytruy
2014-Oct-24 07:18 UTC
[libvirt-users] Specify hard disk type (immutable) in the domain.xml file
P { margin-bottom: 0.21cm; }Hi! 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? Thanks! LL
Eric Blake
2014-Oct-24 14:45 UTC
Re: [libvirt-users] Specify hard disk type (immutable) in the domain.xml file
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
Possibly Parallel Threads
- libvirt with VirtualBox - possible to specify path to snapshot folder in domain.xml?
- If the .journal file is marked 'immutable' how is data written to it
- Immutable ticks using ts.plot?
- Is ArrayRef supposed to be immutable?
- [LLVMdev] Non-immutable alias analysis