[one-users] issue: can't specify NIC hardware type duirng VM creating

Carlos Martín Sánchez cmartin at opennebula.org
Thu Mar 10 00:26:26 PST 2011


Hi there,

There's a typo in your template, you are using MODLE instead of MODEL.

Regards,
Carlos

--
Carlos Martín, MSc
Project Major Contributor
OpenNebula - The Open Source Toolkit for Cloud Computing
www.OpenNebula.org <http://www.opennebula.org/> | cmartin at opennebula.org


On 10 March 2011 08:02, GONG YONGJIE A
<Yongjie.a.Gong at alcatel-sbell.com.cn>wrote:

>  Hi,
>
>         I’d like to create one VM with “e1000” hardware type for Ethernet interface.
> But after VM boots up, it still use default “realtek” type.
>
>         From “deployment.0”, there is no “model=e1000” parameter for NIC.
>
>         Could you help me check this or correct me if my configuration isn
> ’t right.
>
>         Thanks.
>
> Logs:
>
> [root at cloudmanager one]# onevm list
>
>    ID     USER     NAME STAT CPU     MEM        HOSTNAME        TIME
>
>    12     root    OMCP1 runn   7      2G   172.24.178.38 00 22:00:52
>
>    14     root linux-0. runn   1    512M   172.24.178.38 00 00:47:07
>
>    16     root test-OMC runn  12    512M   172.24.178.38 00 00:07:26
>
> [root at cloudmanager one]#
>
> [root at cloudmanager one]# onevm show 12
>
> VIRTUAL MACHINE 12 INFORMATION
>
>
> ID             : 12
>
> NAME           : OMCP1
>
> STATE          : ACTIVE
>
> LCM_STATE      : RUNNING
>
> START TIME     : 03/09 18:02:48
>
> END TIME       : -
>
> DEPLOY ID:     : one-12
>
> VIRTUAL MACHINE
> MONITORING
>
> USED MEMORY    : 2097152
>
> USED CPU       : 7
>
> NET_TX         : 0
>
> NET_RX         : 0
>
> VIRTUAL MACHINE
> TEMPLATE
>
> ARCH=i686
>
> BOOT=hd
>
> CPU=1
>
> DISK=[
>
>   CLONE=NO,
>
>   DISK_ID=0,
>
>   IMAGE=OMCP1,
>
>   IMAGE_ID=3,
>
>   READONLY=NO,
>
>   SAVE=YES,
>
>   SAVE_AS=3,
>
>   SOURCE=/srv/cloud/var/images/de0d6ef4e05642f928c8eae5a5a0a7b4201cfba5,
>
>   TARGET=hda,
>
>   TYPE=DISK ]
>
> EMULATOR=/usr/libexec/qemu-kvm
>
> GRAPHICS=[
>
>   LISTEN=127.0.0.1,
>
>   PORT=5913,
>
>   TYPE=vnc ]
>
> MEMORY=2048
>
> NAME=OMCP1
>
> NIC=[
>
>   BRIDGE=br0,
>
>   MAC=08:80:42:03:17:86,
>
>   MODLE=e1000 ]
>
> NIC=[
>
>   BRIDGE=br1,
>
>   MAC=08:80:42:03:18:86,
>
>   MODLE=e1000 ]
>
> VCPU=1
>
> VMID=12
>
> [root at cloudmanager one]#
>
> [root at cloudmanager one]# pwd
>
> /var/log/one
>
> [root at cloudmanager one]# cat /srv/cloud/var/images/vm-
>
> vm-linux-0.2.conf  vm-OMCP1.conf
>
> [root at cloudmanager one]# cat /srv/cloud/var/images/vm-OMCP1.conf
>
> NAME = OMCP1
>
> MEMORY = 2048
>
> CPU = 1
>
> VCPU = 1
>
> EMULATOR = /usr/libexec/qemu-kvm
>
> ARCH = i686
>
> BOOT = hd
>
> DISK = [ IMAGE= "OMCP1" ]
>
> NIC = [ MAC = "08:80:42:03:17:86", MODLE ="e1000", BRIDGE = "br0" ]
>
> NIC = [ MAC = "08:80:42:03:18:86", MODLE ="e1000", BRIDGE = "br1" ]
>
> GRAPHICS = [
>
>         TYPE = "vnc",
>
>         LISTEN = "127.0.0.1",
>
>         PORT = "5913" ]
>
> [root at cloudmanager one]#
>
> [root at host1 ~]# cat /var/lib/one/12/images/deployment.0
>
> <domain type='kvm'>
>
>         <name>one-12</name>
>
>         <vcpu>1</vcpu>
>
>         <memory>2097152</memory>
>
>         <os>
>
>                 <type arch='i686'>hvm</type>
>
>                 <boot dev='hd'/>
>
>         </os>
>
>         <devices>
>
>                 <emulator>/usr/libexec/qemu-kvm</emulator>
>
>                 <disk type='file' device='disk'>
>
>                         <source file='/var/lib/one//12/images/disk.0'/>
>
>                         <target dev='hda'/>
>
>                         <driver name='qemu' type='raw'/>
>
>                 </disk>
>
>                 <interface type='bridge'>
>
>                         <source bridge='br0'/>
>
>                         <mac address='08:80:42:03:17:86'/>
>
>                 </interface>
>
>                 <interface type='bridge'>
>
>                         <source bridge='br1'/>
>
>                         <mac address='08:80:42:03:18:86'/>
>
>                 </interface>
>
>                 <graphics type='vnc' listen='127.0.0.1' port='5913'/>
>
>         </devices>
>
>         <features>
>
>                 <acpi/>
>
>         </features>
>
> </domain>
>
> [root at host1 ~]#
>
> _______________________________________________
> Users mailing list
> Users at lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20110310/3b29a7e3/attachment-0002.htm>


More information about the Users mailing list