[one-users] KVM Qemu does not mount DATABLOCK.

Leong Marco leong.chou.kin at usj.edu.mo
Fri Mar 4 01:31:34 PST 2011


Hi all,

I have created a CentOS which is sized 2GB. I would like to add a DATABLOCK to it. However, the DATABLOCK cannot be found with fdisk -l (in the VM). It was able to mount the swap, but no the DATABLOCK.

Here is the config file that I have. Via 
dumpxml in virsh:
<domain type='kvm' id='3'>
  <name>one-103</name>
  <uuid>61d4e005-8fd1-c0b5-43f4-1f75596a8451</uuid>
  <memory>1048576</memory>
  <currentMemory>1048576</currentMemory>
  <vcpu>1</vcpu>
  <os>
    <type arch='x86_64' machine='rhel5.4.0'>hvm</type>
    <boot dev='hd'/>
  </os>
  <features>
    <acpi/>
  </features>
  <clock offset='utc'/>
  <on_poweroff>destroy</on_poweroff>
  <on_reboot>restart</on_reboot>
  <on_crash>destroy</on_crash>
  <devices>
    <emulator>/usr/bin/kvm</emulator>
    <disk type='file' device='disk'>
      <driver name='qemu' type='raw'/>
      <source file='/srv/cloud/one/var/103/images/disk.0'/>
      <target dev='hda' bus='virtio'/>
    </disk>
    <disk type='file' device='disk'>
      <driver name='qemu' type='raw'/>
      <source file='/srv/cloud/one/var/103/images/disk.1'/>
      <target dev='hde' bus='virtio'/>
    </disk>
    <disk type='file' device='disk'>
      <driver name='qemu' type='raw'/>
      <source file='/srv/cloud/one/var/103/images/disk.2'/>
      <target dev='hdd' bus='ide'/>
    </disk>
    <interface type='bridge'>
      <mac address='02:00:ac:19:04:0c'/>
      <source bridge='br0'/>
      <target dev='vnet0'/>
    </interface>
  </devices>
</domain>

The definition file.

CPU 	= 1
MEMORY	= 1024
NAME	= "Web Server"

OS = [ ARCH = x86_64, ROOT=hda ]

DISK = [ IMAGE = "base-centos-5.5-x86_64", bus = virtio, target = hda]

DISK = [IMAGE = "5gb-image", bus = virtio]

DISK = [TYPE = swap, SIZE= 1024,  target = hdd]

FEATURES = [ACPI = yes]

NIC = [	NETWORK = "Network", IP=172.25.4.12]

Please, could anyone help one this. Since I have to prepare several VM on next week for other students to play inside it.


Leong Marco
leong.chou.kin at usj.edu.mo



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20110304/c87fcf59/attachment.htm>


More information about the Users mailing list