Ssh in virtual machine

I want to connect to my virtual machine (vm player) archlinux (and CentOS ) with my host - arch linux through ssh. I searched in archwiki secure shell but found nothing related to the task except installation of ssh which i did in both guest and host. but i dont know much about networking.. any helping hand ?

Before you get to ssh, you need to configure networking between the host and the guest. Arch wiki has some vmware related stuff - if you don't find the answer there, google should fill in the gaps.
FYI vmware is totaly unsupported on Arch - doesn't mean it won't work, but it may be harder to get help with it. You might consider switching to virtualbox, which is fully supported.

Similar Messages

  • AnyConnect VPN on Mac - Can't SSH to Virtualbox Virtual Machines

    Hi,
    I'm running AnyConnect version 3.1.05170 on my Mac.  I'm also doing SW Development on multiple Virtual Machines on my Mac via VirtualBox.  When I connect via VPN, I can no longer SSH to my Virtual Machines.  I'm sure there is a rules setting or something that is killing my "Host Only Network" in VirtualBox so I can no longer access them.  The worst part is that even if I Quit the AnyConnect Client, I still can't SSH to my Virtual Machines, so whatever rule is put in place doesn't go away when I disconnect the tunnel.
    Has anyone witnessed this or have a suggestion on how to go about solving it?
    Thanks,
    - Curt

    Hello,
    I just encountered the same problem. To solve it, I checked the box "Allow Local (LAN) access when using VPN (if configured)" in the preferences of AnyConnect.
    It's working fine for me but I am using Parallels and not VirtualBox.
    Regards
    David

  • Cannot start Virtual Machine - OVMAPI_4010E Attempt to send command: dispat

    1. Instaleed Virtualbox on Windows 7
    2. Installed OracleVM-Manager-3.1.1-build365.ova and OracleVM-Server-3.1.1-build365.ova
    3. Completed repository and server pool. They are all runing fine.
    4. Crated a Virtual Machine for Linux and tried to start the Virtual Machine and got the following error.
    Any comments or help would be appreciated.
    Thank you...
    ob Construction Phase
    begin()
    Appended operation 'Virtual Machine Start' to object '0004fb00000600009526838f3d4be255 (first vm)'.
    Appended operation 'Bridge Configure Operation' to object '0004fb0000200000b137e9cddcdd09b8 (network.BondPort (1) in myserver1.example.com)'.
    commit()
    Completed Step: COMMIT
    Objects and Operations
    Object (IN_USE): [VmDiskMapping] 0004fb00001300008e359279b91c2804
    Object (IN_USE): [Vnic] 0004fb0000070000cca7bba64be932d0 (00:21:f6:00:00:09)
    Object (IN_USE): [VirtualMachine] 0004fb00000600009526838f3d4be255 (first vm)
    Operation: Virtual Machine Start
    Object (IN_USE): [BondPort] 0004fb0000200000b137e9cddcdd09b8 (network.BondPort (1) in myserver1.example.com)
    Operation: Bridge Configure Operation
    Object (IN_USE): [VmDiskMapping] 0004fb0000130000d15838ce48a895f1
    Object (IN_USE): [VirtualCdrom] EMPTY_CDROM
    Object (IN_USE): [VirtualDisk] 0004fb0000120000efbd814b4b7c0e8d.img
    Job Running Phase at 14:57 on Sun, Jul 29, 2012
    Job Participants: [c7:c1:6e:69:b9:a7:41:d6:8d:8e:bc:d5:fd:c3:c4:7d (myserver1.example.com)]
    Actioner
    Starting operation 'Virtual Machine Start' on object '0004fb00000600009526838f3d4be255 (first vm)'
    Completed operation 'Virtual Machine Start' completed with direction ==> LATER
    Starting operation 'Bridge Configure Operation' on object '0004fb0000200000b137e9cddcdd09b8 (network.BondPort (1) in myserver1.example.com)'
    Bridge [192.168.1.0] already exists (and should exist) on interface [bond0] on server [myserver1.example.com]; skipping bridge creation
    Completed operation 'Bridge Configure Operation' completed with direction ==> DONE
    Starting operation 'Virtual Machine Start' on object '0004fb00000600009526838f3d4be255 (first vm)'
    Job Internal Error (Operation)com.oracle.ovm.mgr.api.exception.FailedOperationException: OVMAPI_4010E Attempt to send command: dispatch to server: myserver1.example.com failed. OVMAPI_4004E Server Failed Command: dispatch https://?uname?:[email protected]:8899/api/2 start_vm 0004fb00000300003907f6fd90ef0e08 0004fb00000600009526838f3d4be255, Status: org.apache.xmlrpc.XmlRpcException: exceptions.RuntimeError:Command: ['xm', 'create', '/OVS/Repositories/0004fb00000300003907f6fd90ef0e08/VirtualMachines/0004fb00000600009526838f3d4be255/vm.cfg'] failed (1): stderr: Error: HVM guest support is unavailable: is VT/AMD-V supported by your CPU and enabled in your BIOS?
    stdout: Using config file "/OVS/Repositories/0004fb00000300003907f6fd90ef0e08/VirtualMachines/0004fb00000600009526838f3d4be255/vm.cfg".
    Sun Jul 29 14:57:14 PDT 2012
    Sun Jul 29 14:57:14 PDT 2012
    at com.oracle.ovm.mgr.action.ActionEngine.sendCommandToServer(ActionEngine.java:507)
    at com.oracle.ovm.mgr.action.ActionEngine.sendDispatchedServerCommand(ActionEngine.java:444)
    at com.oracle.ovm.mgr.action.ActionEngine.sendServerCommand(ActionEngine.java:378)
    at com.oracle.ovm.mgr.action.VirtualMachineAction.sendStartVmCommand(VirtualMachineAction.java:121)
    at com.oracle.ovm.mgr.op.virtual.VirtualMachineStart.asyncAction(VirtualMachineStart.java:65)
    at com.oracle.ovm.mgr.api.collectable.ManagedObjectDbImpl.executeCurrentJobOperationAsyncAction(ManagedObjectDbImpl.java:1002)
    at com.oracle.odof.core.AbstractVessel.invokeMethod(AbstractVessel.java:329)
    at com.oracle.odof.core.AbstractVessel.invokeMethod(AbstractVessel.java:289)
    at com.oracle.odof.core.storage.Transaction.invokeMethod(Transaction.java:826)
    at com.oracle.odof.core.Exchange.invokeMethod(Exchange.java:245)
    at com.oracle.ovm.mgr.api.virtual.VirtualMachineProxy.executeCurrentJobOperationAsyncAction(Unknown Source)
    at com.oracle.ovm.mgr.api.job.JobEngine.objectAsyncStart(JobEngine.java:596)
    at com.oracle.ovm.mgr.op.virtual.VirtualMachineStart.action(VirtualMachineStart.java:52)
    at com.oracle.ovm.mgr.api.collectable.ManagedObjectDbImpl.executeCurrentJobOperationAction(ManagedObjectDbImpl.java:1012)
    at com.oracle.odof.core.AbstractVessel.invokeMethod(AbstractVessel.java:329)
    at com.oracle.odof.core.AbstractVessel.invokeMethod(AbstractVessel.java:289)
    at com.oracle.odof.core.storage.Transaction.invokeMethod(Transaction.java:826)
    at com.oracle.odof.core.Exchange.invokeMethod(Exchange.java:245)
    at com.oracle.ovm.mgr.api.virtual.VirtualMachineProxy.executeCurrentJobOperationAction(Unknown Source)
    at com.oracle.ovm.mgr.api.job.JobEngine.operationActioner(JobEngine.java:218)
    at com.oracle.ovm.mgr.api.job.JobEngine.objectActioner(JobEngine.java:309)
    at com.oracle.ovm.mgr.api.job.InternalJobDbImpl.objectCommitter(InternalJobDbImpl.java:1140)
    at com.oracle.odof.core.AbstractVessel.invokeMethod(AbstractVessel.java:329)
    at com.oracle.odof.core.AbstractVessel.invokeMethod(AbstractVessel.java:289)
    at com.oracle.odof.core.BasicWork.invokeMethod(BasicWork.java:136)
    at com.oracle.odof.command.InvokeMethodCommand.process(InvokeMethodCommand.java:100)
    at com.oracle.odof.core.BasicWork.processCommand(BasicWork.java:81)
    at com.oracle.odof.core.TransactionManager.processCommand(TransactionManager.java:773)
    at com.oracle.odof.core.WorkflowManager.processCommand(WorkflowManager.java:401)
    at com.oracle.odof.core.WorkflowManager.processWork(WorkflowManager.java:459)
    at com.oracle.odof.io.AbstractClient.run(AbstractClient.java:42)
    at java.lang.Thread.run(Thread.java:662)
    Caused by: com.oracle.ovm.mgr.api.exception.IllegalOperationException: OVMAPI_4004E Server Failed Command: dispatch https://?uname?:[email protected]:8899/api/2 start_vm 0004fb00000300003907f6fd90ef0e08 0004fb00000600009526838f3d4be255, Status: org.apache.xmlrpc.XmlRpcException: exceptions.RuntimeError:Command: ['xm', 'create', '/OVS/Repositories/0004fb00000300003907f6fd90ef0e08/VirtualMachines/0004fb00000600009526838f3d4be255/vm.cfg'] failed (1): stderr: Error: HVM guest support is unavailable: is VT/AMD-V supported by your CPU and enabled in your BIOS?
    stdout: Using config file "/OVS/Repositories/0004fb00000300003907f6fd90ef0e08/VirtualMachines/0004fb00000600009526838f3d4be255/vm.cfg".
    Sun Jul 29 14:57:14 PDT 2012
    at com.oracle.ovm.mgr.action.ActionEngine.sendAction(ActionEngine.java:798)
    at com.oracle.ovm.mgr.action.ActionEngine.sendCommandToServer(ActionEngine.java:503)
    ... 41 more
    FailedOperationCleanup
    Starting failed operation 'Virtual Machine Start' cleanup on object 'first vm'
    Complete rollback operation 'Virtual Machine Start' completed with direction=first vm
    Rollbacker
    Executing rollback operation 'Virtual Machine Start' on object '0004fb00000600009526838f3d4be255 (first vm)'
    Complete rollback operation 'Virtual Machine Start' completed with direction=DONE
    Executing rollback operation 'Bridge Configure Operation' on object '0004fb0000200000b137e9cddcdd09b8 (network.BondPort (1) in myserver1.example.com)'
    Complete rollback operation 'Bridge Configure Operation' completed with direction=DONE
    Objects To Be Rolled Back
    Object (IN_USE): [VmDiskMapping] 0004fb00001300008e359279b91c2804
    Object (IN_USE): [Vnic] 0004fb0000070000cca7bba64be932d0 (00:21:f6:00:00:09)
    Object (IN_USE): [VirtualMachine] 0004fb00000600009526838f3d4be255 (first vm)
    Object (IN_USE): [BondPort] 0004fb0000200000b137e9cddcdd09b8 (network.BondPort (1) in myserver1.example.com)
    Object (IN_USE): [VmDiskMapping] 0004fb0000130000d15838ce48a895f1
    Object (IN_USE): [VirtualCdrom] EMPTY_CDROM
    Object (IN_USE): [VirtualDisk] 0004fb0000120000efbd814b4b7c0e8d.img
    Write Methods Invoked
    Class=InternalJobDbImpl vessel_id=1342 method=addTransactionIdentifier accessLevel=6
    Class=VirtualMachineDbImpl vessel_id=1085 method=start accessLevel=6
    Class=VnicDbImpl vessel_id=958 method=lock accessLevel=6
    Class=VirtualCdromDbImpl vessel_id=209 method=lock accessLevel=6
    Class=VirtualDiskDbImpl vessel_id=1107 method=lock accessLevel=6
    Class=VnicDbImpl vessel_id=958 method=lock accessLevel=6
    Class=VmDiskMappingDbImpl vessel_id=1116 method=lock accessLevel=6
    Class=VmDiskMappingDbImpl vessel_id=1122 method=lock accessLevel=6
    Class=VirtualCdromDbImpl vessel_id=209 method=lock accessLevel=6
    Class=VirtualDiskDbImpl vessel_id=1107 method=lock accessLevel=6
    Class=VirtualMachineStartingEventDbImpl vessel_id=1351 method=notify accessLevel=6
    Class=VirtualMachineStartingEventDbImpl vessel_id=1351 method=setDescription accessLevel=6
    Class=BondPortDbImpl vessel_id=554 method=addJobOperation accessLevel=6
    Class=InternalJobDbImpl vessel_id=1342 method=setCompletedStep accessLevel=6
    Class=InternalJobDbImpl vessel_id=1342 method=setAssociatedHandles accessLevel=6
    Class=InternalJobDbImpl vessel_id=1342 method=setTuringMachineFlag accessLevel=6
    Class=VirtualMachineDbImpl vessel_id=1085 method=setCurrentOperationToLater accessLevel=6
    Class=InternalJobDbImpl vessel_id=1342 method=setTuringMachineFlag accessLevel=6
    Class=BondPortDbImpl vessel_id=554 method=setCurrentJobOperationComplete accessLevel=6
    Class=BondPortDbImpl vessel_id=554 method=nextJobOperation accessLevel=6
    Class=VirtualMachineDbImpl vessel_id=1085 method=nextJobOperation accessLevel=6
    Class=InternalJobDbImpl vessel_id=1342 method=setFailedOperation accessLevel=6
    Class=VmDiskMappingDbImpl vessel_id=1116 method=nextJobOperation accessLevel=6
    Class=VnicDbImpl vessel_id=958 method=nextJobOperation accessLevel=6
    Class=VirtualMachineDbImpl vessel_id=1085 method=nextJobOperation accessLevel=6
    Class=BondPortDbImpl vessel_id=554 method=nextJobOperation accessLevel=6
    Class=VmDiskMappingDbImpl vessel_id=1122 method=nextJobOperation accessLevel=6
    Class=VirtualCdromDbImpl vessel_id=209 method=nextJobOperation accessLevel=6
    Class=VirtualDiskDbImpl vessel_id=1107 method=nextJobOperation accessLevel=6
    Class=VirtualMachineDbImpl vessel_id=1085 method=nextJobOperation accessLevel=6
    Class=BondPortDbImpl vessel_id=554 method=nextJobOperation accessLevel=6
    Completed Step: ROLLBACK
    Job failed commit (internal) due to OVMAPI_4010E Attempt to send command: dispatch to server: myserver1.example.com failed. OVMAPI_4004E Server Failed Command: dispatch https://?uname?:[email protected]:8899/api/2 start_vm 0004fb00000300003907f6fd90ef0e08 0004fb00000600009526838f3d4be255, Status: org.apache.xmlrpc.XmlRpcException: exceptions.RuntimeError:Command: ['xm', 'create', '/OVS/Repositories/0004fb00000300003907f6fd90ef0e08/VirtualMachines/0004fb00000600009526838f3d4be255/vm.cfg'] failed (1): stderr: Error: HVM guest support is unavailable: is VT/AMD-V supported by your CPU and enabled in your BIOS?
    stdout: Using config file "/OVS/Repositories/0004fb00000300003907f6fd90ef0e08/VirtualMachines/0004fb00000600009526838f3d4be255/vm.cfg".
    Sun Jul 29 14:57:14 PDT 2012
    Sun Jul 29 14:57:14 PDT 2012
    com.oracle.ovm.mgr.api.exception.FailedOperationException: OVMAPI_4010E Attempt to send command: dispatch to server: myserver1.example.com failed. OVMAPI_4004E Server Failed Command: dispatch https://?uname?:[email protected]:8899/api/2 start_vm 0004fb00000300003907f6fd90ef0e08 0004fb00000600009526838f3d4be255, Status: org.apache.xmlrpc.XmlRpcException: exceptions.RuntimeError:Command: ['xm', 'create', '/OVS/Repositories/0004fb00000300003907f6fd90ef0e08/VirtualMachines/0004fb00000600009526838f3d4be255/vm.cfg'] failed (1): stderr: Error: HVM guest support is unavailable: is VT/AMD-V supported by your CPU and enabled in your BIOS?
    stdout: Using config file "/OVS/Repositories/0004fb00000300003907f6fd90ef0e08/VirtualMachines/0004fb00000600009526838f3d4be255/vm.cfg".
    Sun Jul 29 14:57:14 PDT 2012
    Sun Jul 29 14:57:14 PDT 2012
    at com.oracle.ovm.mgr.action.ActionEngine.sendCommandToServer(ActionEngine.java:507)
    at com.oracle.ovm.mgr.action.ActionEngine.sendDispatchedServerCommand(ActionEngine.java:444)
    at com.oracle.ovm.mgr.action.ActionEngine.sendServerCommand(ActionEngine.java:378)
    at com.oracle.ovm.mgr.action.VirtualMachineAction.sendStartVmCommand(VirtualMachineAction.java:121)
    at com.oracle.ovm.mgr.op.virtual.VirtualMachineStart.asyncAction(VirtualMachineStart.java:65)
    at com.oracle.ovm.mgr.api.collectable.ManagedObjectDbImpl.executeCurrentJobOperationAsyncAction(ManagedObjectDbImpl.java:1002)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.oracle.odof.core.AbstractVessel.invokeMethod(AbstractVessel.java:329)
    at com.oracle.odof.core.AbstractVessel.invokeMethod(AbstractVessel.java:289)
    at com.oracle.odof.core.storage.Transaction.invokeMethod(Transaction.java:826)
    at com.oracle.odof.core.Exchange.invokeMethod(Exchange.java:245)
    at com.oracle.ovm.mgr.api.virtual.VirtualMachineProxy.executeCurrentJobOperationAsyncAction(Unknown Source)
    at com.oracle.ovm.mgr.api.job.JobEngine.objectAsyncStart(JobEngine.java:596)
    at com.oracle.ovm.mgr.op.virtual.VirtualMachineStart.action(VirtualMachineStart.java:52)
    at com.oracle.ovm.mgr.api.collectable.ManagedObjectDbImpl.executeCurrentJobOperationAction(ManagedObjectDbImpl.java:1012)
    at sun.reflect.GeneratedMethodAccessor683.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.oracle.odof.core.AbstractVessel.invokeMethod(AbstractVessel.java:329)
    at com.oracle.odof.core.AbstractVessel.invokeMethod(AbstractVessel.java:289)
    at com.oracle.odof.core.storage.Transaction.invokeMethod(Transaction.java:826)
    at com.oracle.odof.core.Exchange.invokeMethod(Exchange.java:245)
    at com.oracle.ovm.mgr.api.virtual.VirtualMachineProxy.executeCurrentJobOperationAction(Unknown Source)
    at com.oracle.ovm.mgr.api.job.JobEngine.operationActioner(JobEngine.java:218)
    at com.oracle.ovm.mgr.api.job.JobEngine.objectActioner(JobEngine.java:309)
    at com.oracle.ovm.mgr.api.job.InternalJobDbImpl.objectCommitter(InternalJobDbImpl.java:1140)
    at sun.reflect.GeneratedMethodAccessor1084.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.oracle.odof.core.AbstractVessel.invokeMethod(AbstractVessel.java:329)
    at com.oracle.odof.core.AbstractVessel.invokeMethod(AbstractVessel.java:289)
    at com.oracle.odof.core.BasicWork.invokeMethod(BasicWork.java:136)
    at com.oracle.odof.command.InvokeMethodCommand.process(InvokeMethodCommand.java:100)
    at com.oracle.odof.core.BasicWork.processCommand(BasicWork.java:81)
    at com.oracle.odof.core.TransactionManager.processCommand(TransactionManager.java:773)
    at com.oracle.odof.core.WorkflowManager.processCommand(WorkflowManager.java:401)
    at com.oracle.odof.core.WorkflowManager.processWork(WorkflowManager.java:459)
    at com.oracle.odof.io.AbstractClient.run(AbstractClient.java:42)
    at java.lang.Thread.run(Thread.java:662)
    Caused by: com.oracle.ovm.mgr.api.exception.IllegalOperationException: OVMAPI_4004E Server Failed Command: dispatch https://?uname?:[email protected]:8899/api/2 start_vm 0004fb00000300003907f6fd90ef0e08 0004fb00000600009526838f3d4be255, Status: org.apache.xmlrpc.XmlRpcException: exceptions.RuntimeError:Command: ['xm', 'create', '/OVS/Repositories/0004fb00000300003907f6fd90ef0e08/VirtualMachines/0004fb00000600009526838f3d4be255/vm.cfg'] failed (1): stderr: Error: HVM guest support is unavailable: is VT/AMD-V supported by your CPU and enabled in your BIOS?
    stdout: Using config file "/OVS/Repositories/0004fb00000300003907f6fd90ef0e08/VirtualMachines/0004fb00000600009526838f3d4be255/vm.cfg".
    Sun Jul 29 14:57:14 PDT 2012
    at com.oracle.ovm.mgr.action.ActionEngine.sendAction(ActionEngine.java:798)
    at com.oracle.ovm.mgr.action.ActionEngine.sendCommandToServer(ActionEngine.java:503)
    ... 41 more
    End of Job

    As far you are using VirtualBox, your processor capabilities shouldn't counted (min from my own experience while setting up the virtual machine. Change the Domain Type under configuation node to XEN PVM and try again. Most probably the virtual machine will start running.
    One more thing, enable promiscuous mode -> Allow allow with your network configuration (if bridged network is in use) for the VM Server prior you try to SSH into the virtual machine (your guest on VM Server)
    All the best and post your test results
    regards,
    raj

  • Having trouble with creation of a cloud service with multiple virtual machines using java sdk.

    I am creating a cloud service on azure with 2 virtual machines using java sdk API. Service created successfully.
    My input endpoint details are as follows.
    INPUT ENDPOINTS
    Head : 191.238.144.47:2400
    Head : 191.238.144.47:22
    Node0 : 191.238.144.47:43211
    For Head instance port 2400 is for HTTPS and port 22 is for SSH and for Node0 instance port 43211 is for SSH.
    But I am having problem with doing a ssh on Head instance. Sometimes it works sometimes doesn't. Same problem with HTTPS also.
    I have some application running over there but when i try to access it thru browser sometimes it works but most of the time doesn't. When I restart the instances from azure portal, its works after
    that(not always but most of the time). 
    Now I am confused what is going on there. I am creating cloud service and virtual machines using java sdk and setting input endpoints also. After creation of all instances i restart every instance programmatically .
    I am not sure whether restart is required or not. It must be something to do with input endpoints only but not able to get the right thing i guess. When i do the same thing thru azure portal(creation of cloud service with virtual machines and setting up input
    end points) everything works fine but not achieving the result when implementing it by java sdk API. Please help me.

    HI Nithin,
    Thanks for your reply. I am setting the endpoints after creating my instances using update call. Here's the code snippet.
    AzureService aServ = new AzureService(session);
     if(aServ.checkNameAvailability(clusterName)) {
               aServ.createHostedService(clusterName, "dbX cluster");         
             // Creating head instance
             aServ.createHead(clusterName, imgName, headType, userName, pswd);  
            // Setting end points for head node
             String name = "ssh";
             int port = 22;
             aServ.updateVMInputEndpoint(clusterName, "Head", name, port);
             // Restarting head instance
             aServ.restartVM(clusterName, "Head");
           String roleName = "Node";
           String tmpRoleName = "";
           for(int i=0; i<noi; i++) {
                      port = 43210+(i+1);
                      tmpRoleName = roleName + i;
                   // Creating node instance
                    aServ.createVM(clusterName, tmpRoleName, imgName, nodeType, userName, pswd);
                  // Setting end points for node instance
                   aServ.updateVMInputEndpoint(clusterName, tmpRoleName, name, port);
                  // Restarting node instance
                 aServ.restartVM(clusterName, tmpRoleName);
          // Method to update the input endpoint details 
          public void updateVMInputEndpoint(String clusterName, String vmName, String name, int port)
            throws Exception {
                    VirtualMachineGetResponse resp = computeManagementClient.getVirtualMachinesOperations().
                                                            get(clusterName, clusterName, vmName);
                    VirtualMachineUpdateParameters updateParameters = new VirtualMachineUpdateParameters();
                    //get the configuration list
                    ArrayList<ConfigurationSet> configlist = resp.getConfigurationSets();
                    //get inputendpoint list and update it
                    ArrayList<InputEndpoint> endpointlist = configlist.get(0).getInputEndpoints();
                    InputEndpoint inputEndpoint = new InputEndpoint();
                    inputEndpoint.setEnableDirectServerReturn(false);
                    inputEndpoint.setPort(port);
                    inputEndpoint.setLocalPort(port);
                    inputEndpoint.setName(name);
                    inputEndpoint.setProtocol(InputEndpointTransportProtocol.TCP);
                    endpointlist.add(inputEndpoint);
                    // Open port for https on head node
                    if(vmName.equals("Head")) {
                            inputEndpoint = new InputEndpoint();
                            inputEndpoint.setEnableDirectServerReturn(false);
                            inputEndpoint.setPort(2400);
                            inputEndpoint.setLocalPort(2400);
                            inputEndpoint.setName("https");
                            inputEndpoint.setProtocol(InputEndpointTransportProtocol.TCP);
                            endpointlist.add(inputEndpoint);
                    updateParameters.setConfigurationSets(configlist);
                    //required for update
                    OSVirtualHardDisk osVirtualHardDisk = resp.getOSVirtualHardDisk();
                    updateParameters.setOSVirtualHardDisk(osVirtualHardDisk);
                    updateParameters.setRoleName(resp.getRoleName());
                    OperationResponse updtResp = computeManagementClient.getVirtualMachinesOperations().update(clusterName, clusterName, resp.getRoleName(), updateParameters);
    And every time i am creating a new cloud service along with head and node instances. Region is "South Central US".
    I am setting ProvisionGuestAgent field to true at instance creation time. Thank you.

  • WRT54G2 with Subnetted Virtual Machines

    I am unable to access the internet from guest virtual machines on a /25 subnet, although local lan connectivity seems to work fine, and local lan access to the internet works fine. My setup: WRT54G2 in Gateway mode 10.100.200.1/25 Host machine 10.100.200.4/25 Guests (Virtual machines) on the host: : 10.100.200.128 -254 (Host and Guests are Ubuntu 10.11 under KVM, w/virt-manager "routed networking" Static route on WRT54G2: 10.100.200.128/25 gw: 10.100.200.4 Local LAN connectivity is complete. For example, ssh from the lan to any guest works, as does ssh from any guest to any lan machine. Local lan internet access is complete, includiing the vm Host. Ping and traceroute from the WRT54G2 to lan machines, Host, and guests is successful. Failure: Guest machines cannot reach the internet. They can reach the router. Traceroute to an internet address from a guest machine returns responses from the WRT54G2, followed by time-outs. Ping from a guest machine to the internet fails. I have experimented with both /25 and /24 subnet masks on the WRT54G2 lan port without apparent effect. At this point I am rapidly running out of ideas. The WRT54G2 seems to refuse to pass guest machine packets out to the internet. I have found suggestions on various web fora that NAT difficulties can arise when using subnets with the WRT54G2, but I've been unable to track down details. Any suggestions would be deeply appreciated. Thanks in advance...

    Linksys routers are consumer routers. They don't really support more complex network configurations.
    In your case, the problem is that the WRT only does NAT for it's own LAN IP subnet.
    If a computer inside your LAN (e.g. 10.100.200.4/25) sends something into the internet, the WRT will do source IP NAT from 10.10.200.4 to its public IP address. This happens for all source IP addresses inside 10.100.200.4/25 but not for any other IP address.
    This means, if your VM with 10.100.200.200/25 would send something, it is routed through the host machine to the WRT, i.e. the WRT receives a packet from 10.100.200.200 to an internet IP address for forwarding. As the source IP address is not in 10.100.200.0/25 it won't go through NAT, i.e. the WRT will route the packet with unmodified source IP address 10.100.200.200 into the internet where it will be quickly discarded.
    That's a known limitation of Linksys routers and they don't have any configuration options to configure the NAT function in detail (like you would find in a Cisco IOS router). The Linksys always does NAT for the LAN IP subnet but for nothing else.
    You only have two options:
    1. use NAT on the host machine, i.e. the host machine does NAT between the VMs and the host network. Of course this way, the VMs are not accessible from the outside.
    2. use ethernet bridging instead of routing between VMs and host network. This would create a single ethernet network and you only need a single LAN IP subnet for VMs and the normal network.

  • Solaris 10 virtual machine for VMware

    I've tried the "Solaris 10 OS, AMD x64 Platform - Solaris Enterprise System Virtual Machine for VMware (Solaris 10 11/06) 3.0". I've d/l the virtual appliance for vmware one can find from there : http://developers.sun.com/solaris/downloads/solaris_apps/index.jsp#vmware
    I encountered 2 problems :
    The first was the network (netcard) wasn't recognised at all. It's strange because the settings should be the same for every vmware virtual machines. It may be because I'm running the latest version from vmware (10.0.2). The default option was NAT, and I tried the others as well. All other systems I'm using with vmware are working correctly, including the opensolaris "Nexenta".
    The second one was with the screen resolution, it was excessively huge, around 2800 x 2000. I couldn't change it in the gnome desktop (the option had no effect). I managed to change it by altering the /etc/X11/xorg.conf file. The same was for the keyboard settings, I couldn't switch to azerty (french) keyboard. I had to change it in xorg.conf file.

    im new to vmware too, but just wan to share my experience with you.
    5.5.1 vmware workstation with vmtool installed.
    - my NIC still define as pcn0, encountered packet drop network issue
    - dtlogin doesn't work properly with my screen resulation, mouse work fine without pressing ctrl+alt key to get out from vmware
    6.0 vmware workstation with vmtool installed.
    - no more packet drop issue, especially when i ssh from pc to vmware.
    - gdm fit to screen, GUI work fine.
    - my shared folder working now, mount as /hgfs.
    # ifconfig -a
    lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
    inet 127.0.0.1 netmask ff000000
    vmxnet0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
    inet 192.168.1.6 netmask ffffff00 broadcast 192.168.1.255
    ether 0:c:29:75:2:f0
    # cat /etc/release
    Solaris 10 11/06 s10x_u3wos_10 X86
    Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
    Use is subject to license terms.
    Assembled 14 November 2006
    Section "Device"
    Identifier "VMware SVGA"
    Driver "vmware"
    EndSection
    Section "Screen"
    Identifier "Screen 1"
    Device "VMware SVGA"
    Monitor "vmware"
    Section "Monitor"
    Identifier "vmware"
    VendorName "VMware, Inc"
    HorizSync 1-10000
    VertRefresh 1-10000
    EndSection
    # ps -ef| grep vm
    root 474 1 0 May 24 ? 10:43 /usr/sbin/vmware-guestd --background /var/run/vmware-guestd.pid
    root 446 1 0 May 24 ? 0:22 /usr/sbin/vmware-memctld --background /var/run/vmware-memctld.pid
    root 5663 1 1 08:05:32 ? 1:12 /usr/lib/vmware-tools/bin/i86/vmware-user -blockFd 3
    # modinfo| grep vm
    131 f9e15000 43c0 207 1 vmxnet (VMware Ethernet Adapter b45731)
    198 fa03d000 1a00 208 1 vmmemctl (VMware Memory Control b45731)
    199 fa03f000 69b8 209 1 vmhgfs (HGFS Device Interface)
    199 fa03f000 69b8 23 1 vmhgfs (Host/Guest Filesystem)
    223 fea63ffc 1744 25 1 vmblock (VMBlock File system)

  • Not able to connect Azure Linux Virtual Machine with Putty

    Hi,
    I am not bale to connect Azure Linux Virtual Machine with Putty... Error shows "Network error: connection timed out".
    Please help.
    Thanks,
    Techsol
    Thanks, Kk

    Hi TechSol01,
    Thanks for posting here.
    I suggest you to try the below steps
    On a computer running a Windows operating system, you might want to use an SSH client such as PuTTY. For more information, see the
    PuTTY Download Page.
    On a computer running a Linux operating system, you might want to use an SSH client such as OpenSSH. For more information, see
    OpenSSH.
    If it is the endpoint configuration, you can go to the portal and add port 22, (it should already be there by default). 
    Now if it is locked out of the VM because of the firewall on the VM, which is called iptables , You won't be able to connect to the VM,
    If you haven’t configured the port 22. You may have to follow the below steps :
    A = Original VM (Inaccessible VM)
    B = New VM (New Temp VM)
    1)  Stop VM  A via the Azure management portal
    2) Delete VM A BUT select “keep the attached disks”
    3) Once the lease is cleared, attach the Data Disk from A to VM B via the Azure Portal, Virtual Machines, Select “B”, Attach Disk
    4) On VM “B” eventually the disk will attach and you can then mount it.
    5) Locate the drive name to mount, on VM “B” look in relevant log file note each linux is slightly different.
    grep SCSI /var/log/kern.log (ubuntu)
    grep SCSI /var/log/messages (centos, suse, oracle)
    6) Mount the attached disk onto mountpoint /tempmount
    df -h
    mkdir /tempmount
    mount /dev/sdc1 /tempmount
    df –h
    7) Now you should be able to clear the rules set from the configuration file of the firewall, by accessing it
    through /tempmount
    Let me know if this works
    Girish Prajwal

  • Networking arch linux virtual machine networking

    For a project, I've got an arch linux virtual machine running on the school network. The image has SSH installed and that works just fine, the problem is that the network admin didn't give it access to the internet (so I can access it only over lan). What I would like to do is run updates on it and install several libraries that I need for deploying a web application (rails). The easy way to install them is obviously through pacman, which leads me to my question: Is there a way to make a network interface on the server that would use ssh to make a bridged connection to the internet?
    Not super sure if I worded that correctly, but it seems that it ought to be possible to have a network interface on the vm that, when the vm opens an ssh connection to some ssh server (on the lan) allows the vm to use that connection for more than just ssh.
    Thanks.

    I was making this too complicated... I set up a squid proxy on a different machine and it all works well.

  • Blocking Access from Ubuntu 9.04 Virtual Machine

    Hi Everyone
    We have blocked access on Perimeter Routers for Some specific ports like telnet , SSH etc
    and as per access policy users are granted access within the organisation for Servers at Data Centre based on there IP addresses
    If some body installs Ubuntu 9.04 Virtual Machine and then invokes virtual XP some how  the user gets 10 series IP and still manages to access the servers
    How can i block the same
    While checking for IP Accounting on Router there are no traces on the Vitual IP but server login details shows the IP address from whcih accessed with source IP as 10.x.x.x
    Regards
    Sohail Sarwar

    user8750410 wrote:
    I need C Api to connect from Ubuntu 9.04 to Oracle 8 database, is ODBC the only way to do this ? There is an opensource solution to connect without installing database on the client machine ?You certainly dont need a full database install on the ubuntu client, client components only are required.
    Because your target is a downrev oracle database version you might need to use client compoents like linux 9i to be successful :- [http://www.oracle.com/technology/software/products/oracle9i/htdocs/linuxsoft.html]. The more modern 'instantclient' [http://www.oracle.com/technology/software/tech/oci/instantclient/index.html], [http://www.oracle.com/technology/tech/oci/instantclient/index.html] does not appear available at this verion. Its possilble this version might have issues when installing this version on ubuntu 9.04 ... i simply don't know and too hard for me to look up.
    I personally am unaware of any thin client driver technology that would help you here, that isnt to saythere isnt one.
    This si not an area i am now current in, i merely really wish to say you do not need a full database install.

  • Live Installer built on Virtual Machine

    Hello,
    I installed Arch on vmware fusion, with the attempt of setting up a system with my customized services ( ssh, ftp, among others ), and in the process of such learning about the distro.
    In the end, I will like that once I am comfortable with my Arch setup in the virtual machine, that I could replicate the same into a real physical machine.
    So, my question will be whether the Live CD create options available for Arch will allow me to do so, and if there may be any limitations since I will create the system "template" in a virtual machine.
    Is there any recommended Live installer creator? Should I worry about virtual and physical hardware differences in specs/sizes, etc?
    Thanks,

    you should be able to dd the virtual blockdevice to a physical one, and increase the size of the last partition and filesystem to completely fill the disk.
    then rebuild the initcpio.
    if you have lvm, it's easier of course.
    you can also make filesystems on the physical hardware, install grub in there, and rsync everything

  • Port opening among virtual machines

    Hi everyone,
    I'm wondering if I can close/open port among virtual machines. Say I have two Azure-based virtual machines and want to open a specific port from machine A to machine B. Is it possible without the implementation of a firewall between A and B.
    Your suggestion would be very much appreciated.
    Regards,
    -T.s
    Thuan Soldier
    A 23-year-old man loving Microsoft technologies and making crazy ideas on business journey.
    SharePoint Vietnam |
    Blog | Twitter

    Hi Thuan,
    You could refer the following link for details on how to set up an endpoint in Azure Virtual Machines.
    http://azure.microsoft.com/en-in/documentation/articles/virtual-machines-set-up-endpoints/
    Please be advised that each endpoint has a Public port (It is used by the Azure load balancer to listen for incoming traffic to the virtual machine from the Internet) and a Private port (It is used by the virtual machine to listen for incoming
    traffic, typically destined to an application or service running on the virtual machine).
    Also, When you create an endpoint (Other than RDP and SSH) for the virtual machine, you'll need to ensure that the firewall of the virtual machine also allows the traffic for the protocol and private port corresponding to the endpoint configuration.
    Regards,Malar.

  • Use DVD drive from  Virtual Machine

    Hi! I have successfully installed Oracle VM Server and Manager Template on the same machine.
    I also have created and run a Virutal Machine from the OEL 5.3 Template from Edelivery.
    Now I need to use the DVD ROM drive because I need to install E-Business Suite from that VM.
    How can I mount the DVD ROM so thats it usable from within a VM?

    sumit kapila wrote:
    I have installed a VM manager on one machine and a VM server on the other. I have also installed OEL4 (virtual machine) on the server through the manager. But when i open the console of the virtual machine it is not detecting the cdrom. How can it be detected??Did you even read the posts above yours? They explain exactly how to provide CD data to a guest.
    Also how to open that virtual machine on some other machine or on the server??I have no idea what you mean. If you're talking about connecting to your guest over the network, you can use SSH.

  • Windows 7 - How? -Virtual Machine, Dual Boot

    I was using Windows 8 up until yesterday, but I decided to change to Windows 7 because it was recommended and it supports all the necessary software we'll be using.
    I though a virtual machine was a natural choice, but then I had difficulty with my COM port which didn't appear in the device manager of the VM. I got desperate
    and almost attempted a dual boot, but with dual boots you are supposed to install the earliest OS first! This would mean having to totally uninstall Windows 8.1.
    Am I missing something here? What's the easiest way to get Windows 7 up and running on my laptop so that I can use the COM ports and use SSH to connect to mypi?
    Thanks for reading,
    Kevin

    Thanks Clark,
    I actually already have the network set up from before, when I was using windows 8.
    So I guess I can skip this stage now and just reinstall everything on the new Windows 7 virtual machine.
    Thanks again,
    Kevin

  • "Installing extensions on virtual machine..." does not complete on Azure VM

    When creating VM using my custom disk, I encountered the same issue as the one mentioned in this post(http://blogs.msdn.com/b/mast/archive/2014/06/18/azure-vm-provisioning-stuck-on-quot-installing-extensions-on-virtual-machine-quot.aspx). I can’t
    resolve my problem by following the steps of the post. 
    Here is the context:
    Before uploading the disk, I prepare my Ubuntu VM by following this post(http://azure.microsoft.com/en-us/documentation/articles/virtual-machines-linux-create-upload-vhd-ubuntu/) in which there is a step “sudo apt-get install walinuxagent”.
    When creating VM, the portal is stuck in "Installing extensions on virtual machine...”.
    I can’t SSH to the VM.
    I checked the status of VM agent using PowerShell, it shows ‘GuestAgentVersion: Unknown’ and ‘Status: NotReady’.
    Could you kindly help me out?

    Hi Hulu;
    Thank you for your post. Apologies for the late response. From a support perspective the way forward would be to open up a support ticket as we would need to do get the
    need subscription id, deploymend id and vm name for further troubleshooting I encourage you to do the same.
    Please refer to
    this documentation on how to open a support ticket. Hope this helps.
    Warm Regards;
    Prasant

  • Error While Creating Windows Server 2008 SP2 32-BIT Virtual Machine

    I am facing an error while creating a Virtual Machine on the Cloud. The Error is below:
    Error (610)
    Virtual Machine Manager was unable to find a value for the required Sysprep parameter ProductKey.
    Recommended Action
    Add the missing Sysprep parameter either to the answer file or to the operating system configuration, and then try the operation again.
    My Template does not have the Product Key defined.  The OS is Windows Server 2008 SP2 32-BIT.  Is defining Product Key absolutely necessary?  I have other Templates for other Operating Systems and they are working fine.  Only facing problem
    with this.
    Any help would be appreciated.

    In the SCVMM world a 'template' is composed of the following: a VHD with an OS that has been generalized (sysprep), virtual hardware profile (settings), and an OS profile.
    The OS profile is required to have a product key.  A MAC activation key at the minimum.  But the key is required.
    If you deploy a VM from a VHD, the same customization assumptions are not at play.  Which is why it succeeds.  (there is no template in this case, there is also no requirement that the OS in the VHD be sysprep'd).
    SCVMM has rules.  And lots of things don't make sense until you begin to understand them and play within them. (I am not saying that the SCVMM rules are a good thing, just saying they exist)
    Brian Ehlert
    http://ITProctology.blogspot.com
    Learn. Apply. Repeat.

Maybe you are looking for