User`s guide
Operations on Virtual Machines and Containers 30
Choosing OS EZ Template
Before starting to create a Container, you shall decide on which OS EZ template your Container
will be based. There might be several OS EZ templates installed on the server and prepared for
the Container creation; use the vzpkg list command to find out what OS EZ templates are
available on your system:
# vzpkg list -O
redhat-el5-x86 2009-05-21 23:59:44
fedora-core-8-x86 2009-12-11 12:45:52
The -O option passed to the vzpkg list command allows you to list only OS EZ templates
installed on the server. As you can see, the redhat-el5-x86 and fedora-core-8-x86
OS EZ templates are currently available on the server. The time displayed beyond OS EZ
templates indicates when the corresponding EZ template was cached.
You can also use the --with-summary option to display brief information on the installed
OS EZ templates:
# vzpkg list -O --with-summary
redhat-el5-x86 :Red Hat Enterprise Linux v.5 Server EZ OS template
fedora-core-8-x86 :Fedora Core 8 EZ OS template
For complete information on the vzpkg list command, you can consult the Parallels
Command Line Reference Guide.
Performing Initial Configuration
Before starting your newly created virtual machine and Container, you first need to configure it.
This section describes the configuration steps for virtual machines and Containers.
Configuring Network Settings
To be accessible from the network, a virtual machine and Container must be assigned a correct
IP address. DNS servers must also be configured. The session below illustrates setting the main
network parameters for a virtual machine having the name of MyVM:
To set the IP address of 10.0.186.1, run this command:
# pctl set MyVM --device-set net0 --ipadd 10.0.186.1
(net0 is the network card to assign the IP address to.)
To set the DNS server IP address of 192.168.1.165, run this command:
# pctl set MyVM --nameserver 192.168.1.165
To set the aforementioned parameters for a Container, just replace the virtual machine name
(MyVM) with the corresponding Container ID (e.g. 101). You also need to specify the –-save
flag in the commands above if you wish to save all the parameters to the Container
configuration file, while running these commands for a virtual machine will automatically save
the changes in its configuration file.
Note: You can configure the network settings only inside virtual machines that have Parallels
Tools installed.










