LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices

Reply
 
Search this Thread
Old 04-24-2013, 12:09 PM   #1
feralsboy
LQ Newbie
 
Registered: Apr 2013
Posts: 10

Rep: Reputation: Disabled
problems w/ kickstart & virtualization


Howdy,

I'm having problems using kickstart to create a virtual machine.

os: Red Hat Enterprise Linux Server release 6.3 (Santiago)


cmd: sudo virt-install -l ftp://192.168.122.1/pub -n tester1.example.com --disk path=/var/lib/libvirt/images/tester1.example.com.img --disk --ram=768

error: --ram amount in MB is required

I've used a number of variations to this cmd and been unsuccessful.

using the kvm hypervisor works fine.

Regards,
 
Old 04-25-2013, 05:44 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,384

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
"--disk --ram=768" here, the entire ram option is being used as the value for the --disk option before it. fix that --disk option.
 
Old 05-01-2013, 01:15 PM   #3
feralsboy
LQ Newbie
 
Registered: Apr 2013
Posts: 10

Original Poster
Rep: Reputation: Disabled
Hi Chris,

Actually, I believe you're wrong. I executed that statement multiple times w/ --ram in multiple locations.

I was able to make virt-install w/ the '--prompt'.
 
Old 05-01-2013, 02:07 PM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,384

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
good for you. I'm still right though.
 
Old 05-01-2013, 04:42 PM   #5
feralsboy
LQ Newbie
 
Registered: Apr 2013
Posts: 10

Original Poster
Rep: Reputation: Disabled
this cmd:

/usr/sbin/virt-install --name outsider1.example.org --disk path=/var/lib/libvirt
/images/outsider1.example.org.img -r 768 -l ftp://192.168.122.1/pub/inst -x ks=f
tp://192.168.122.pub/ks1.cfg

failed. notice how "-r" comes after "--disk"

so .... how does that make you right?
 
Old 05-02-2013, 02:23 AM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,384

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
it does NOT come right after disk! there's "path=/var/lib/libvirt/images/outsider1.example.org.img" in between them!
 
Old 05-02-2013, 04:10 PM   #7
feralsboy
LQ Newbie
 
Registered: Apr 2013
Posts: 10

Original Poster
Rep: Reputation: Disabled
hmmm ....

I thought I was clear when I said that I had tried multiple locations for the "-r".

http://linux.die.net/man/1/virt-install

[snippet]
Install a Fedora 13 KVM guest with virtio accelerated disk/network, creating a new 8GB storage file, installing from media in the hosts CDROM drive, auto launching a graphical VNC viewer

# virt-install \
--connect qemu:///system \
--virt-type kvm \
--name demo \
--ram 500 \
--disk path=/var/lib/libvirt/images/demo.img,size=8 \
--graphics vnc \
--cdrom /dev/cdrom \
--os-variant fedora13
[end snippet]

Would seem to indicate that the -r or --ram is independent of --disk.

However,

sudo virt-install --name outsider2.example.org --disk --ram 768 path=/var/lib/libvirt/images/outsider1.example.org.img -l ftp://192.168.122.1/pub/inst -x "ks=ftp://192.168.122.pub/ks1.cfg"
ERROR Unknown argument '768'

so that's a failure

I tried this:


sudo virt-install --name outsider2.example.org --ram 768 --disk path=/var/lib/libvirt/images/outsider2.example.org.img --disk size=12gb -l ftp://192.168.122.1/pub/inst -x "ks=ftp://192.168.122.pub/ks1.cfg"
ERROR Error with storage parameters: Size must be specified for non existent volume path '/var/lib/libvirt/images/outsider2.example.org.img'

sudo virt-install --name outsider2.example.org --ram 768 --disk path=/var/lib/libvirt/images/outsider2.example.org.img size 12gb -l ftp://192.168.122.1/pub/inst -x "ks=ftp://192.168.122.pub/ks1.cfg"
ERROR Unknown argument 'size'

sudo virt-install --name outsider2.example.org --ram 768 --disk path=/var/lib/libvirt/images/outsider2.example.org.img --file-size 12gb -l ftp://192.168.122.1/pub/inst -x "ks=ftp://192.168.122.pub/ks1.cfg"
Usage: virt-install --name NAME --ram RAM STORAGE INSTALL [options]

sudo virt-install --name outsider2.example.org --ram 768 --disk path=/var/lib/libvirt/images/outsider2.example.org.img --file-size 12 -l ftp://192.168.122.1/pub/inst -x "ks=ftp://192.168.122.pub/ks1.cfg"
ERROR Error with storage parameters: Size must be specified for non existent volume path '/var/lib/libvirt/images/outsider2.example.org.img'

sudo virt-install --name outsider2.example.org --ram 768 --disk --file-size=12 path=/var/lib/libvirt/images/outsider2.example.org.img -l ftp://192.168.122.1/pub/inst -x "ks=ftp://192.168.122.pub/ks1.cfg"
ERROR Unknown argument 'path=/var/lib/libvirt/images/outsider2.example.org.img'

sudo virt-install --name outsider2.example.org --ram 768 --disk --file-size 12 path=/var/lib/libvirt/images/outsider2.example.org.img -l ftp://192.168.122.1/pub/inst -x "ks=ftp://192.168.122.pub/ks1.cfg"
ERROR Unknown argument '12'
 
Old 05-03-2013, 06:51 AM   #8
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,384

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
OK, so you pasted the manpage... did you read it too?

firstly no, you're correct that --ram and --disk have nothing in common, butyou're breaking the command line syntax by where you're putting them.

If you look on the disk section on the manpage you'll see the LIST of variables to pass to the --disk option, comma delimited, e.g. "--disk path=/whereever,size=1234" That syntax is even right there in the example you pasted, but you've not noticed I guess.
 
Old 05-03-2013, 01:08 PM   #9
feralsboy
LQ Newbie
 
Registered: Apr 2013
Posts: 10

Original Poster
Rep: Reputation: Disabled
Ok ...

It's finally working.

fwiw, this:

--disk=DISKOPTS
Specifies media to use as storage for the guest, with various options. The general format of a disk string is

--disk opt1=val1,opt2=val2,...

wasn't super clear. there wasn't an example similar to what I was trying to accomplish.

Thanks for making do more research & helping me learn.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Virtualization With Xen On CentOS 6.3 (x86_64) (Paravirtualization & Hardware Virtualization) LXer Syndicated Linux News 0 08-29-2012 05:40 AM
How to setup & configure kickstart Abhijit Chiring Linux - Server 4 11-06-2009 10:25 PM
KickStart & Serial No linux2man Linux - Enterprise 1 03-31-2008 02:33 AM
Kickstart & grub issue Roxja Red Hat 1 02-29-2008 12:58 PM


All times are GMT -5. The time now is 07:52 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration