virt-sysprep on Windows Guest
Hi Rich, folks, I wont to start doing the windows guest support for virt-sysprep, Any thoughts? What do you think should be prepared on a new cloned windows guest? Thanks, Wanlong Gao
On Fri, May 25, 2012 at 01:47:53PM +0800, Wanlong Gao wrote:
Hi Rich, folks,
I wont to start doing the windows guest support for virt-sysprep, Any thoughts?
What do you think should be prepared on a new cloned windows guest?
The main thing is to be able to run Microsoft's sysprep tool on a Windows guest. Chris wrote some code to do this already in this branch of oz, but it's very complex: https://github.com/clalancette/oz/tree/win2k8customize See in particular: https://github.com/clalancette/oz/blob/win2k8customize/oz/Windows.py People will also want to set the hostname (--hostname option) and run scripts (--script option). Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones libguestfs lets you edit virtual machines. Supports shell scripting, bindings from many languages. http://libguestfs.org
On 05/25/2012 03:30 PM, Richard W.M. Jones wrote:
On Fri, May 25, 2012 at 01:47:53PM +0800, Wanlong Gao wrote:
Hi Rich, folks,
I wont to start doing the windows guest support for virt-sysprep, Any thoughts?
What do you think should be prepared on a new cloned windows guest?
The main thing is to be able to run Microsoft's sysprep tool on a Windows guest.
Chris wrote some code to do this already in this branch of oz, but it's very complex:
https://github.com/clalancette/oz/tree/win2k8customize
See in particular: https://github.com/clalancette/oz/blob/win2k8customize/oz/Windows.py
People will also want to set the hostname (--hostname option) and run scripts (--script option).
So, it's no necessary to support windows in our virt-sysprep because it already has a tool to do the same thing for windows, right? Thanks, Wanlong Gao
Rich.
On Fri, May 25, 2012 at 03:34:40PM +0800, Wanlong Gao wrote:
On 05/25/2012 03:30 PM, Richard W.M. Jones wrote:
On Fri, May 25, 2012 at 01:47:53PM +0800, Wanlong Gao wrote:
Hi Rich, folks,
I wont to start doing the windows guest support for virt-sysprep, Any thoughts?
What do you think should be prepared on a new cloned windows guest?
The main thing is to be able to run Microsoft's sysprep tool on a Windows guest.
Chris wrote some code to do this already in this branch of oz, but it's very complex:
https://github.com/clalancette/oz/tree/win2k8customize
See in particular: https://github.com/clalancette/oz/blob/win2k8customize/oz/Windows.py
People will also want to set the hostname (--hostname option) and run scripts (--script option).
So, it's no necessary to support windows in our virt-sysprep because it already has a tool to do the same thing for windows, right?
Windows has a sysprep tool which does the right thing for all Windows guests, and it's impossible to know what that tool does or replicate it. However it requires a multi-step process to run sysprep on a guest, so we should make that easier for users if we can. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones virt-p2v converts physical machines to virtual machines. Boot with a live CD or over the network (PXE) and turn machines into Xen guests. http://et.redhat.com/~rjones/virt-p2v
On 05/25/2012 03:46 PM, Richard W.M. Jones wrote:
On Fri, May 25, 2012 at 03:34:40PM +0800, Wanlong Gao wrote:
On 05/25/2012 03:30 PM, Richard W.M. Jones wrote:
On Fri, May 25, 2012 at 01:47:53PM +0800, Wanlong Gao wrote:
Hi Rich, folks,
I wont to start doing the windows guest support for virt-sysprep, Any thoughts?
What do you think should be prepared on a new cloned windows guest?
The main thing is to be able to run Microsoft's sysprep tool on a Windows guest.
Chris wrote some code to do this already in this branch of oz, but it's very complex:
https://github.com/clalancette/oz/tree/win2k8customize
See in particular: https://github.com/clalancette/oz/blob/win2k8customize/oz/Windows.py
People will also want to set the hostname (--hostname option) and run scripts (--script option).
So, it's no necessary to support windows in our virt-sysprep because it already has a tool to do the same thing for windows, right?
Windows has a sysprep tool which does the right thing for all Windows guests, and it's impossible to know what that tool does or replicate
You mean it's not a Open Source project?
it. However it requires a multi-step process to run sysprep on a guest, so we should make that easier for users if we can.
Could you explain more detailedly to me since I'm not familiar with the stupid Windows system ? Thanks, Wanlong Gao
Rich.
On Fri, May 25, 2012 at 03:52:53PM +0800, Wanlong Gao wrote:
On 05/25/2012 03:46 PM, Richard W.M. Jones wrote:
Windows has a sysprep tool which does the right thing for all Windows guests, and it's impossible to know what that tool does or replicate
You mean it's not a Open Source project?
Definitely not. In modern versions of Windows, it is included (under %systemroot%/System32/sysprep). For older versions you had to download it as a separate tool.
it. However it requires a multi-step process to run sysprep on a guest, so we should make that easier for users if we can.
Could you explain more detailedly to me since I'm not familiar with the stupid Windows system ?
It's pretty complicated. Probably the best thing is to read Microsoft's documentation on how to use it: https://encrypted.google.com/search?q=sysprep+site:microsoft.com in conjunction with the Oz code: https://github.com/clalancette/oz/blob/win2k8customize/oz/Windows.py It's not easy, which is why we haven't got around to doing it so far. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones virt-df lists disk usage of guests without needing to install any software inside the virtual machine. Supports Linux and Windows. http://et.redhat.com/~rjones/virt-df/
On 05/25/2012 04:47 PM, Richard W.M. Jones wrote:
On Fri, May 25, 2012 at 03:52:53PM +0800, Wanlong Gao wrote:
On 05/25/2012 03:46 PM, Richard W.M. Jones wrote:
Windows has a sysprep tool which does the right thing for all Windows guests, and it's impossible to know what that tool does or replicate
You mean it's not a Open Source project?
Definitely not. In modern versions of Windows, it is included (under %systemroot%/System32/sysprep). For older versions you had to download it as a separate tool.
it. However it requires a multi-step process to run sysprep on a guest, so we should make that easier for users if we can.
Could you explain more detailedly to me since I'm not familiar with the stupid Windows system ?
It's pretty complicated. Probably the best thing is to read Microsoft's documentation on how to use it:
https://encrypted.google.com/search?q=sysprep+site:microsoft.com
in conjunction with the Oz code:
https://github.com/clalancette/oz/blob/win2k8customize/oz/Windows.py
It's not easy, which is why we haven't got around to doing it so far.
Yeah, I see, thank you. Wanlong Gao
Rich.
----- Original Message -----
From: "Wanlong Gao" <gaowanlong@cn.fujitsu.com> To: "Richard W.M. Jones" <rjones@redhat.com> Cc: "Libguestfs" <libguestfs@redhat.com> Sent: Friday, May 25, 2012 4:52:34 AM Subject: Re: [Libguestfs] virt-sysprep on Windows Guest
On 05/25/2012 04:47 PM, Richard W.M. Jones wrote:
On Fri, May 25, 2012 at 03:52:53PM +0800, Wanlong Gao wrote:
On 05/25/2012 03:46 PM, Richard W.M. Jones wrote:
Windows has a sysprep tool which does the right thing for all Windows guests, and it's impossible to know what that tool does or replicate
You mean it's not a Open Source project?
Definitely not. In modern versions of Windows, it is included (under %systemroot%/System32/sysprep). For older versions you had to download it as a separate tool.
VMware has a quickprep feature for use cases that could do with a lighter version of sysprep http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=2003797
it. However it requires a multi-step process to run sysprep on a guest, so we should make that easier for users if we can.
Could you explain more detailedly to me since I'm not familiar with the stupid Windows system ?
It's pretty complicated. Probably the best thing is to read Microsoft's documentation on how to use it:
https://encrypted.google.com/search?q=sysprep+site:microsoft.com
in conjunction with the Oz code:
https://github.com/clalancette/oz/blob/win2k8customize/oz/Windows.py
It's not easy, which is why we haven't got around to doing it so far.
Yeah, I see, thank you.
Wanlong Gao
Rich.
_______________________________________________ Libguestfs mailing list Libguestfs@redhat.com https://www.redhat.com/mailman/listinfo/libguestfs
participants (3)
-
Andrew Cathrow -
Richard W.M. Jones -
Wanlong Gao