diff --git a/xCAT-server/lib/xcat/plugins/rhevm.pm b/xCAT-server/lib/xcat/plugins/rhevm.pm
index 10167a104..6a7443151 100644
--- a/xCAT-server/lib/xcat/plugins/rhevm.pm
+++ b/xCAT-server/lib/xcat/plugins/rhevm.pm
@@ -904,6 +904,7 @@ my $display = {
'stateless' => ["stateless"],
'placement_policy' => ["placement_policy/affinity"],
'memory_guaranteed' => ["memory_policy/guaranteed"],
+ 'host' => ["host", "id", "hosts", "/host/name"],
},
'templates' => {
'memory' => ["memory"],
@@ -1996,7 +1997,7 @@ sub mkvm {
if ($myvment->{cpus}) {
my ($socketnum, $corenum) = split(':', $myvment->{cpus});
unless ($corenum) {$corenum = 1;}
- $cpuele = "";
+ $cpuele = "";
} elsif (!$hastpl) {
$cpuele = ""
}
@@ -2485,7 +2486,7 @@ sub chvm {
if ($myvment->{cpus}) {
my ($socketnum, $corenum) = split(':', $myvment->{cpus});
unless ($corenum) {$corenum = 1;}
- $cpuele = "";
+ $cpuele = "";
}
# configure bootorder
@@ -2806,7 +2807,7 @@ sub rmigrate {
my $api = "/api/vms/$vmid/migrate";
my $method = "POST";
- my $content = "";
+ my $content = "true";
my $request = genreq($ref_rhevm, $method, $api, $content);
my $response;
($rc, $response) = send_req($ref_rhevm, $request->as_string());
@@ -3044,7 +3045,11 @@ sub search_src {
if ($type eq "vms") {
$idstr = "/vms/vm";
} elsif ($type eq "hosts") {
- $idstr = "/hosts/host";
+ if ($individual) {
+ $idstr = "/host";
+ } else {
+ $idstr = "/hosts/host";
+ }
} elsif ($type eq "templates") {
$idstr = "/templates/template";
} elsif ($type eq "storagedomains") {