4 Replies Latest reply: Jan 31, 2012 2:04 AM by 911978 RSS

    Is it possible to install PVM without DHCP in local network?

    911978
      Hi!

      We have main DHCP server in our company and i don't have access to it. So, it's difficult to install PVM from Network or i don't understand how to do in.

      I created kickstart file and shared OEL DVD, also i configured VM as:

      uuid = '0004fb00-0006-0000-db66-e8f031d2e557'
      bootloader = '/usr/bin/xenpvboot'
      vif = ['mac=00:21:f6:00:00:13,bridge=192.168.18.0']
      name = '0004fb0000060000db66e8f031d2e557'
      OVM_description = ''
      guest_os_type = 'linux'
      OVM_simple_name = 'pvm3'
      on_poweroff = 'destroy'
      boot = 'nc'
      vfb = ['type=vnc,vncunused=1,vnclisten=127.0.0.1']
      on_crash = 'restart'
      on_reboot = 'restart'
      vcpus = 2
      cpu_weight = 27500
      OVM_os_type = 'Oracle Linux 5'
      memory = 4096
      cpu_cap = 0
      OVM_high_availability = False
      disk = ['file:/OVS/Repositories/0004fb00000300007ab59846cb716517/VirtualDisks/0004fb0000120000193b8eda68cef44c.img,xvda,w', 'file:/OVS/Repositories/0004fb00000300007ab59846cb716517/ISOs/0004fb000015000013989eb97049c582.iso,xvdb:cdrom,r']
      maxmem = 4096
      bootargs = '--args network device eth0 bootproto static ip 192.168.18.182 netmask 255.255.255.0 --gateway 192.168.18.254 ks=http://192.168.12.93/KickStart.OEL.profiles/ks.cfg http://192.168.12.93/OracleLinux/DVD/'


      VM starts but nothing happens. VM Manager shows that it has "Starting" state. Http server doen't have any request from my VM.
      xend.log:

      [2012-01-30 16:40:11 5530] DEBUG (XendDomainInfo:104) XendDomainInfo.create(['vm', ['name', '0004fb0000060000db66e8f031d2e557'], ['memory', 4096], ['maxmem', 4096], ['on_poweroff', 'destroy'], ['on_reboot', 'restart'], ['on_crash', 'restart'], ['on_xend_start', 'ignore'], ['on_xend_stop', 'ignore'], ['vcpus', 2], ['uuid', '0004fb00-0006-0000-db66-e8f031d2e557'], ['cpu_cap', 0], ['cpu_weight', 27500], ['oos', 1], ['bootloader', '/usr/bin/xenpvboot'], ['bootloader_args', '--args network device eth0 bootproto static ip 192.168.18.182 netmask 255.255.255.0 --gateway 192.168.18.254 ks=http://192.168.12.93/KickStart.OEL.profiles/ks.cfg http://192.168.12.93/OracleLinux/DVD/'], ['image', ['linux', ['videoram', 4], ['tsc_mode', 0], ['nomigrate', 0]]], ['s3_integrity', 1], ['device', ['vbd', ['uname', 'file:/OVS/Repositories/0004fb00000300007ab59846cb716517/VirtualDisks/0004fb0000120000193b8eda68cef44c.img'], ['dev', 'xvda'], ['mode', 'w']]], ['device', ['vbd', ['uname', 'file:/OVS/Repositories/0004fb00000300007ab59846cb716517/ISOs/0004fb000015000013989eb97049c582.iso'], ['dev', 'xvdb:cdrom'], ['mode', 'r']]], ['device', ['vif', ['bridge', '192.168.18.0'], ['mac', '00:21:f6:00:00:13']]], ['device', ['vkbd']], ['device', ['vfb', ['vncunused', '1'], ['vnc', '1'], ['vnclisten', '127.0.0.1'], ['xauthority', '//.Xauthority']]]])
      [2012-01-30 16:40:11 5530] DEBUG (XendDomainInfo:2576) XendDomainInfo.constructDomain
      [2012-01-30 16:40:11 5530] DEBUG (balloon:220) Balloon: 15733844 KiB free; need 16384; done.
      [2012-01-30 16:40:11 5530] DEBUG (XendDomain:464) Adding Domain: 1
      [2012-01-30 16:40:11 5530] DEBUG (XendDomainInfo:2886) XendDomainInfo.initDomain: 1 27500
      [2012-01-30 16:40:11 6246] DEBUG (XendBootloader:113) Launching bootloader as ['/usr/bin/xenpvboot', '--output=/var/run/xend/boot/xenbl.1505', '--args', 'network', '--device', 'eth0', '--bootproto', 'static', '--ip', '192.168.18.182', '--netmask', '255.255.255.0', '--gateway', '192.168.18.254', 'ks=http://192.168.12.93/KickStart.OEL.profiles/ks.cfg', 'http://192.168.12.93/OracleLinux/DVD/', '/OVS/Repositories/0004fb00000300007ab59846cb716517/VirtualDisks/0004fb0000120000193b8eda68cef44c.img'].
        • 1. Re: Is it possible to install PVM without DHCP in local network?
          Avi Miller-Oracle
          Jim wrote:
          I created kickstart file and shared OEL DVD, also i configured VM as:
          You should not configure an ISO into a PVM guest.
          bootargs = '--args network device eth0 bootproto static ip 192.168.18.182 netmask 255.255.255.0 --gateway 192.168.18.254 ks=http://192.168.12.93/KickStart.OEL.profiles/ks.cfg http://192.168.12.93/OracleLinux/DVD/'
          The correct format of the Network Boot Path for PVM guests with kickstart, you should specify it like so in the UI:
          --kernel images/xen/vmlinuz --ramdisk images/xen/initrd.img --args="ksdevice=eth0 network bootproto=static ip=192.168.18.182 netmask=255.255.255.0 gateway=192.168.18.254 ks=http://192.168.12.93/KickStart.OEL.profiles/ks.cfg" http://192.168.12.93/OracleLinux/DVD/
          Note that I haven't actually tested this entire line, but that's what it should be. :)
          • 2. Re: Is it possible to install PVM without DHCP in local network?
            911978
            Yes, i shared DVD contents, not ISO.

            I don't understand, where should in enter this configuration line?

            VM creation wizard, Network boout options?
            • 3. Re: Is it possible to install PVM without DHCP in local network?
              Avi Miller-Oracle
              Jim wrote:
              I don't understand, where should in enter this configuration line?
              VM creation wizard, Network boout options?
              Yes, on the Boot Options (final screen) of the wizard, you add this into the Network Boot Path field.
              • 4. Re: Is it possible to install PVM without DHCP in local network?
                911978
                Yes, you are a genius!!!

                It works! Thanks a lot!

                Is it possible to update OVS documentation? It think, it's quite important to have such example of configuration.


                Final vm.cfg:

                uuid = '0004fb00-0006-0000-db66-e8f031d2e557'
                bootloader = '/usr/bin/xenpvboot'
                vif = ['mac=00:21:f6:00:00:13,bridge=192.168.18.0']
                name = '0004fb0000060000db66e8f031d2e557'
                OVM_description = ''
                guest_os_type = 'linux'
                OVM_simple_name = 'pvm3'
                on_poweroff = 'destroy'
                boot = 'nc'
                vfb = ['type=vnc,vncunused=1,vnclisten=127.0.0.1']
                on_crash = 'restart'
                on_reboot = 'restart'
                vcpus = 2
                cpu_weight = 27500
                OVM_os_type = 'Oracle Linux 5'
                memory = 4096
                cpu_cap = 0
                OVM_high_availability = False
                disk = ['file:/OVS/Repositories/0004fb00000300007ab59846cb716517/VirtualDisks/0004fb0000120000193b8eda68cef44c.img,xvda,w', 'file:/OVS/Repositories/0004fb00000300007ab59846cb716517/ISOs/0004fb000015000013989eb97049c582.iso,xvdb:cdrom,r']
                maxmem = 4096
                bootargs = '--kernel images/xen/vmlinuz ramdisk images/xen/initrd.img args="ksdevice=eth0 network bootproto=static ip=192.168.18.182 netmask=255.255.255.0 gateway=192.168.18.254 ks=http://192.168.12.93/KickStart.OEL.profiles/ks.cfg" http://192.168.12.93/OracleLinux/DVD/'