Linux Archive

Linux Archive (
-   CentOS (
-   -   With kickstart ( Install CentOS as KVM guest) (

Jussi Hirvi 04-30-2011 06:14 PM

With kickstart ( Install CentOS as KVM guest)
> On Thu, 28 Apr 2011, Jussi Hirvi wrote:
>> > BTW, can guests be installed on raw (unformatted or formatted)
>> > partitions (not images)? Can virt-install do that? I tried it and had no
>> > luck.
>> >
>> > - Jussi
> You can install them to logical volumes...
On 28.4.2011 21.29, Jim Wildman wrote:
> Season to taste
> virt-install -p -n test_phys -r 512 --arch=x86_64 --os-type=linux
> --os-variant=rhel5 -lhttp:// -x
> ks= -f /dev/vg_tosh/lv_phys -b virbr0

It took me some time to get the kickstart file load at all, because I
also had to fit in the console specification, to get a text-based
installation. This is what the script now looks (only name and ip changed):

virt-install --name myvm
--os-variant rhel5.4 --ram 512
--vcpus 1 --accelerate
--nographics -v
--location /mnt/centos56/ --network bridge:br0
--disk path=/kv2/myvm.img,size=15
--extra-args "ks= console=ttyS0";

There is a mounted CentOS 5.6 DVD at /mnt/centos56. The kickstart file
specifies the URL for http installation of CentOS 5.6.

It worked just beautifully, and fast too. The installer only asked me if
I am sure that I want to format the virtual sisk. Otherwise it was all
automatic. What a pleasure!

- Jussi
CentOS mailing list

All times are GMT. The time now is 11:10 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.