LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Virtualization and Cloud (https://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/)
-   -   Installing virtual machine can't read ks file? (https://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/installing-virtual-machine-cant-read-ks-file-4175465831/)

kaspro 06-13-2013 05:39 AM

Installing virtual machine can't read ks file?
 
Hello everyone, I'm trying to install a virtual machine on kvm using ks file from usb but i always get an error while installing that it couldn't read the ks file.
Here's the direction I'm using for the ks file using "virt-install" command
Code:

-x "ks=hd:sdc1:/ks.cfg"
Where sdc1 is my usb drive and is mounted on "/media/usb"
Thank you!

michaelk 06-13-2013 10:21 AM

You need to setup USB pass through to allow clients to use the hosts hardware.

kaspro 06-13-2013 06:32 PM

Quote:

Originally Posted by michaelk (Post 4971056)
You need to setup USB pass through to allow clients to use the hosts hardware.

Ok thanks, but would you please tell me how to do that?

michaelk 06-13-2013 06:50 PM

http://david.wragg.org/blog/2009/03/...r-libvirt.html

kaspro 06-14-2013 01:28 AM

That won't help me coz I'm trying to use the USB for a new install VM not on already installed VM

kaspro 06-14-2013 06:10 PM

Ok, i'm not very expert and i'm currently studying RHCSA, here's the virt-install command i'm using
Code:

virt-install -n server2.example.com -r 768 --disk path=/var/lib/libvirt/images/server2.example.com.img,size=10 -l /home/CentOS-6.3.iso -x "ks=hd:sdc1:/ks.cfg"
And what i feel should happen is that as it's reading the installation file from the path i'm giving to it, it should read the kickstart file from the host drives not the guest coz i'm installing new virtual machine, and that's how they describe it in all the books!!!!

michaelk 06-15-2013 12:00 PM

I'm not an expert either and have very little experience with KVM.

kaspro 06-16-2013 05:07 AM

Ok Thanks anyway!


All times are GMT -5. The time now is 07:42 PM.