4 creating a guest using virt-install, Creating a guest using virt-install – Oracle Audio Technologies E10898-02 User Manual
Creating a Guest Using virt-install
Oracle VM Server User's Guide
# cd /OVS/seed_pool/OVM_
Run the following Python command to generate a new MAC address:
# python /opt/ovs-agent-2.2/macgen.py
Edit the vm.cfg file and change the line starting with
vif = [ 'mac=00:16:3E:xx:xx:xx', ] # for PVM
vif = [ 'type=netfront, mac=00:16:3E:xx:xx:xx', ] # for PVHVM
is the MAC address generated in Step 6.
Create and start up the guest virtual machine from the Oracle VM Server
# xm create vm.cfg
Connect to the guest virtual machine's console using VNC:
Find out the VNC port number by running the following:
# xm list -l OVM_
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
Use the port number (5901 in this example) when connecting to the guest
virtual machine using VNC Viewer.
Connect to the guest virtual machine using any VNC Viewer from another
computer. For example, on Oracle Enterprise Linux, use the command:
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.
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:
Open a command-line shell as root, and start the interactive install process by
running the virt-install command-line tool: