Tag: Cloud

  • Allow ICMP (ping) in Oracle Cloud

    Allow ICMP (ping) in Oracle Cloud

    Oracle cloud do not allow ICMP/ping to compute instances. To enable ping, you need to enable ICMP in the security group.

    On your compute instance details page, you will see “Virtual Cloud Network”.

    oracle cloud vpc

    Click on Virtual Cloud Network link, that will take you to page with VPC details.

    Oracle Virtual Cloud Network

    Scroll down, you will see subnet.

    Oracle Cloud Public Subnet

    Click on Public Subnet, on next page, it shows details about the subnet. Under Security Lists, you will see Default Security List for VirtualCloudNetwork. Click on it to see your firewall rules.

    oracle cloud ingress rules

    Click Add Ingress Rules button to add new rule. By default port 22 (SSH) allowed from everyone. ICMP was blocked for everyone (rule 2 and 3).

    To allow ICMP, you can add a new Rule for ICMP.

    Oracle Cloud Add Ingress Rule

    On Add Ingress Rules page, select

    SOURCE TYPE = CIDR
    SOURCE CIDR = 0.0.0.0/0
    IP PROTOCOL = ICMP

    Click Add Ingress Rules button. Now you should be able to ping to any compute instances on this VPC. It is safe to remove 2 of the existing ICMP rules or edit them instead of adding new rule.

    See Oracle Cloud

  • Manage XenServer from command line with xe

    xe command is used to manage XenServer from command line

    [root@ns319379 ~]# xe help
    Usage: xe  [-s server] [-pw passwd] [-p port] [-u user] [-pwf password-file]
      [command specific arguments]
    
    To get help on a specific command: xe help 
    To get a full listing of commands: xe help --all
    
    Common command list
    -------------------
        cd-list, diagnostic-vm-status, network-list, snapshot-clone
        snapshot-copy, snapshot-disk-list, snapshot-export-to-template
        snapshot-reset-powerstate, snapshot-revert, snapshot-uninstall, sr-list
        template-export, template-uninstall, vm-cd-add, vm-cd-eject
        vm-cd-insert, vm-cd-list, vm-cd-remove, vm-checkpoint, vm-clone
        vm-compute-maximum-memory, vm-copy, vm-disk-add, vm-disk-list
        vm-disk-remove, vm-export, vm-import, vm-install, vm-list, vm-migrate
        vm-pause, vm-reboot, vm-reset-powerstate, vm-resume, vm-shutdown
        vm-snapshot, vm-snapshot-with-quiesce, vm-start, vm-suspend
        vm-uninstall, vm-unpause, vm-vif-list
    [root@ns319379 ~]# 
    

    To list VM, run

    [root@ns319379 ~]# xe vm-list
    uuid ( RO)           : 18e4994d-e536-9ab1-5fd3-ed3ba98cafa2
         name-label ( RW): XOA
        power-state ( RO): running
    
    
    uuid ( RO)           : 1c8c3087-9afa-f040-4544-f77be88f0d83
         name-label ( RW): XOA
        power-state ( RO): halted
    
    
    uuid ( RO)           : 7461bdf5-8986-471d-9067-01d12bf38f99
         name-label ( RW): Control domain on host: stock.ovh.net
        power-state ( RO): running
    
    
    uuid ( RO)           : 56e60d30-15a7-ed07-c526-a17a81d692b4
         name-label ( RW): centos-webmin
        power-state ( RO): halted
    
    
    [root@ns319379 ~]#