virt-install throws file not found error when Kickstart file used

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite












I'm having problems with virt-install and using kickstart files. I'm using kickstart files to automate installs and the install always seems to fail with the following errors:



WARNING Did not find 'console=ttyS0' in --extra-args, which is likely required to see text install output from the guest.
...
ERROR [Errno 2] No such file or directory: '/ks.cfg'
Domain installation does not appear to have been successful.
If it was, you can restart your domain by running:
virsh --connect qemu:///system start kickStart
otherwise, please restart your installation.


I'm not sure if this is error in virt-install command syntax or if the partitions on the virtual machines are not being mounted correctly. I could really use some help Identifying the problem.



My kickstart file (10810511811010210211410210211911211810298101116116116.cfg)



#System language
lang en_US

#Language modules to install
langsupport en_US

#System keyboard
keyboard us

#System mouse
mouse

#System timezone
timezone America/New_York

#Root password
rootpw rootPass

#Initial user (user with sudo capabilities)
user --disabled

#Reboot after installation
reboot

#Use text mode install
text

#Install OS instead of upgrade
install

#Installation media
cdrom

#System bootloader configuration
bootloader --location=mbr

#Clear the Master Boot Record
zerombr yes

#Partition clearing information
clearpart --all --initlabel

#Basic disk partition
part swap --size 1024
part /boot --fstype ext4 --size 256 --asprimary
part / --fstype ext4 --size 1 --grow --asprimary

#System authorization infomation
auth --useshadow --enablemd5

#Network information
network --bootproto=dhcp --device=eth0

#Firewall configuration
firewall --disabled --trust=eth0 --ssh

#Do not configure the X Window System
skipx


My Command



virt-install 
--name 'kickStart'
--ram 1000
--disk path=/var/lib/libvirt/images/kickStart,size=10
--vcpus 1
--os-type linux
--os-variant ubuntuprecise
--network bridge=virbr0
--graphics none
--location 'http://jp.archive.ubuntu.com/ubuntu/dists/precise/main/installer-amd64/'
--initrd-inject=/ks.cfg
--extra-args "ks=file:kickstart/10810511811010210211410210211911211810298101116116116.cfg console=ttyS0"


Any help would be appreciated.







share|improve this question























    up vote
    0
    down vote

    favorite












    I'm having problems with virt-install and using kickstart files. I'm using kickstart files to automate installs and the install always seems to fail with the following errors:



    WARNING Did not find 'console=ttyS0' in --extra-args, which is likely required to see text install output from the guest.
    ...
    ERROR [Errno 2] No such file or directory: '/ks.cfg'
    Domain installation does not appear to have been successful.
    If it was, you can restart your domain by running:
    virsh --connect qemu:///system start kickStart
    otherwise, please restart your installation.


    I'm not sure if this is error in virt-install command syntax or if the partitions on the virtual machines are not being mounted correctly. I could really use some help Identifying the problem.



    My kickstart file (10810511811010210211410210211911211810298101116116116.cfg)



    #System language
    lang en_US

    #Language modules to install
    langsupport en_US

    #System keyboard
    keyboard us

    #System mouse
    mouse

    #System timezone
    timezone America/New_York

    #Root password
    rootpw rootPass

    #Initial user (user with sudo capabilities)
    user --disabled

    #Reboot after installation
    reboot

    #Use text mode install
    text

    #Install OS instead of upgrade
    install

    #Installation media
    cdrom

    #System bootloader configuration
    bootloader --location=mbr

    #Clear the Master Boot Record
    zerombr yes

    #Partition clearing information
    clearpart --all --initlabel

    #Basic disk partition
    part swap --size 1024
    part /boot --fstype ext4 --size 256 --asprimary
    part / --fstype ext4 --size 1 --grow --asprimary

    #System authorization infomation
    auth --useshadow --enablemd5

    #Network information
    network --bootproto=dhcp --device=eth0

    #Firewall configuration
    firewall --disabled --trust=eth0 --ssh

    #Do not configure the X Window System
    skipx


    My Command



    virt-install 
    --name 'kickStart'
    --ram 1000
    --disk path=/var/lib/libvirt/images/kickStart,size=10
    --vcpus 1
    --os-type linux
    --os-variant ubuntuprecise
    --network bridge=virbr0
    --graphics none
    --location 'http://jp.archive.ubuntu.com/ubuntu/dists/precise/main/installer-amd64/'
    --initrd-inject=/ks.cfg
    --extra-args "ks=file:kickstart/10810511811010210211410210211911211810298101116116116.cfg console=ttyS0"


    Any help would be appreciated.







    share|improve this question





















      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      I'm having problems with virt-install and using kickstart files. I'm using kickstart files to automate installs and the install always seems to fail with the following errors:



      WARNING Did not find 'console=ttyS0' in --extra-args, which is likely required to see text install output from the guest.
      ...
      ERROR [Errno 2] No such file or directory: '/ks.cfg'
      Domain installation does not appear to have been successful.
      If it was, you can restart your domain by running:
      virsh --connect qemu:///system start kickStart
      otherwise, please restart your installation.


      I'm not sure if this is error in virt-install command syntax or if the partitions on the virtual machines are not being mounted correctly. I could really use some help Identifying the problem.



      My kickstart file (10810511811010210211410210211911211810298101116116116.cfg)



      #System language
      lang en_US

      #Language modules to install
      langsupport en_US

      #System keyboard
      keyboard us

      #System mouse
      mouse

      #System timezone
      timezone America/New_York

      #Root password
      rootpw rootPass

      #Initial user (user with sudo capabilities)
      user --disabled

      #Reboot after installation
      reboot

      #Use text mode install
      text

      #Install OS instead of upgrade
      install

      #Installation media
      cdrom

      #System bootloader configuration
      bootloader --location=mbr

      #Clear the Master Boot Record
      zerombr yes

      #Partition clearing information
      clearpart --all --initlabel

      #Basic disk partition
      part swap --size 1024
      part /boot --fstype ext4 --size 256 --asprimary
      part / --fstype ext4 --size 1 --grow --asprimary

      #System authorization infomation
      auth --useshadow --enablemd5

      #Network information
      network --bootproto=dhcp --device=eth0

      #Firewall configuration
      firewall --disabled --trust=eth0 --ssh

      #Do not configure the X Window System
      skipx


      My Command



      virt-install 
      --name 'kickStart'
      --ram 1000
      --disk path=/var/lib/libvirt/images/kickStart,size=10
      --vcpus 1
      --os-type linux
      --os-variant ubuntuprecise
      --network bridge=virbr0
      --graphics none
      --location 'http://jp.archive.ubuntu.com/ubuntu/dists/precise/main/installer-amd64/'
      --initrd-inject=/ks.cfg
      --extra-args "ks=file:kickstart/10810511811010210211410210211911211810298101116116116.cfg console=ttyS0"


      Any help would be appreciated.







      share|improve this question











      I'm having problems with virt-install and using kickstart files. I'm using kickstart files to automate installs and the install always seems to fail with the following errors:



      WARNING Did not find 'console=ttyS0' in --extra-args, which is likely required to see text install output from the guest.
      ...
      ERROR [Errno 2] No such file or directory: '/ks.cfg'
      Domain installation does not appear to have been successful.
      If it was, you can restart your domain by running:
      virsh --connect qemu:///system start kickStart
      otherwise, please restart your installation.


      I'm not sure if this is error in virt-install command syntax or if the partitions on the virtual machines are not being mounted correctly. I could really use some help Identifying the problem.



      My kickstart file (10810511811010210211410210211911211810298101116116116.cfg)



      #System language
      lang en_US

      #Language modules to install
      langsupport en_US

      #System keyboard
      keyboard us

      #System mouse
      mouse

      #System timezone
      timezone America/New_York

      #Root password
      rootpw rootPass

      #Initial user (user with sudo capabilities)
      user --disabled

      #Reboot after installation
      reboot

      #Use text mode install
      text

      #Install OS instead of upgrade
      install

      #Installation media
      cdrom

      #System bootloader configuration
      bootloader --location=mbr

      #Clear the Master Boot Record
      zerombr yes

      #Partition clearing information
      clearpart --all --initlabel

      #Basic disk partition
      part swap --size 1024
      part /boot --fstype ext4 --size 256 --asprimary
      part / --fstype ext4 --size 1 --grow --asprimary

      #System authorization infomation
      auth --useshadow --enablemd5

      #Network information
      network --bootproto=dhcp --device=eth0

      #Firewall configuration
      firewall --disabled --trust=eth0 --ssh

      #Do not configure the X Window System
      skipx


      My Command



      virt-install 
      --name 'kickStart'
      --ram 1000
      --disk path=/var/lib/libvirt/images/kickStart,size=10
      --vcpus 1
      --os-type linux
      --os-variant ubuntuprecise
      --network bridge=virbr0
      --graphics none
      --location 'http://jp.archive.ubuntu.com/ubuntu/dists/precise/main/installer-amd64/'
      --initrd-inject=/ks.cfg
      --extra-args "ks=file:kickstart/10810511811010210211410210211911211810298101116116116.cfg console=ttyS0"


      Any help would be appreciated.









      share|improve this question










      share|improve this question




      share|improve this question









      asked May 29 at 2:43









      mallardmandude

      11




      11

























          active

          oldest

          votes











          Your Answer







          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "106"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          convertImagesToLinks: false,
          noModals: false,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );








           

          draft saved


          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f446589%2fvirt-install-throws-file-not-found-error-when-kickstart-file-used%23new-answer', 'question_page');

          );

          Post as a guest



































          active

          oldest

          votes













          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes










           

          draft saved


          draft discarded


























           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f446589%2fvirt-install-throws-file-not-found-error-when-kickstart-file-used%23new-answer', 'question_page');

          );

          Post as a guest













































































          Popular posts from this blog

          How to check contact read email or not when send email to Individual?

          Displaying single band from multi-band raster using QGIS

          How many registers does an x86_64 CPU actually have?