Skip to contentSkip to conversation

Windows HVM guest disk is not write-protected with 'r' option

DISCUSSION Stephen Quintero 2 participants 2 messages Jul 29, 2008 – Jul 30, 2008

lore
Share & tools
lore
#0 lore raw

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
[email protected]
http://lists.xensource.com/xen-devel

#1 lore raw

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

Quoted 25 lines · Stephen Quintero

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
[email protected]
http://lists.xensource.com/xen-devel