Re: [ovirt-users] VM Deployment By Template

2014-08-28 Thread OvirtAndKvm
Punit,

What file system is your VM's partition, what operating system and
version ?

A question to others, if the doco says we support disk resize since
3.4, for what virtual disk type, and which operating systems and
their partition types are supported by this.  I would have believed
you would needed to have used LVM and then add the new disk space as a
new LUN, and map the new lun, while also using a file system that
allows for expansion. Some file systems like XFS can be extended (i.e.
grow) while being mounted. This is about the limit of my knowledge so
if you know more, please let us know what is possible.

    3. we
support disk resize since 3.4
   (iirc), which you can
   do post
    VM
provisioning.

http://www.gnu.org/software/parted/manual/html_node/parted_31.html
Grow partition 1, into the adjacent free space: 

(parted) resize 1 0.063
874.9http://geekpeek.net/resize-filesystem-fdisk-resize2fs/
http://www.linuxuser.co.uk/features/resize-your-disks-on-the-fly-with-lvm

http://docs.oracle.com/cd/E37670_01/E37355/html/ol_grow_xfs.html
You can use the xfs_growfs command to increase the size of a mounted
XFS file system if there is space on the underlying devices to
accommodate the change.

http://www.ovirt.org/Features/Online_Virtual_Drive_Resize
Features/Online Virtual Drive Resize 
QEMU-GA 

*  support for notifying the guest and updating the size of the
visible disk: [Yet?] To be integrated 
http://serverfault.com/questions/122042/kvm-online-disk-resize 
AFAIK, this is not possible -- you can add new disk images, and as you
point out you could also add new images to an LVM volume, but in order
to resize an active, bootable disk image you need to be able to shut
it down and edit the partitions.

It is possible to move a Linux system between disks while it's
running. The limitation is that you cannot alter partitions on a disk
that has partitions in use.



To do this your root filesystem must be on an LVM, this often means
that you have to have a separate boot filesystem (this is not,
however, essential, it just makes things easier)






At Thursday, 28-08-2014 on 16:49 Shahar Havivi wrote:


On 28.08.14 11:05, Punit Dambiwal wrote:
 Hi All,
 
 Please help me to solve this problem...or suggest me any workaround
??
 
 Thanks,
 Punit
 
 
 On Wed, Aug 27, 2014 at 8:01 PM, Karli Sjöberg  wrote:
 
  On Wed, 2014-08-27 at 19:52 +0800, Punit Dambiwal wrote:
   Hi Itamar,
  
  
   It's the same as i used and discussed in last reply...create the
VM
   with 1GB virtual template and expand the disk size after
   deployment...but the problem here is disk will expand or
resize...but
   it will not make any changes in the existing partition
table..that
   means after expand disk all the existing partition will remain
   samethen you need to manual login in to server and make the
   changes with the help of fdisk and lvm commands..
  
  
   I am looking for the way we can resize the disk...and at the
same time
   when the disk will expand...it should be resize the partition
table...
 
  I think this is what you were after:
  QEMU-GA
 
  support for notifying the guest and updating the size of
the visible
  disk: To be integrated 
 
  So maybe you could post an RFE on that for qemu-ga? Help
testing?
 
  /K
 
  
  
   Is the cloud-init...custom script can do this or not ??
You may be able to do that with cloud-init custom-script section,
The following link will show you how to add a file to the client, you
may write a code
that change the partition table, you need to make the file executable
and put
it in a init section (such as /etc/init.d sections), the only problem
is that
it may be too late since cloud-init may be loaded after that phase...
(so
maybe other place...)
http://cloudinit.readthedocs.org/en/latest/topics/examples.html#writing-out-arbitrary-files

Another option is to set a command under this section:
http://cloudinit.readthedocs.org/en/latest/topics/examples.html#run-commands-on-first-boot

  Shahar.

  
  
   Thanks,
   Punit
  
  
   On Wed, Aug 27, 2014 at 6:11 PM, Itamar Heim  wrote:
   On 08/27/2014 12:47 PM, Punit Dambiwal wrote:
  
   Hi Itamar,
  
   To edit the disk size are you
referring this Another
   way i got is
   create the VM with 1GB virtual
template and expand the
   disk size after
   deployment...but the problem
here is disk will
   expand...but it will not
   done any changes in the existing
partition table..that
   means after
   expand disk you need to manual
login in to server and
   make the changes
   with the help of fdisk and lvm
commands...
  
   Or it's different then the upper
one...please let me
   know how to perform
     

[ovirt-users] Power Management with UPS Network UPS Tools (NUT)

2014-08-19 Thread OvirtAndKvm
I would like to implement Power Management using an Eton E5 UPS,
if this is not possible then I would like to know what UPS systems can
be easily used with oVirt.

Can someone point me to information on how to configure the UPS,
CentOS 6.5 (preferably), and oVirt to use the UPS system, so that I
could purchase, install and implement the UPS.

If anyone has information regarding UPS, please reply to this email
with links to the information.

Can oVirt use Network UPS Tools (NUT) for Power Management ?  If
so, is there any documentation on this subject that you could provide
links to, please.

http://www.ovirt.org/Features/HostPowerManagementPolicy

http://www.howtoforge.com/network-ups-tools-nut-for-usb-upss-on-centos-5.5
http://www.networkupstools.org/docs/user-manual.chunked/ar01s05.html
http://www.networkupstools.org/features.html
http://www.ovirt.org/Automatic_Fencing

So far the most common statement I have found is Ignore the warning
about power management, but this is not what I want to do.
http://www.r11networks.com/2013/04/ovirt-installation-guide/

http://www.ovirt.org/DraftAdministrationGuide



http://www.ovirt.org/DraftAdministrationGuide#Host_Power_Management_settings_explained



Choose one of the following: 



*  apc - APC MasterSwitch network power switch. Not for use with APC
5.x power switch devices. 
*  apc_snmp - Use with APC 5.x power switch devices. 
*  bladecenter - IBM Bladecentre Remote Supervisor Adapter. 
*  cisco_ucs - Cisco Unified Computing System. 
*  drac5 - Dell Remote Access Controller for Dell computers. 
*  drac7 - Dell Remote Access Controller for Dell computers. 
*  eps - ePowerSwitch 8M+ network power switch. 
*  hpblade - HP BladeSystem. 
*  ilo, ilo2, ilo3, ilo4 - HP Integrated Lights-Out. 
*  ipmilan - Intelligent Platform Management Interface and Sun
Integrated Lights Out Management devices. 
*  rsa - IBM Remote Supervisor Adaptor. 
*  rsb - Fujitsu-Siemens RSB management interface. 
*  wti - WTI Network PowerSwitch. 


  CONFIGURING HOST POWER MANAGEMENT SETTINGS 



Summary 



Configure your host power management device settings to perform host
life-cycle operations (stop, start, restart) from the Administration
Portal. 



It is necessary to configure host power management in order to utilize
host high availability and virtual machine high availability. 








___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


[ovirt-users] When will oVirt supporing installation to Red Hat 7 and CentOS 7 be released.

2014-08-19 Thread OvirtAndKvm
I have been testing oVirt installations with CentOS 6.5 as the
automated installation for this version is easy to implement.

I am wondering when there will be installation packages for CentOS 7 ?

___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


[ovirt-users] The roles of DRDB and Gluster in oVirt for High Availability

2014-08-19 Thread OvirtAndKvm
If anyone has the knowledge and time, I would be interested to
read about if DRDB is used with oVirt, and since I have read that
Gluster is used with oVirt, but just how does Gluster help provide
High Availability?

I would like to set up a two physical server HA solution (similar to
or using the Self Hosted engine).  Where each server is monitoring
the other, using block replication so that each keep a copy of the
other server's running virtual machine's virtual storage (e.g. virtual
hard disks), and I guess for HA it would require both physical servers
to be running the same virtual machine instance, where the production
or active VM (memory) is being replicated into the secondary or
standby server.

However my actual needs would easily be supported by a simpler
approach, oVirt now has the scheduling capability to flag individual
VMs for high availability. In the event of a host failure, these VMs
are rebooted on an alternate hypervisor host, however I don't know
how the VM would be rebooted on another host if the [shared] storage
device failed. Hence my interest in DRDB for block replication using a
minimum of two storage devices.

Single shared storage creates a single point of failure, so storage
must also be replicated. In a two physical server model, both physical
servers would provide storage and allow for storage to be
replicated.  Ideally, each physical server would have two storage
areas, one that is a replication of the other servers storage area,
and one which the other server is replicating.

Is there a way for one physical server to hourly or nightly replicate
its virtual machine's storage to the other physical server ?  Kind of
like if a rsync was set up in cron?, but a bit more of a sophisticated
solution. 

http://searchservervirtualization.techtarget.com/tip/Power-management-a-must-for-oVirt-high-availability
To build oVirt high availability, you need a minimum of two hosts, as
well as a shared storage platform [1]. You also need to configure
power management [2] on the hosts.

http://www.linbit.com/en/company/news/333-high-available-virtualization-at-a-most-reasonable-price
Using DRBD and Pacemaker with oVirt...

http://blog.gluster.org/2013/09/ovirt-3-3-glusterized/
http://rehdat.blogspot.com.au/2013/04/rhev-31-active-direcotry-vms-high.html


I read the below information but it is too a high level to explain how
HA is achieved.
http://www.ovirt.org/OVirt_3.0_Feature_Guide#High_availability 


HIGH AVAILABILITY 



Allows critical VMs to be restarted on another host in the event of
hardware failure with three levels of priority, taking into account
resiliency policy. 



*  Resiliency policy to control high availability VMs at the cluster
level. 
*  Supports application-level high availability with supported
fencing agents.
http://community.redhat.com/blog/2014/03/ovirt-3-4-unveiled/



Links:
--
[1]
http://searchstorage.techtarget.com/answer/Shared-storage-and-SAN-differences
[2]
http://searchdatacenter.techtarget.com/definition/intelligent-power-management-IPM

___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


[ovirt-users] Instructions for novices

2014-08-17 Thread OvirtAndKvm
Hi,

Can someone point me to instructions for building a CentOS server that
would be ready for installing the self hosted node.

I have a 7x 500GB HD, 16 GB RAM, i7 computer that I have installed
CentOS 6.5 (Software RAID6) to and would now like to install the
self-hosted-engine.

While I do have experience with Debian as a server and some experience
with CentOS, I have not so far found any information regarding how to
build a basic server ready for installing oVirt packages, for example
configuring static IP addresses, hostname, hosts file, maybe NFS
shares ? or iSCSI shares ?

http://www.ovirt.org/Download#Install_oVirt

Step 6 says Follow the on screen prompts to configure and install the
engine , however knowing what to supply for the prompts and what to
have already configured on your server would be very helpful.

http://www.ovirt.org/Hosted_Engine_Howto
During the deployment you'll be asked for input on host name, storage
path and other relevant information , it is how to set up the
environment for answering these questions that I would like assistance
with (e.g. a HowTo ?)


I have once before installed the ovirt-engine-setup-plugin-allinone
in a VMware Workstation VM, but not without many challenges.

I would now like to install the ovirt-hosted-engine-ha

The second prompt said Please specify the full shared storage
connection path to use (example: host:/path):, however it does not
say that it will create this or whether you need to have this created
earlier ?  At this time I don't have a static IP address nor the
hosts file containing the host name, this is just a newly built CentOS
server with minimum GUI, updates applied and no other changes.  So is
there any documentation which would explain what other changes are
needed and how to do this?

http://www.ovirt.org/Quick_Start_Guide
Two packages, ovirt-hosted-engine-setup and ovirt-hosted-engine-ha
provide the setup and services necessary to deploy a
self-hosted-engine oVirt environment. For more on the oVirt
Self-Hosted Engine, see the oVirt Installation Guide. 

https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Virtualization/3.3/html/Installation_Guide/Configuring_the_Self-Hosted_Engine.html

http://blog.gluster.org/2014/05/ovirt-3-4-glusterized/
The Hosted Engine feature relies on NFS storage to house the
management VM.





___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users