Xoa Setup Static Ip | XCP-ng And XO Forum

XCP-ng Search
  • Register
  • Login
xoa setup static ip Scheduled Pinned Locked Moved Xen Orchestra 11 Posts 4 Posters 17.5k Views 1 Watching Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply This topic has been deleted. Only users with topic management privileges can see it.
  • akurzawaA Offline last edited by akurzawa

    hi

    I've forget - is there a utility to config net in xoa or I need to setup static net manually?

    1 Reply Last reply Reply Quote 0
  • T Offline last edited by

    There are 3 ways you can set up static IPs for XOA:

    1. At the router, just assign the mac address of your XOA VM to a static IP.
    2. At the XOA VM, you can't do this if you don't have access to other means of accessing your host that XOA VM runs, since you can't stop the VM to change the IP.
    3. At XOA's OS level, since XOA is based on Debian, you can change /etc/network/interfaces file to reflect your static ip.

    It is probably best to use option 1 when you can.

    kdmK 1 Reply Last reply Reply Quote 0
  • akurzawaA Offline last edited by

    1st option is the worst, 2nd - idk what You wanted to say....

    3rd option is what I use, but I was not asking about that...

    1 Reply Last reply Reply Quote 0
  • B Offline last edited by Biggen

    Option 1 is also what I do. I can't stand having to set static IPs in individual VMs (or any physical machine for that matter). Much easier to do it inside the router GUI where all the MACs are stored.

    1 Reply Last reply Reply Quote 0
  • akurzawaA Offline last edited by

    I think we done talking. Non static ip in active directory :lol:

    1 Reply Last reply Reply Quote 0
  • kdmK Offline @tony last edited by

    @tony I don't understand option 2. I think it's the option I want to use, but I'm told how to NOT do it. I have commandline access on the XOA VM. Thanks.

    T 1 Reply Last reply Reply Quote 0
  • T Offline @kdm last edited by

    @kdm

    The 2nd option is basically forcing the static IP through XCP-ng, if you have SSH access to your XOA VM then you can also use option 3 (hint: XOA is based on debian 10).

    The steps for option 2 are:

    • SSH into your XCP-ng host that XOA VM is running on.
    • Use this command to find out your XOA VM's VIF UUID
    xe vif-list vm-uuid=<UUID of your XOA VM>
    • Use this command to set static IP for your XOA VM
    xe vif-configure-ipv4 uuid=<UUID of your XOA VM VIF> mode=static address=<IP address/Subnet mask> gateway=<Gateway address> kdmK 2 Replies Last reply Reply Quote 1
  • kdmK Offline @tony last edited by

    @tony Perfect. That's exactly what I wanted. Thanks.

    1 Reply Last reply Reply Quote 0
  • kdmK Offline @tony last edited by

    @tony Is that the same process which happens when I modify the network parameters within XOA's Network tab? Thanks again.

    T 1 Reply Last reply Reply Quote 0
  • T Offline @kdm last edited by

    @kdm I'm not sure which settings are you referring to? If you mean the Allowed IPs then no, that setting is to be used in conjunction with VIF-locking mode.

    kdmK 1 Reply Last reply Reply Quote 0
  • kdmK Offline @tony last edited by

    @tony Yes, that's the setting I was talking about. OKay. I've no idea what VIF-locking is, so I'll leave it there! Thanks again.

    1 Reply Last reply Reply Quote 0
  • V Virtual referenced this topic on
  • First post Last post Go to my next post

Looks like your connection to XCP-ng was lost, please wait while we try to reconnect.

Từ khóa » Xoa Vm