ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Set static ip for Hyper-V Server 2016 virtual ethernet adapter.

    IT Discussion
    hyper-v 2016 networking static dhcp
    6
    15
    3.8k
    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.
    • RomoR
      Romo
      last edited by

      So currenty the Hyper-V host has 3 Virtual ethernet adapters set to get their ip via dhcp. I am trying to change them to static, but when trying I get this error:

      C:\Windows\System32\en-US\sconfig.vbs(726, 21) SWbemObjectEx: Invalid index
      

      After the error appears the interface defaults to an APIPA address, I have to set the interface to dhcp to get it working again.

      This is the results from Get-NetAdapterBinding
      0_1535581118745_get-netadapterbinding.png

      Why can't I set the interface to static and why does it only work for dhcp?

      momurdaM 1 Reply Last reply Reply Quote 0
      • momurdaM
        momurda @Romo
        last edited by

        @romo You have ipv6 turned off according to someone earlier today.

        RomoR 1 Reply Last reply Reply Quote 0
        • RomoR
          Romo @momurda
          last edited by

          @momurda I saw the post before but since the error message differed I had not tried enabling ipv6.
          Solution error: C:\Windows\system32\en-US\sconfig.vbs (696, 21) SWbemObjectEx: Invalid index -696
          My Error: C:\Windows\System32\en-US\sconfig.vbs(726, 21) SWbemObjectEx: Invalid index -726

          I just tried it and get the same error sadly =(:
          ms_tcpip6- True
          0_1535584427601_ipv6-on.png
          error
          0_1535584492235_static.png

          1 Reply Last reply Reply Quote 0
          • JaredBuschJ
            JaredBusch
            last edited by

            How did you break sconfig?

            RomoR 1 Reply Last reply Reply Quote 0
            • black3dynamiteB
              black3dynamite
              last edited by

              Already tried changing the IP address using Windows Admin Center?

              1 Reply Last reply Reply Quote 0
              • ObsolesceO
                Obsolesce
                last edited by

                Probably faster to reinstall the host then import the VMs.

                1 Reply Last reply Reply Quote 0
                • RomoR
                  Romo @JaredBusch
                  last edited by

                  @jaredbusch Really don't know what they did. We figured out the host was using DHCP because after an outage some VMS were not coming back up and we had to remote in.

                  Tried connecting via the dns name, just to find out the static dns entry does not work because the server had been setup to use dhcp without even a reservation.

                  So we are trying to set the Hyper V host to have a static ip and here we are.

                  1 Reply Last reply Reply Quote 0
                  • ObsolesceO
                    Obsolesce
                    last edited by Obsolesce

                    Did you reinstall the host OS yet? Takes only a few minutes, and then a few minutes to reconfigure the host settings, then a few minutes to import the existing VMs...

                    scottalanmillerS 1 Reply Last reply Reply Quote 0
                    • scottalanmillerS
                      scottalanmiller @Obsolesce
                      last edited by

                      @obsolesce said in Set static ip for Hyper-V Server 2016 virtual ethernet adapter.:

                      Did you reinstall the host OS yet? Takes only a few minutes, and then a few minutes to reconfigure the host settings, then a few minutes to import the existing VMs...

                      Not even remotely feasible in this environment. They don't have any swing space to do anything of the sort. Nor can they be taken offline mid day. It just wasn't built for that kind of flexibility.

                      ObsolesceO 1 Reply Last reply Reply Quote 0
                      • ObsolesceO
                        Obsolesce @scottalanmiller
                        last edited by Obsolesce

                        @scottalanmiller said in Set static ip for Hyper-V Server 2016 virtual ethernet adapter.:

                        @obsolesce said in Set static ip for Hyper-V Server 2016 virtual ethernet adapter.:

                        Did you reinstall the host OS yet? Takes only a few minutes, and then a few minutes to reconfigure the host settings, then a few minutes to import the existing VMs...

                        Not even remotely feasible in this environment. They don't have any swing space to do anything of the sort. Nor can they be taken offline mid day. It just wasn't built for that kind of flexibility.

                        No swing space needed, so long as the OS is it's own partition, typically the C drive, where all the VMs live on the D drive. You pop in the USB stick, and reinstall the OS. Once back, you right-click in Hyper-V Manager and import the VMs that are still there in the D drive. You don't format that D volume when you reinstall, only C. YOu leave D alone so it's there when it's back up.

                        It shouldn't take more than 30 minutes total, easily done end of day or after hours. Or, bring up another Hyper-V host to live-migrate to (if you have the space) to prevent any down time.

                        There are a lot of options rather than spending weeks figuring out such a dumb issue.

                        scottalanmillerS 2 Replies Last reply Reply Quote 0
                        • scottalanmillerS
                          scottalanmiller @Obsolesce
                          last edited by

                          @obsolesce said in Set static ip for Hyper-V Server 2016 virtual ethernet adapter.:

                          You pop in the USB stick,

                          Already a problem, no local tech. Can't ask the site to do something like that unless there is a full blown outage underway.

                          ObsolesceO 1 Reply Last reply Reply Quote 0
                          • scottalanmillerS
                            scottalanmiller @Obsolesce
                            last edited by

                            @obsolesce said in Set static ip for Hyper-V Server 2016 virtual ethernet adapter.:

                            There are a lot of options rather than spending weeks figuring out such a dumb issue.

                            Having to bring in a local tech or get a swing machine are actually much more intensive than looking at it remotely for a while. But seems doubtful that it will take weeks. Only has had a few minutes of being looked at, and only today.

                            ObsolesceO 1 Reply Last reply Reply Quote 0
                            • ObsolesceO
                              Obsolesce @scottalanmiller
                              last edited by

                              @scottalanmiller said in Set static ip for Hyper-V Server 2016 virtual ethernet adapter.:

                              @obsolesce said in Set static ip for Hyper-V Server 2016 virtual ethernet adapter.:

                              You pop in the USB stick,

                              Already a problem, no local tech. Can't ask the site to do something like that unless there is a full blown outage underway.

                              iDRAC/iLO/etc, USB stick not needed if that's available. I was just giving an example case, not an exclusive item.

                              1 Reply Last reply Reply Quote 0
                              • ObsolesceO
                                Obsolesce @scottalanmiller
                                last edited by

                                @scottalanmiller said in Set static ip for Hyper-V Server 2016 virtual ethernet adapter.:

                                @obsolesce said in Set static ip for Hyper-V Server 2016 virtual ethernet adapter.:

                                There are a lot of options rather than spending weeks figuring out such a dumb issue.

                                Having to bring in a local tech or get a swing machine are actually much more intensive than looking at it remotely for a while. But seems doubtful that it will take weeks. Only has had a few minutes of being looked at, and only today.

                                Oh, didn't realize it was like that. No local IT, no other available infrastructure or anything kind of limits things a lot.

                                scottalanmillerS 1 Reply Last reply Reply Quote 0
                                • scottalanmillerS
                                  scottalanmiller @Obsolesce
                                  last edited by

                                  @obsolesce said in Set static ip for Hyper-V Server 2016 virtual ethernet adapter.:

                                  @scottalanmiller said in Set static ip for Hyper-V Server 2016 virtual ethernet adapter.:

                                  @obsolesce said in Set static ip for Hyper-V Server 2016 virtual ethernet adapter.:

                                  There are a lot of options rather than spending weeks figuring out such a dumb issue.

                                  Having to bring in a local tech or get a swing machine are actually much more intensive than looking at it remotely for a while. But seems doubtful that it will take weeks. Only has had a few minutes of being looked at, and only today.

                                  Oh, didn't realize it was like that. No local IT, no other available infrastructure or anything kind of limits things a lot.

                                  Yeah, a LOT. If we were local and it was one of two (or more) machines, yeah, we'd happily reinstall. As it is, we are scared of the backup device failing. Which isn't terrible as it is ONLY a backup device. But taking the server offline... we are pretty dependent on it.

                                  1 Reply Last reply Reply Quote 1
                                  • 1 / 1
                                  • First post
                                    Last post