[one-users] double cdroms

Jurgen Weber jurgen.weber at theiconic.com.au
Tue Aug 7 15:05:08 PDT 2012


Hi

I am struggling with a new OpenNebula install, I have only dealt with 
VMWare previosuly and do not have much 'vm + cloud' experience, so it 
has been a learning process over the last week to understand all of the 
concepts and what not... That said, I have a problem with OpenNebula + 
SunStone. My system so far:

# uname -a
Linux chaos 3.2.0-3-amd64 #1 SMP Thu Jun 28 09:07:26 UTC 2012 x86_64 
GNU/Linux

ii  opennebula 3.4.1-3+b1                           controller which 
executes the OpenNebula cluster services
ii  opennebula-common 3.4.1-3                              empty package 
to create OpenNebula users and directories
ii  opennebula-sunstone 3.4.1-3                              web 
interface to which executes the OpenNebula cluster services
ii  opennebula-tools 3.4.1-3                              Command-line 
tools for OpenNebula Cloud
ii  ruby-opennebula 3.4.1-3                              Ruby bindings 
for OpenNebula Cloud API (OCA)
ii  kvm 1:1.1.0+dfsg-3                       dummy transitional package 
from kvm to qemu-kvm
ii  qemu-kvm 1.1.0+dfsg-3                         Full virtualization on 
x86 hardware
ii  libvirt-bin 0.9.12-3                             programs for the 
libvirt library
ii  libvirt0 0.9.12-3                             library for 
interfacing with different virtualization systems
ii  python-libvirt 0.9.12-3                             libvirt Python 
bindings

I have Virutal Networks, Datastores, Hosts and Images setup. I feel I 
have this all down. Now, to the templates, I have the following 
template,  I am attempting to boot off an install CD-ROM to install the 
system, this is to install a Debian VM. I later found Debian contextual 
installs, that is another problem but I am going to need CDROM installs 
in the long run for windows and FreeBSD installations.

CONTEXT=[
   HOSTNAME="aether" ]
CPU="2"
DISK=[
   DRIVER="qcow2",
   IMAGE="HDD",
   IMAGE_UNAME="oneadmin",
   TARGET="hda",
   TYPE="DISK" ]
DISK=[
   DRIVER="raw",
   IMAGE="swap",
   IMAGE_UNAME="rocket",
   TARGET="hdc",
   TYPE="SWAP" ]
DISK=[
   DRIVER="raw",
   IMAGE="Debian Squeeze",
   IMAGE_UNAME="oneadmin",
   TARGET="hdb",
   TYPE="CDROM" ]
GRAPHICS=[
   LISTEN="172.20.1.100",
   PASSWD="password",
   PORT="5901",
   TYPE="vnc" ]
MEMORY="4GB"
NAME="aether"
NIC=[
   NETWORK="aether",
   NETWORK_UNAME="rocket" ]
OS=[
   ARCH="x86_64",
   BOOT="hd" ]
RAW=[
   TYPE="kvm" ]
TEMPLATE_ID="12"
VCPU="2"

The problem? When the VM gets deployed, a 
/var/lib/one/datastores/0/29/deployment.0 is created in XML for kvm. 
this file looks like:

<domain type='kvm' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'>
     <name>one-29</name>
     <vcpu>2</vcpu>
     <memory>4096</memory>
     <os>
         <type arch='x86_64'>hvm</type>
         <boot dev='hd'/>
     </os>
     <devices>
         <emulator>/usr/bin/kvm</emulator>
         <disk type='file' device='disk'>
             <source file='/var/lib/one//datastores/0/29/disk.0'/>
             <target dev='hda' bus='ide'/>
             <driver name='qemu' type='qcow2' cache='default'/>
         </disk>
         <disk type='file' device='disk'>
             <source file='/var/lib/one//datastores/0/29/disk.1'/>
             <target dev='hdc' bus='ide'/>
             <driver name='qemu' type='raw' cache='default'/>
         </disk>
         <disk type='file' device='cdrom'>
             <source file='/var/lib/one//datastores/0/29/disk.2'/>
             <target dev='hdb' bus='ide'/>
             <readonly/>
             <driver name='qemu' type='raw' cache='default'/>
         </disk>
         <disk type='file' device='cdrom'>
             <source file='/var/lib/one//datastores/0/29/disk.3'/>
             <target dev='hdb'/>
             <readonly/>
             <driver name='qemu' type='raw'/>
         </disk>
         <interface type='bridge'>
             <source bridge='aether'/>
             <mac address='02:00:ac:14:02:69'/>
         </interface>
         <graphics type='vnc' listen='172.20.1.100' port='5901' 
passwd='password'/>
     </devices>
     <features>
         <acpi/>
     </features>

</domain>

As you can see, there are two CDROMs, why!? it is not in my template! it 
creates one randomly and for no reason. I read somewhere KVM does not 
support 2x CDROMs so this has be baffled.

Any help would be appreciated.

Thanks

-- 
Jurgen Weber

Systems Engineer
IT Infrastructure Team Leader

THE ICONIC | E jurgen.weber at theiconic.com.au | www.theiconic.com.au




More information about the Users mailing list