Unable to set IP address for VM creation using createVmBasedOnTemplate

Hi,
I'm trying to create VM using LifeCycleService - createVmBasedOnTemplate api
The VM gets created and i m able to power on
The ethernet cards are inactive when i checked thorugh console and IP address is not set
So i'm unable to login to the VM using the IP address
Below is the code snippet for reference
// CreateLifeCycleServiceClient lifeCycleServiceClient
LifecycleService.TemplateVmConfig templateVMConfig = new VirtualMachineController.LifecycleService.TemplateVmConfig();
templateVMConfig.serverPoolName = "server pool name";
templateVMConfig.templateName = "mytemplate";
templateVMConfig.consolePassword = "password1";
templateVMConfig.guestLogin = "guestuser1";
templateVMConfig.guestLoginPassword = "password1";
templateVMConfig.vmName = "rhel5_sample";
templateVMConfig.haEnable = false;
LifecycleService.NICConfig nic = new VirtualMachineController.LifecycleService.NICConfig();
nic.name = "VIF0";
nic.bridge = "xenbr0";
nic.ipAddress = "10.10.10.227";
nic.subnetMask = "255.255.255.128";
nic.defaultGateway = "10.10.10.129";
nic.domainName = "localhost.localdomain";
nic.hostName = "rhel5_sample";
nic.macAddress = "00:16:3E:09:56:C2";
nic.dnsServer = "";
nic.frontEndName = "rhel5_sample";
nic.qosEnabled = true;
nic.rateLimit = 100;
LifecycleService.NetworkConfType oNetworkConfType = new LifecycleService.NetworkConfType();
oNetworkConfType.type = "Static";
nic.networkConfType = oNetworkConfType;
LifecycleService.NetworkType oNetworkType = new VirtualMachineController.LifecycleService.NetworkType();
oNetworkType.networkType = "ioemu";
nic.networkType = oNetworkType;
//nic.set
LifecycleService.NICConfig\[] vifs = new VirtualMachineController.LifecycleService.NICConfig[] { nic };
templateVMConfig.vif = vifs;
vm = lifeCycleServiceClient.createVmBasedOnTemplate(templateVMConfig);
Please help
Edited by: user12180212 on Nov 6, 2009 5:16 AM
Edited by: user12180212 on Nov 6, 2009 5:17 AM
Edited by: user12180212 on Nov 6, 2009 5:18 AM

Hi,
I checked out the log file but there were no exceptions
Am i missing something to set the IpAddress ?
Log - for vm creation
"2009-11-09 07:15:10" INFO=> new_async_task_ext: success. ->cp_vm ('/OVS/seed_pool/RHEL5_1C1G_149', '/OVS/running_pool/575_SampleVM3') => 875AD9EC47EC43E599CC7482ACB861E9
"2009-11-09 07:15:10" INFO=> cp_vm: '/OVS/seed_pool/RHEL5_1C1G_149' -> '/OVS/running_pool/575_SampleVM3'
"2009-11-09 07:15:11" INFO=> directcall_in_asyncenv: success. utl_get_vm_size ('/OVS/seed_pool/RHEL5_1C1G_149', '875AD9EC47EC43E599CC7482ACB861E9') => success:size=10241
"2009-11-09 07:15:11" INFO=> directcall_in_asyncenv: success. utl_get_storage_repos ('875AD9EC47EC43E599CC7482ACB861E9',) => success:repos=/OVS;free_space=301273
"2009-11-09 07:15:11" INFO=> utl_cp_vm: vm('/OVS/seed_pool/RHEL5_1C1G_149') -> vm('/OVS/running_pool/575_SampleVM3') start...
"2009-11-09 07:19:25" INFO=> xen_correct_qos_cfg: vm_cfg('/OVS/running_pool/575_SampleVM3/vm.cfg')=>success.
"2009-11-09 07:19:25" INFO=> xen_clear_vif_mac: success. vm('/OVS/running_pool/575_SampleVM3')
"2009-11-09 07:19:25" INFO=> xen_correct_qos_cfg: vm_cfg('/OVS/running_pool/575_SampleVM3/vm.cfg')=>success.
"2009-11-09 07:19:25" INFO=> xen_remove_shared_disk: success. vm('/OVS/running_pool/575_SampleVM3').
"2009-11-09 07:19:25" INFO=> regenuln_uuid: /OVS/running_pool/575_SampleVM3/vm.cfg.
"2009-11-09 07:19:25" DEBUG=> regenuln_uuid: System.img.
"2009-11-09 07:19:26" DEBUG=> regenuln_uuid: mount -o loop System.img /tmp/tmpJ8Ag17ovs_mount_point failed.
"2009-11-09 07:19:26" INFO=> xen_update_uuid: success. vm('/OVS/running_pool/575_SampleVM3/vm.cfg') uuid=65104130-1e5e-18cf-163a-460b853e0c85
"2009-11-09 07:19:26" INFO=> utl_cp_vm: vm (/OVS/running_pool/575_SampleVM3) created!
"2009-11-09 07:19:26" INFO=> directcall_in_asyncenv: success. utl_cp_vm ('/OVS/seed_pool/RHEL5_1C1G_149', '/OVS/running_pool/575_SampleVM3', '875AD9EC47EC43E599CC7482ACB861E9') => success:size=10241
"2009-11-09 07:19:26" INFO=> cp_vm: '/OVS/seed_pool/RHEL5_1C1G_149' -> '/OVS/running_pool/575_SampleVM3' => success:size=10241
"2009-11-09 07:19:26" INFO=> directcall_in_asyncenv: success. cp_vm ('/OVS/seed_pool/RHEL5_1C1G_149', '/OVS/running_pool/575_SampleVM3', '875AD9EC47EC43E599CC7482ACB861E9') => success:size=10241
"2009-11-09 07:20:12" INFO=> xen_correct_qos_cfg: vm_cfg('/OVS/running_pool/575_SampleVM3/vm.cfg')=>success.
"2009-11-09 07:20:12" INFO=> xen_set_vifs: success. vm('/OVS/running_pool/575_SampleVM3') set vif_cfg=00:16:3E:09:56:C2,xenbr0,ioemu, mode=setall, scope=cfg
"2009-11-09 07:20:12" INFO=> set_vm_vifs: vm('/OVS/running_pool/575_SampleVM3') vif_cfg=00:16:3E:09:56:C2,xenbr0,ioemu scope=cfg => rs=success
"2009-11-09 07:20:12" INFO=> xen_set_vm_vnc_password: success. vm_path('/OVS/running_pool/575_SampleVM3')
"2009-11-09 07:20:12" INFO=> set_vm_vnc_password: success. vm_path('/OVS/running_pool/575_SampleVM3') => success
"2009-11-09 07:20:12" INFO=> set_vm_policy: vm('/OVS/running_pool/575_SampleVM3') policy=[] append=False=> success.
Log when VM is  powered on
"2009-11-09 07:34:21" INFO=> xen_correct_qos_cfg: vm_cfg('/OVS/running_pool/575_SampleVM3/vm.cfg')=>success.
"2009-11-09 07:34:21" INFO=> xen_correct_cfg: success. vm('/OVS/running_pool/575_SampleVM3') => cfg_file('/OVS/running_pool/575_SampleVM3/vm.cfg')
"2009-11-09 07:34:24" INFO=> xen_start_vm: success. vm('/OVS/running_pool/575_SampleVM3')
"2009-11-09 07:34:24" INFO=> start_vm: vm('/OVS/running_pool/575_SampleVM3') on srv('10.237.214.149') => success
"2009-11-09 07:34:24" INFO=> start_vm: success. vm('/OVS/running_pool/575_SampleVM3') ip=''

Similar Messages

  • Unable to set email address for user MySite in SharePoint2013

    Hi,
    I've a SharePoint Ent farm with a MySite Host Site Collection created. Under that, I've got some users having their own MySites.
    Now, the problem is, I'm unable to get the link for editing the user's email address after logging in to the MySite under the credentials of the particular user. 
    Can anybody please suggest. Is this field at all editable?
    Thanks,
    Arnab

    Hi John,
    Elaborating...
    I've created a MySite Host Site Collection programmatically, say, http://test.mysitehost.local/.
    Under the same I'm creating user mysites (through SharePoint2013 Object model), say, http://test.mysitehost.local/personal/user1. (for my case "personal" is the managed path). While creating the user mysites, I'm not passing any value for the email
    address of the user. 
    Now, my question is, can I set the email address of the user from MS native portal or through powershell?
    Please note, I'm using SharePoint2013 Server.
    Thanks in advance,
    Arnab

  • Rpc.nfsd: unable to set any sockets for nfsd

    Hi all!
    I have problem..
    [root@myhost ~]# /etc/rc.d/nfs-server restart
    :: Stopping rpc.mountd daemon [FAIL]
    :: Mounting nfsd filesystem [DONE]
    :: Exporting all directories [DONE]
    :: Starting rpc.nfsd daemon [BUSY]
    rpc.nfsd: unable to resolve ANYADDR:nfs to inet address: Servname not supported for ai_socktype
    rpc.nfsd: unable to set any sockets for nfsd
    My configs:
    - daemons in rc.conf
    DAEMONS=(syslog-ng crond network @adsl @iptables @sshd @rpcbind @nfs-common @nfs-server @alsa @cups !deluged hal @inadyn !netfs slim)
    - /etc/hosts.allow (server: 192.168.2.1, client: 192.168.2.2)
    sshd: 192.168.2.2/255.255.255.255
    ALL: 192.168.2.2/255.255.255.255
    - /etc/exports
    /home/kate/Torrents/ 192.168.2.2/255.255.255.255(rw,fsid=0,no_subtree_check,async)
    Any ideas?
    Last edited by gard (2010-09-11 07:18:35)

    I have same problem and i'm using networkmanager (notebook, wifi). My DAEMONS section on rc.conf:
    DAEMONS=(... networkmanager alsa kdm cups bluetooth rpcbind nfs-common nfs-server netfs autofs ...)
    When i try automatically connect on boot, i have same problem (but network work now without X starts, after console login).
    When i try
    [stepan@stepan-nb ~]$ sudo /etc/rc.d/nfs-server restart
    :: Stopping rpc.mountd daemon [FAIL]
    :: Stopping rpc.nfsd daemon [DONE]
    :: Unexporting all directories [DONE]
    :: Mounting nfsd filesystem [DONE]
    :: Exporting all directories [DONE]
    :: Starting rpc.nfsd daemon [DONE]
    :: Starting rpc.mountd daemon [DONE]
    after boot and login, everything works, but on boot nfs-server init script fails to start.
    Last edited by Tapan (2010-01-06 19:22:25)

  • Has anyone encounter this "unable to set node credentials for /LDAPv3"?

    Install and updated the Macmini server to 10.6.5. It working fine until try to access the Server Preferences and error message "unable to set node credentials for /LDAPv3/127.0.0.1 with the record name **." Looking at the logs and has servermgr_accounts got error 5203 trying to auth to local LDAP node. Has anyone found solution for this problem?
    Thanks
    Luis

    Thank you for responding. This is what we are using in a small company a Cisco Switcher, and don't have a router.
    If you're getting connections off of the network out to the Internet, then yes, there is a router involved. Somewhere.
    MacMini server I have an IP address of 169.254.xxx.xx, before IP address was 192.254.xxx.xx.
    That IP address implies that the box isn't getting an IP address from a DHCP server; that's the self-assigned block. (Officially, these addresses are in the Automatic Private Address Configuration Automatic Private IP Addressing (APIPA) IANA reserved range.)
    Which implies that at least two problems lurk.
    Mac OS X Server must have a static IP address. Not DHCP-assigned dynamic addresses.
    And a DHCP server isn't answering the IP address requests. (Well, not unless the DHCP server is passing out addresses in the self-assigned block, and that wouldn't likely be considered best-practice. More likely an IP address from a DHCP address pool allocated within a subnet somewhere in the 10.0.0.0/8 or 172.16.0.0/12 or (less desirably) 192.168.0.0/16 private blocks.
    The Firewall is not turned on. Its purpose is for guest to access files, without deleting or modifying it.
    When you're debugging problems, simplify. Divide the problem. With network services, test the lowest levels of the stack. Then work your way up the stack; toward higher-level services and mechanisms. Then add more parts and pieces, and DHCP and related.
    IP hosts operating at 169.254.0.0/16 addresses (for longer than it takes to get an IP address from DHCP) usually implies that the network configuration is invalid or the DHCP server is not working.
    I did not expect that Open Directory would be a big problem.
    If DNS services or IP routing is misconfigured, then the whole rest of the stack will be unstable at best. The configuration order (and debugging order) involves functional IP networking and hardware, first and foremost. Then having functional DNS. Then Open Directory and then Kerberos. Then the rest of the stack.

  • Unable to set import lock for software component version

    Hi team,
    While importing object (.tpz) file into integration repository we are getting error message as below.
    ======
    Unable to set import lock for software component version <XXXX>-COMMON,1.0 of <XXX>.com because user <userid> is currently importing data to this component
    try again once user <userid> has finished importing data
    =======
    We checked with the user and found he is not doing any activity in fact he logged off. the developer wants to import and how do we terminate this import attement and proceed with new importing of the  same object
    We wan't to avoid cache refresh as this is production environment
    We already performed clear SLD data cache with in the IR not for whole.
    Thanks
    Vijay

    Hi Vijay,
        Thefollowing threads speak about the locking issues with the IR objects .Hope this will help you out in resolving the issue.
    http://help.sap.com/saphelp_erp2005/helpdata/EN/93/a3a74046033913e10000000a155106/content.htm
    Internal lock version management : Unable to copy objects
    Thanks,
    Ram.

  • Unable to set node credentials for /LDAPv3/127.0.0.1 with record name n`.

    When starting Server Preferences, I receive a window with the following text:Unable to set node credentials for /LDAPv3/127.0.0.1 with record name n`. There may be an error with the Open Directory Service.
    This started to occur after I used the command changeip to change the ip of the service.
    I've tried (Re)starting Open Directory Service, but that doesn't resolve it.
    Does anyone know how I can resolve this error? I'd like to be able to user Server Preferences again!

    One of our servers (10.6.8)  that had been running for months suddenly started generating that error message when trying to access Server Preferences.  Workgroup Manager, which seems to use the same login information, accessed just fine. We tried deleting access information in Keychain, to no avail. What finally worked for US was:
    - Via Server Admin, (in Open Directory > Settings > General) change the Role: Open Directory from Master to Standalone
    - This (for us) then restored access to Server Prefs
    - Use Server Admin to change the Role back to Master
    Warnings - 1)  backup first  2) you will have to reinstall the master password, and  3) ALL accounts were lost and had to be recreated.

  • [nQSError: 77030] Oracle BI Presentation Server Connection Error: Unable to resolve the address for cn.

    Hi Experts,
    When I use Agent functionality to send email in BIEE 11.1.1.7.0, it will generate the following error message as below:  Are you facing the same problem ? Please help me,Thanks very much.
    Global Error: [nQSError: 77030] Oracle BI Presentation Server Connection Error: Unable to resolve the address for cn.
    Error Codes: AXSBMN8D:
    The operation completed successfully.

    Can you try doing telnet to SMTP server from where BI server is installed and let us know the outcome.Just want to check if any firewall is blocking
    telnet hostname portnumber
    Thanks,

  • Unable to set parent context for this record.

    Has anyone seen this error when doing an import? In my case I was doing an import to the Opportunity Product record.
    the full error message is
    Unable to set parent context for this record. Please make sure that the parent record is valid and you have permission to modify the parent record.
    I was attempting to populate one field on the record with data.

    Hi,
    Was there a resolution to this that you found, cause it's driving me crazy.
    We've resorted to manually created a product in OnDemand with an EUI and exported it but we can't reimport it to overwrite it as we get the same error message "Unable to set parent context for this record"
    The opty and the product both exist as they got manually created, although when you export them there are now 2 of them (I see this in reporting as well????)
    Besides the Opty-Product External ID what else is required to do an import to overwrite?
    regards
    Alex

  • Problem with XI objects transport - Unable to set import lock for SWC

    Hi guys!
    I try to import objects from dev to qa but I'm getting following error:
    Unable to set import lock for software component version SWC_xxxx , 1.0 of company.com because user OSALUDEW is currently importing data to this component Try again once user OSALUDEW has finished importing data
    The problem is, I'm not importing anything.. Well, I try to import, but something is hanging there from previous time.
    How to solve this issue?
    Thank you!
    Olain

    Well,
    I closed all the applications - repositories (dev, qa), directories (dev, qa), then started qa repository again and imported the objects successfully
    ....hmmm....
    Olian

  • Unable to set default program for .pdf

    CURRENT PROBLEM:
    As show in print screen, when i attempt to set default program nth happens at all. The only way i can open any .pdf file now is by 1st opening adobe reader 9 and select the .pdf file manually
    INITIAL STAGE OF PROBLEM:
    Problem started after upgrading to windows 7 from vista. Windows 7 is able to recognise adobe reader 8 as a valid default program since it is in windows.old. Thus the default for .pdf is adobe reader 8 (it was installed in vista).
    Subsequently, installing adobe reader 9 isof  no use as it will be ignored and windows 7 will only continue to use adobe reader 8 as the default reader when i try to open a .pdf file, unless if i manually opened adobe reader 9 and selected a .pdf file manaually
    However, I am unable to uninstall adobe reader 8 as the "program and feature" can only identify adobe reader 9 and does not think that adobe reader 8 exists.
    ATTEMPTs TO SOLVE:
    Thus, I removed windows.old by using the disk cleanup. However, I am still unable to set adobe reader 9 as the default reader. Instead, .pdf are no longer accessible/"open-able" unless I 1st opened adobe reader 9 and then selected a .pdf manaually.
    I've attempted reinstalling and restarting comps etc, they dun seem to help. I suspect the OS is now only able to recognise adobe reader 8 from windows.old as a valid program directory due to some registry issues since it was initally set as the default when i 1st upgraded the OS. Now that adobe reader 8 is removed, there might be some corrupted registry somewhere that needs to be set right again?
    Really need help with this. Thanks a million.

    Thanks guys for showing interest in helping.
    As you guys can see, there's no adobe reader when u expand. Also, I already browsed the reader just in case too. Thus expanding doesnt help. =(
    Also, I cant seem to find the "file type" tab in folder options

  • 206 unable to set alert only for certain group

    Hi,
    is it a symbian unwanted feature that user is unable to set Nokia 206
    profile to alert for certain group (even though this kind of functionality is
    available on this phone)?
    To be more precise user is able to set profile to alert only for certain
    group but this setting has no effect (phone rebooted, groups recreated, etc. no effect)
    This feature has been available and workin in previous Nokia phones
    since last decace - is it a software quality issue or what.
    Best regards,
    Hez

    It is the Application Pool account making the query to retrieve the groups, so you would need to establish a trust from Domain B -> A.
    Trevor Seward
    Follow or contact me at...
    &nbsp&nbsp
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • Photosmart printer will not connect to network, unable to set IP Address Manually

    My Photosmart printer has worked fine for a long time but it now refuses to connect to the network.  It is wired into the router and I have changed the lead and this shows no chnage.  The Printer network set-up shows an IP address of 0.0.0.0 in manual mode and if I reset this and press OK it immediately reverts to 0.0.0.0.  I've also tried putting the printer into Automatic IP address but it still fails.  Subnet Mask and Default Gateway also show as 0.0.0.0.  I can reset the Subnet Mask and Gateway to the correct levels but as soon as I go back to set the IP address they revert to 0.0.0.0.  The printer will work from a USB connection but it will then not share correctly.   Is it possible to reboot the onboard program?

    Oh, an ISP-supplied router.  Uggh.
    OK, remove the phone (DSL) cord from the back of the router.  Cycle power on the router, then attach the printer with the phone cord disconnected.
    Now, Let's set a static IP address for the printer:
    - Print a Network Config Page from the front of the printer. Note the printer's IP address.
    - Type that IP address into a browser to reveal the printer's internal settings.
    - Choose the Networking tab, then Wireless along the left side, then the IPv4 tab.
    - On this screen you want to set a Manual IP. You need to set an IP address outside the range that the router automatically sets (called the DHCP range). You can find the DHCP range of the router using its internal settings page or in its manual. Use the CD that came with your router or type the router's IP address (ends in .1) into a browser.
    - Use 255.255.255.0 for the subnet (unless you know it is different, if so, use that)
    - Enter your router's IP (on the Network Config Page) for the gateway and first DNS. Leave the second one blank.
    - Click 'Apply'.
    Now, shut down the router and printer, start the router, wait, then start the printer.
    After this you may need to redo 'Add a Printer' using the new IP address.
    Say thanks by clicking "Kudos" "thumbs up" in the post that helped you.
    I am employed by HP

  • How to set FROM ADDRESS for EMAIL activity in Process Flow

    Hi all,
    Can any one tell how to set(which address) FROM ADDRESS for EMAIL activity in Process Flow?
    Thanks,
    Suvvi

    Did you set what OWB guide says:
    To execute a process flow with an email activity, you may need to access different host machines and ports. New security measures implemented in Oracle Database 11g Release 1 restrict access to hosts and ports. You must explicitly grant access to hosts and ports that the email activity accesses using the DBMS_NETWORK_ACL_ADMIN package.
    For example, the user OWBSYS needs to send an email through the mail server mail.example.com using port 25. The DBA must perform the following steps:
    1. Create an Access Control List (ACL) for the user OWBSYS using the following command:
    EXECUTE DBMS_NETWORK_ACL_ADMIN.CREATE_ACL
    (’acl_for_owb_cc.xml’,’ACL for Control Center’,’OWBSYS’,’CONNECT’);
    The ACL has no access control effect unless it is assigned to network target.
    2. Assign the Access Control List (ACL) to a network host, and optionally specify a TCP port range. Use the following command:
    EXECUTE DBMS_NETWORK_ACL_ADMIN.ASSIGN_ACL (’acl_for_owb_cc.xml’,’mail.example.com’,25)
    3. Commit the changes made using the COMMIT command.

  • Unable to set search context for AD resource

    Hi,
    I am unable to set a search context into my AD resource (IdM 8.1 patch 9, AD gateway).
    When I traced the gateway - I found it completely ignores the context filter values I defined.
    Anyone has solution?
    R.

    Hi,
    I am not talking about a query but about a regular AD resource configuration - so there is no code to provide.
    Try putting a context in AD resource (to search for specific type of users for example) and see if it works.
    R.

  • Set Reply-To for Shared Mailbox Using Existing Address?

    We have a shared mailbox named [email protected] Is there a way to set the reply-to email address for that shared mailbox to [email protected] if [email protected] is an existing mailbox?

    No, unfortunately you can not have same Reply-To or Primary SMTP address to two different mailboxes.
    Alternatively you can create a transport rule forward a mail to [email protected] if it is addressed to [email protected] or you could set forwarder on mailbox level too...
    Blog |
    Get Your Exchange Powershell Tip of the Day from here

Maybe you are looking for

  • Print inventory posting after 'reconcile'

    Hello In the transaction inventory/inventory transactions/inventory posting, you post the difference after counting. In the SAP help files is written that you can print the screen before you select the button u2018reconcileu2019. We want to print the

  • How to change the date format of Sharepoint 2010 to dd MMM yyyy

    Hi, I am looking to change the datetime format with in the modified column from mm/dd/yy to dd MMM yyyy. I dont want to create calculated field with dd MMM yyyy format. I want the actual modified column value to be represented as dd MMM yyyy format.

  • EM can connect to DB to export.

    I am new to Oracle, so. I first can connect to the DB in stand alone mode, no prolem. Then through the OEM I log in ok but when I go to access the DB it asks for the user name and password, I use the sameones as in stand along but get ORA-01031 - ins

  • HT1937 how do I get sprint to give me the unlock code

    I purchased an Sprint Iphone 4 on craigslist I want to have it activated on boost mobile but Im being told I need to have phone unlocked, I called Sprint and Im getting the run around what is my next step

  • I want to cancel the order

    hi Sir/Miss, i want to be cancel the order,  on the day is 10/9/13 , Hung Mei ching Vgujhdhkjggghhhf Hhjhffg HKG 訂單編號: MHMMJB9FQL