RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1349531 - Document Setting Up Virtual Machine Resources in Cluster
Summary: Document Setting Up Virtual Machine Resources in Cluster
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: doc-High_Availability_Add-On_Reference
Version: 7.3
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Steven J. Levine
QA Contact: ecs-bugs
URL:
Whiteboard:
: 1377716 1392109 (view as bug list)
Depends On:
Blocks: 1420122 1425467
TreeView+ depends on / blocked
 
Reported: 2016-06-23 15:47 UTC by Steven J. Levine
Modified: 2020-08-13 08:30 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1420120 1420122 (view as bug list)
Environment:
Last Closed: 2017-06-01 15:29:19 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Steven J. Levine 2016-06-23 15:47:14 UTC
From Chris Feist:


One item we want to add to the list of things to document is setting up
virtual machine resources under RHEL 7 HA (including migration).

I think we could make this a fairly short section (maybe a use case) in the
documentation, but I've had a couple requests for documentation of this.
 (Nothing high priority, just something we can do when we have time).


Document URL: 

Section Number and Name: 

Describe the issue: 

Suggestions for improvement: 

Additional information:

Comment 1 Steven J. Levine 2016-10-12 20:27:59 UTC
Spoke with Chris Feist about time and resource concerns so we are moving this to 7.4. Will need usecase example from development to proceed.

Comment 2 Steven J. Levine 2016-12-20 21:47:40 UTC
*** Bug 1392109 has been marked as a duplicate of this bug. ***

Comment 3 Steven J. Levine 2017-01-09 22:17:53 UTC
Chris:  I'm looking at my 7.4 work and this BZ came up. I'm not sure what this would involve. I don't know what issues are specific to setting up virtual machines in a cluster. I would think the actual commands you use are the same. Can you provide a little more background about what this is asking for?

Also:  Is there somebody I can contact to work with me on putting together this procedure?

Steven

Comment 4 Chris Feist 2017-01-09 22:37:17 UTC
I think Oyvind may be the right person for this.  I will talk with him on Wed. to see what we need to start getting you some commands to run.

Thanks,
Chris

Comment 5 Oyvind Albrigtsen 2017-01-11 09:18:13 UTC
I should be able to help Steven with this.

Comment 6 Steven J. Levine 2017-01-17 16:40:06 UTC
Oyvind:


To follow up here:

I want to confirm that we are not looking at setting up a cluster of virtual machines, but configuring a virtual machine as a resource in an existing cluster. Is that correct?

If so then the closest thing we provide to this sort of procedure is the documentation for setting up remote nodes -- which are set up as a resource. That documentation is here:

https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html/High_Availability_Add-On_Reference/pacemaker_remote.html

Would this be similar?  Do we describe a resource type for a virtual machine and its options?

I think I'm looking for basic step 1 of what it is that we need to document here.

Steven

Comment 7 Oyvind Albrigtsen 2017-01-18 12:09:22 UTC
That's right.

An example could be like this for a VM with live migration support over SSH:
# pcs resource create VM VirtualDomain config=.../vm.xml \
       migration_transport=ssh meta allow-migrate=true

With that setup "pcs move VM nodeX" would be done as a live migration. If you set allow-migrate=false or the allow-migrate the VM will be shutdown and then started on the other node with the "pcs move" command.

Comment 8 Steven J. Levine 2017-01-18 19:44:19 UTC
Info from the help screens, to have it on this BZ record:

root@virt-335 ~]# pcs resource describe VirtualDomain

ocf:heartbeat:VirtualDomain - Manages virtual domains through the libvirt virtualization framework

Resource agent for a virtual domain (a.k.a. domU, virtual machine,
virtual environment etc., depending on context) managed by libvirtd.

Resource options:
config (required): Absolute path to the libvirt configuration file, for this virtual domain.
  
hypervisor: Hypervisor URI to connect to. See the libvirt documentation for details on supported URI formats. The default is system dependent. Determine the system's default uri by running 'virsh --quiet uri'.

force_stop: Always forcefully shut down ("destroy") the domain on stop. The default behavior is to resort to a forceful shutdown only after a graceful shutdown attempt has failed. You should only set this to true if your virtual domain (or your virtualization backend) does not support graceful shutdown.
  
migration_transport: Transport used to connect to the remote hypervisor while migrating. Please refer to the libvirt documentation for details on transports available. If this parameter is omitted, the resource will use libvirt's default transport to connect to the remote hypervisor.
  
migration_network_suffix: Use a dedicated migration network. The migration URI is composed by adding this parameters value to the end of the node name. If the node name happens to be an FQDN (as opposed to an unqualified host name), insert the suffix immediately prior to the first period (.) in the FQDN. At the moment Qemu/KVM and Xen migration via a dedicated network is supported. Note: Be sure this composed host name is locally resolveable and the associated IP is reachable through the favored network.
  
monitor_scripts: To additionally monitor services within the virtual domain, add this parameter with a list of scripts to monitor. Note: when monitor scripts are used, the start and migrate_from operations will complete only when all monitor scripts have completed successfully. Be sure to set the timeout of these operations to accommodate this delay.
  
autoset_utilization_cpu: If set true, the agent will detect the number of domainU's vCPUs from virsh, and put it into the CPU utilization of the resource when the monitor is executed.

autoset_utilization_hv_memory: If set true, the agent will detect the number of *Max memory* from virsh, and put it into the hv_memory utilization of the source when the monitor is executed.
  
migrateport: This port will be used in the qemu migrateuri. If unset, the port will be a random highport.
  
snapshot: Path to the snapshot directory where the virtual machine image will be stored. When this parameter is set, the virtual machine's RAM state will be saved to a file in the snapshot directory when stopped. If on start a state file is present for the domain, the domain will be restored to the same state it was in right before it stopped last. This option is incompatible with the 'force_stop' option.

Comment 9 Steven J. Levine 2017-01-30 20:00:20 UTC
Live migration chapter of virtualization administration guide is here:

https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html/Virtualization_Deployment_and_Administration_Guide/chap-KVM_live_migration.html

Comment 17 Oyvind Albrigtsen 2017-03-08 11:09:30 UTC
*** Bug 1377716 has been marked as a duplicate of this bug. ***


Note You need to log in before you can comment on or make changes to this bug.