Installation_folder\SVROR\Manager\bin\convertVMtoLServer - Linking virtual PCs with virtual L-Servers
convertVMtoLServer -exportfile folder [-fixfilename] [-setfolder] convertVMtoLServer -file file.csv convertVMtoLServer -createxml
convertVMtoLServer is the command used to perform batch linking of configured virtual PCs with virtual L-Servers and batch creation of XML files for changing the network.
Use this option create the CSV configuration file to be specified for the -file option.
For folder, specify the folder for storing the CSV configuration file using an absolute path.
For the folder name, specify a character string containing alphanumeric characters, underscores ("_"), hyphens ("-") and periods (".").
Paths containing single-byte spaces cannot be specified.
In all of the following VM hosts registered in the VM pool, all of the information of the virtual PCs that are not linked with virtual L-Servers is output to the CSV configuration file.
If -fixfilename is specified, the CSV configuration file will be named convertVMtoLserver.csv.
If the file already exists, it will be deleted and then re-created.
Use this option when periodically linking virtual PCs with L-Servers.
The CSV configuration file that is output will be named convertVMtoLserver.csv. If the file already exists, it will be deleted and then re-created.
Specify this when linking virtual PCs with each tenant.
For the output CSV configuration file, either the resource folder or the tenant that the VM host of the virtual PC belongs to is output as the FolderName where the L-Server is located.
Specify this option to perform batch linking of virtual PCs with virtual L-Servers and batch creation of XML files for changing the network.
For file.csv, specify the CSV configuration file containing the definitions of the information regarding the virtual PCs that are already configured in the following VM hosts registered in the VM pool of Resource Orchestrator.
The CSV configuration file can be created automatically by executing the command with the -exportfile option specified.
If the information of virtual PCs that you want to exclude from the operation target is contained in the CSV configuration file to be output using the -exportfile option, delete the lines corresponding to those virtual PCs from the CSV configuration file.
Alphanumeric characters, underscores ("_"), and hyphens ("-") can be used in the file name of the CSV configuration file.
In addition, the extension of the CSV configuration file must be "csv".
For the virtual L-Servers that are successfully linked, the XML files for changing the network are output to the storage directory of the XML files for changing the network. If XML files for changing the network that have the same names as the XML files to be output already exist, the existing files will be overwritten.
See
For details, refer to "A.4 XML Files for Changing the Network".
Specify this option to create XML files for changing the network.
Specify in the following cases:
It is necessary to create the definition files for configuring the operation and quarantine networks beforehand.
See
For details, refer to "2.5.6 Definition File for Configuring the Business and Quarantine Networks".
Note
When multiple NICs have been connected to a virtual PC, it is necessary to generate the XML files for changing the network manually.
For details, refer to "A.4 XML Files for Changing the Network".
The format of the file is as follows.
If the CSV configuration file has been created using the -exportfile option, only the first line and the VMGuestName values in the subsequent lines are output.
CSV configuration files are named using the following format and stored in folder.
convertVMtoLserver.csv
convertVMtoLserver_yyyymmddhhmmss.csv
yyyymmddhhmmss is the date and time when the CSV configuration file was created.
VMGuestName,Label,Comment,FolderName
Specify configuration values in the order of the configuration item names defined in the first line, separated by commas.
Specify the names of the virtual PCs to link to L-Servers. Specify using full paths. Use slashes ("/") to connect the names of the resource pool and the VM host of each virtual PC.
For each virtual PC name, enter a string beginning with an alphanumeric character, and containing up to 64 alphanumeric characters, underscores ("_") and hyphens ("-"). Both upper and lower case letters can be used.
Virtual PC names containing periods (".") are not supported.
Example
/Resource_pool_name/VM_host_name/Virtual_PC_name
Note
For resource pool names, specify the names of VM pools that have been created under the orchestration tree.
Optional.
Enter a string of up to 32 alphanumeric characters (Both double-byte and single-byte characters can be used).
Optional.
Enter a string of up to 256 alphanumeric characters (Both double-byte and single-byte characters can be used).
Optional.
For the folder name, enter a string beginning with an alphanumeric character, and containing up to 32 alphanumeric characters, underscores ("_") and hyphens ("-"). Both upper and lower case letters can be used.
Specify this item when grouping the resources of a virtual L-Server. When specifying FolderName, it is necessary to create the corresponding resource folder under the orchestration tree on the ROR [Resource] tab in advance.
For details, refer to "21.2 Creating" in the "User's Guide for Infrastructure Administrators (Resource Management) CE".
For a hierarchized resource folder, specify the folder name using slashes ("/").
If omitted, the configuration file is placed in the home folder.
Example
Example of the CSV Configuration File
VMGuestName,Label,Comment,FolderName /VMHostPool/192.168.24.138/test1 /VMHostPool/192.168.24.138/test2,, /VMHostPool/192.168.24.138/test3,,,FolderA
Point
The relationships between virtual PC names and resources can be confirmed using the following command.
> rcxadm pool list -name /VMHostPool -resource -info lserver
For details on this command, refer to "4.8 rcxadm pool".
The format of the CSV results files is as follows.
The same location as the storage folder for CSV configuration files.
convertVMtoLserver_yyyymmddhhmmss_result.csv
yyyymmddhhmmss is the date and time when the CSV configuration file was created.
If -fixfilename is specified, the CSV results file will be named convertVMtoLserver_result.csv.
The details configured in the CSV configuration file are displayed as is.
The details configured in the CSV configuration file are displayed as is.
The details configured in the CSV configuration file are displayed as is.
The details configured in the CSV configuration file are displayed as is.
The post-execution status of the loading operation for each VM is displayed.
"OK" indicates that loading was successful, while "NG" indicates failure.
Error messages generated after failed operations are displayed.
Example
Output Example of the CSV Results File
VMGuestName,Label,Comment,FolderName,Result,Note /VMHostPool/192.168.24.138/test1,,,FolderA,NG,FJSVrcx:ERROR:67280:test1:convert not supported. (already in use) /VMHostPool/192.168.24.138/test2,,,FolderA,NG,FJSVrcx:ERROR:67280:test2:convert not supported. (already in use) /VMHostPool/192.168.24.138/ls-test,,,,NG,FJSVrcx:ERROR:69133:operation not possible because power is OFF /VMHostPool/192.168.24.138/test3,,,,OK, /VMHostPool/192.168.24.138/test4,,,,OK, /VMHostPool/192.168.24.138/test5,,,,OK, /VMHostPool/192.168.24.138/test6,,,,OK, /VMHostPool/192.168.24.138/test7,,,,OK, /VMHostPool/192.168.24.138/test8,,,,OK, /VMHostPool/192.168.24.138/test9,,,,OK, /VMHostPool/192.168.24.138/test10,,,,OK,
OS administrator
Admin server
> convertVMtoLServer -file D:\convert_test\vm_test1.csv
VmGuest Convert Start
VmGuest:test3 is converting
VmGuest:test4 is converting
VmGuest:test3 convert completed
VmGuest:test4 convert completed
VmGuest Convert End
This command returns the following values:
The command executed successfully.
An error has occurred.
Note