4 creating a guest using virt-install, Creating a guest using virt-install – Oracle Audio Technologies E10898-02 User Manual
Page 28
Creating a Guest Using virt-install
4-4
Oracle VM Server User's Guide
# cd /OVS/seed_pool/OVM_
template_name
6.
Run the following Python command to generate a new MAC address:
# python /opt/ovs-agent-2.2/macgen.py
7.
Edit the vm.cfg file and change the line starting with
vif
to:
vif = [ 'mac=00:16:3E:xx:xx:xx', ] # for PVM
or
vif = [ 'type=netfront, mac=00:16:3E:xx:xx:xx', ] # for PVHVM
Where
00:16:3E:xx:xx:xx
is the MAC address generated in Step 6.
8.
Create and start up the guest virtual machine from the Oracle VM Server
command line:
# xm create vm.cfg
9.
Connect to the guest virtual machine's console using VNC:
a.
Find out the VNC port number by running the following:
# xm list -l OVM_
template_name
|grep location
This displays the port number assigned to the guest virtual machine's VNC
console. There may be more than one line, but there should be a line that looks
similar to:
(location 0.0.0.0:5901)
Use the port number (5901 in this example) when connecting to the guest
virtual machine using VNC Viewer.
b.
Connect to the guest virtual machine using any VNC Viewer from another
computer. For example, on Oracle Enterprise Linux, use the command:
# vncviewer
hostname
:
vnc_port
Where hostname is the IP address or host name of the Oracle VM Server, and
vnc_port is the port number found out in Step a.
c.
Complete any guest virtual machine configuration required by the template.
The guest is created and started.
4.4 Creating a Guest Using virt-install
The following example shows how to create a paravirtualized or hardware virtualized
guest using the virt-install command-line tool. This procedure uses an interactive
session. You can also pass virt-install parameters at the same time as command-line
options. In particular, kickstart options can be passed with:
virt-install -x ks=options
To create a paravirtualized or hardware virtualized guest interactively:
1.
Open a command-line shell as root, and start the interactive install process by
running the virt-install command-line tool:
# virt-install