Stephen Quintero
2008-Jul-29 23:42 UTC
[Xen-devel] Windows HVM guest disk is not write-protected with ''r'' option
Hello, Using a Windows 2003 guest with second disk device in the xm config file: disk=[ 'phy:/dev/md4,ioemu:hda,w', 'phy:/dev/md5,ioemu:hdb,r' ] the second disk is not actually write protected under Windows. You can, for example, mount the NTFS volume and create/delete files. It seems mdadm/nbd should not allow this. I am using Xen 3.2.1 and would appreciate any comment on this issue. Thank you, Stephen Quintero _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Keir Fraser
2008-Jul-30 07:26 UTC
Re: [Xen-devel] Windows HVM guest disk is not write-protected with ''r'' option
This is a known issue -- fully-emulated disks cannot be made read-only because qemu-dm does not respect the read-only flag. There is a patch for this which we are considering for Xen 3.3. -- Keir On 30/7/08 00:42, "Stephen Quintero" <stephen@3tera.com> wrote:> Hello, > > Using a Windows 2003 guest with second disk device in the xm config file: > > disk=[ > ''phy:/dev/md4,ioemu:hda,w'', > ''phy:/dev/md5,ioemu:hdb,r'' > ] > > the second disk is not actually write protected under Windows. You can, for > example, mount the NTFS volume and create/delete files. > > It seems mdadm/nbd should not allow this. > > I am using Xen 3.2.1 and would appreciate any comment on this issue. > > Thank you, > > Stephen Quintero > > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel