FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > CentOS > CentOS

 
 
LinkBack Thread Tools
 
Old 04-30-2011, 06:14 PM
Jussi Hirvi
 
Default 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://192.168.200.2/c5u5_x86_64 -x
> ks=http://192.168.200.2/buildhost.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=http://12.34.56.78/anaconda-ks.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
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 

Thread Tools




All times are GMT. The time now is 02:36 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org