Forum Search:
HyperVM & Kloxo Support

Home » HyperVM » HyperVM Windows » Creating an ostemplate does nothing.
Creating an ostemplate does nothing. [message #71523] Wed, 21 October 2009 21:59 Go to next message
niteryder  is currently offline niteryder
Messages: 20
Registered: May 2008
Member
Hi, I successfully installed hypervm/xen and was able to get a Win2003 Web Ed. installed in the VM. I can access it and the Windows VM works fine. However, when I use the create ostemplate, it pauses for a little bit and then the screen refreshes (like something happened). I look in the xen templates and it does not show up.

The main server is CentOS 64Bit and the VM is Windows 2003 Web Edition.

Any ideas?
Re: Creating an ostemplate does nothing. [message #71955 is a reply to message #71523] Thu, 26 November 2009 15:36 Go to previous messageGo to next message
NetTuningGroup  is currently offline NetTuningGroup  Netherlands
Messages: 1651
Registered: July 2007
Location: Netherlands
Masters
LxCenter Staff

Enough free space? (/tmp for example and the hdd where your templates are).


LxCenter - System Operations
My Company: Net Tuning NL
Re: Creating a Windows ostemplate does nothing. [message #72391 is a reply to message #71523] Thu, 31 December 2009 02:18 Go to previous messageGo to next message
eugenevdm  is currently offline eugenevdm  South Africa
Messages: 6
Registered: December 2009
Member
Same problem, no Windows OSTemplate is created:

[root@xen1]# ls /home/hypervm/xen/template/win*
/home/hypervm/xen/template/windows-lxblank.img

There is lots of disk space:

[root@xen]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/Dom0-Dom0LV
33G 5.5G 26G 18% /
/dev/sda1 190M 23M 159M 13% /boot
tmpfs 3.8G 0 3.8G 0% /dev/shm
none 3.8G 144K 3.8G 1% /var/lib/xenstored

This file contains a reference after clicking button:
/usr/local/lxlabs/hypervm/serverfile/windows-2003-sp2.imgm6t MZD

:2:{s:8:"filename";s:47:"/home/hypervm/xen/template/windows-2003-sp2.img";s:8:"password";s:32:"4327288d83d271d41956a76920823a19";}


This message is displayed after clicking button:

"Information: createtemplate successfully updated for win2.vm"

Yet nothing.
Re: Creating an ostemplate does nothing. [message #72729 is a reply to message #71523] Sun, 31 January 2010 15:47 Go to previous messageGo to next message
redrack  is currently offline redrack  Romania
Messages: 41
Registered: March 2008
Member
i have same problems:
Information: createtemplate successfully updated for xp.vm

anyone any ideea?
Re: Creating an ostemplate does nothing. [message #72731 is a reply to message #71523] Mon, 01 February 2010 02:20 Go to previous messageGo to next message
eugenevdm  is currently offline eugenevdm  South Africa
Messages: 6
Registered: December 2009
Member
There is a log file that you can examine to find out what happens when you press this button. I haven't got access to that information now but it's documented elsewhere in this forum.
Re: Creating an ostemplate does nothing. [message #72784 is a reply to message #72731] Wed, 03 February 2010 20:34 Go to previous messageGo to next message
Sy tematikHo ting  is currently offline Sy tematikHo ting  Canada
Messages: 3
Registered: February 2010
Member
You will see by the error messages:


tail -f /usr/local/lxlabs/hypervm/log/shell_exec
15:12 Feb/03/2010: 0:  [(__system__:/usr/local/lxlabs/hypervm/httpdocs) 'kpartx'  '-a' '/dev/mapper/VolGroup00-testxp_rootimg']
15:12 Feb/03/2010: 0:  [(__system__:/usr/local/lxlabs/hypervm/httpdocs) 'kpartx'  '-l' '/dev/mapper/VolGroup00-testxp_rootimg']
15:12 Feb/03/2010: 127: sh: ntfsfix: command not found
 [(__system__:/usr/local/lxlabs/hypervm/httpdocs) 'ntfsfix'  '/dev/mapper/VolGroup00-testxp_rootimg1']
15:12 Feb/03/2010: 127: sh: ntfsclone: command not found
 [(__system__:/usr/local/lxlabs/hypervm/httpdocs) 'ntfsclone'  '--save-image' '--force' '-O' '/home/hypervm/xen/template/windows-Xp-basic.img' '/dev/mapper/VolGroup00-testxp_rootimg1']
15:12 Feb/03/2010: 0:  [(__system__:/usr/local/lxlabs/hypervm/httpdocs) 'kpartx'  '-d' '/dev/mapper/VolGroup00-testxp_rootimg']
15:12 Feb/03/2010: 0:  [(__system__:/usr/local/lxlabs/hypervm/httpdocs) 'uname'  '-r']
15:12 Feb/03/2010: 0:  [(__system__:/usr/local/lxlabs/hypervm/httpdocs) 'xm'  'create' '/home/xen/testxp.vm/testxp.vm.cfg']
15:12 Feb/03/2010: Making directory /usr/local/lxlabs/hypervm/serverfile


This tells you there is a problem with ntfsfix & ntfsclone. The problem is that ntfsprogs is not installed.

Download from here:
hxxp://packages.sw.be/ntfsprogs/


replace the hxxp with http

install by:
rpm -i ntfsprogs-1.13.1-1.el3.rf.x86_64.rpm

**** you may need to change the filename depending on which you downloaded.*****

Once this is installed run again

now the output again
15:25 Feb/03/2010: 0:  [(__system__:/usr/local/lxlabs/hypervm/httpdocs) 'xm'  'shutdown' 'testxp.vm']
15:26 Feb/03/2010: 0:  [(__system__:/usr/local/lxlabs/hypervm/httpdocs) 'kpartx'  '-a' '/dev/mapper/VolGroup00-testxp_rootimg']
15:26 Feb/03/2010: 0:  [(__system__:/usr/local/lxlabs/hypervm/httpdocs) 'kpartx'  '-l' '/dev/mapper/VolGroup00-testxp_rootimg']
15:26 Feb/03/2010: 0:  [(__system__:/usr/local/lxlabs/hypervm/httpdocs) 'ntfsfix'  '/dev/mapper/VolGroup00-testxp_rootimg1']
15:27 Feb/03/2010: 0: ntfsclone v1.13.1 (libntfs 9:0:0)
 [(__system__:/usr/local/lxlabs/hypervm/httpdocs) 'ntfsclone'  '--save-image' '--force' '-O' '/home/hypervm/xen/template/windows-xp-basic.img' '/dev/mapper/VolGroup00-testxp_rootimg1']
15:27 Feb/03/2010: 0:  [(__system__:/usr/local/lxlabs/hypervm/httpdocs) 'kpartx'  '-d' '/dev/mapper/VolGroup00-testxp_rootimg']
15:27 Feb/03/2010: 0:  [(__system__:/usr/local/lxlabs/hypervm/httpdocs) 'uname'  '-r']
15:27 Feb/03/2010: 0:  [(__system__:/usr/local/lxlabs/hypervm/httpdocs) 'xm'  'create' '/home/xen/testxp.vm/testxp.vm.cfg']


And voila ostemplate has been created

Re: Creating an ostemplate does nothing. [message #72853 is a reply to message #72784] Sun, 07 February 2010 19:02 Go to previous messageGo to next message
NetTuningGroup  is currently offline NetTuningGroup  Netherlands
Messages: 1651
Registered: July 2007
Location: Netherlands
Masters
LxCenter Staff

Please add this at the wiki website. wiki.lxcenter.org .
Register an account if you need to.


LxCenter - System Operations
My Company: Net Tuning NL
Re: Creating an ostemplate does nothing. [message #72854 is a reply to message #71523] Sun, 07 February 2010 19:17 Go to previous messageGo to next message
Sy tematikHo ting  is currently offline Sy tematikHo ting  Canada
Messages: 3
Registered: February 2010
Member
Added to wiki - hxxp://wiki.lxcenter.org/tiki-index.php?page=Creating+window s+OS+template+X64

May I suggest adding this to the install?

[Updated on: Sun, 07 February 2010 19:25]

Re: Creating an ostemplate does nothing. [message #74569 is a reply to message #72854] Mon, 17 May 2010 16:44 Go to previous message
NetTuningGroup  is currently offline NetTuningGroup  Netherlands
Messages: 1651
Registered: July 2007
Location: Netherlands
Masters
LxCenter Staff

btw ntfsprogs is in lxlabs repo.

Just yum install ntfsprogs


LxCenter - System Operations
My Company: Net Tuning NL
Previous Topic:recover from self-made windows template
Next Topic:Ostemplate creation
Goto Forum:
  


Current Time: Fri Sep 3 06:55:56 EDT 2010

Total time taken to generate the page: 0.01986 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.1.
Copyright ©2001-2009 FUDforum Bulletin Board Software