![Oracle VM User Manual Download Page 28](http://html1.mh-extra.com/html/oracle/vm/vm_user-manual_1646180028.webp)
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
Summary of Contents for VM
Page 1: ...Oracle VM Server User s Guide Release 2 1 E10898 04 June 2009 ...
Page 10: ...x ...
Page 16: ...Oracle VM 1 4 Oracle VM Server User s Guide ...
Page 24: ...Monitoring Oracle VM Agent 3 4 Oracle VM Server User s Guide ...
Page 40: ...Installing Paravirtual Drivers 4 16 Oracle VM Server User s Guide ...
Page 44: ...Using the xm Command Line Interface 5 4 Oracle VM Server User s Guide ...
Page 50: ...Migrating a Domain 6 6 Oracle VM Server User s Guide ...
Page 54: ...Removing a Repository 7 4 Oracle VM Server User s Guide ...
Page 68: ...Enabling HA 9 8 Oracle VM Server User s Guide ...
Page 88: ...Oracle VM Server Configuration File B 6 Oracle VM Server User s Guide ...
Page 96: ...Oracle VM Agent Deployment D 4 Oracle VM Server User s Guide ...
Page 104: ...Attaching to a Console with the Grub Boot Loader E 8 Oracle VM Server User s Guide ...
Page 108: ...Xen Glossary 4 ...
Page 112: ...Index 4 ...