virt-install throws file not found error when Kickstart file used
Clash 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.
linux kvm
add a comment |Â
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.
linux kvm
add a comment |Â
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.
linux kvm
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.
linux kvm
asked May 29 at 2:43
mallardmandude
11
11
add a comment |Â
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password