LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 06-13-2012, 07:05 AM   #1
brianmcgee
Member
 
Registered: Jun 2007
Location: Munich, Germany
Distribution: RHEL, CentOS, Fedora, SLES (...)
Posts: 399

Rep: Reputation: 40
virt-install: kickstarting F17 from local ftp


The following command worked with Fedora 16 to install a virtual machine:

Code:
#/usr/bin/virt-install --vnc --noautoconsole --name=vserver.example.com
--ram=768 --arch=i386 --vcpus=1 --os-type=linux --os-variant=rhel6 --hvm
--accelerate --disk=/dev/vgsystem/vserver.example.com -m
52:54:00:42:2C:C4 -w bridge=virbr0
--location=ftp://192.168.122.1/pub/fedora/linux/releases/16/Fedora/i386/os/
--extra-args='ks=ftp://192.168.122.1/pub/kickstart/vserver.cfg
ip=192.168.122.100 netmask=255.255.255.0 gateway=192.168.122.1
dns=208.67.222.222 noipv6 s=100'
With Fedora 17 this fails. Maybe anaconda or the now dracut based initramfs does not handle the kernel parameters correctly that virt-install creates from the selected options.

I receive the following error message and a kernel panic just after the virtual machine booted:

Code:
FATAL: Please supply bootdev argument for multiple ip= lines
I also tried the 'ip=<ip>::<gw>:<nm>[:<dev>]' method to configure the
network interface the dracut way:

Code:
# /usr/bin/virt-install --vnc --noautoconsole --name=vserver.example.com
--ram=1024 --arch=i386 --vcpus=1 --os-type=linux --os-variant=rhel6
--hvm --accelerate --disk=/dev/vgsystem/vserver.example.com -m
52:54:00:42:89:08 -w bridge=virbr0
--location=ftp://192.168.122.1/pub/fedora/linux/releases/17/Fedora/i386/os
'--extra-args=ks=ftp://192.168.122.1/pub/kickstart/vserver.cfg
ip=192.168.122.100::192.168.122.1:255.255.255.0
nameserver=208.67.222.222 noipv6 s=100'
With this command the virtual machine boots and drops to a dracut debug
shell. However no network interface gets configured and I receive the
following messages:

Code:
dracut Warning: Unable to process initqueue
dracut Warning: /dev/root does not exist
Could someone please enlighten me, how I may automatically kickstart my
test box with Fedora 17?

I've already asked the same question on the Fedora Users mailinglist but did not receive any hints. I've searched the Bugzilla but mostly found unrelated issues...
 
Old 06-28-2012, 02:55 PM   #2
joshmule
LQ Newbie
 
Registered: Jun 2012
Posts: 2

Rep: Reputation: Disabled
I'm having a similar problem, but without static IP addresses. Try removing all network args from your Fedora 15 install, it should work with DHCP that libvirt provides. If so, try F17... I'll bet you get the same error that you do now.
 
Old 06-28-2012, 04:31 PM   #3
joshmule
LQ Newbie
 
Registered: Jun 2012
Posts: 2

Rep: Reputation: Disabled
I still think it is not IP related in your case, but try using this ip= syntax:

ip=xxx.122.100.124::xxx.122.100.1:255.255.255.0::ff

That appears to be more correct per the new dracut docs.
 
Old 07-05-2012, 10:43 AM   #4
BDJCL
LQ Newbie
 
Registered: Jul 2012
Distribution: Fedora
Posts: 5

Rep: Reputation: Disabled
It would be a bit easier if you went through the 'virt-install --prompt' method.
 
  


Reply

Tags
fedora 17, ftp, kickstart, virt-install



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
virt-manager 0.8.2 local ISO and PXE boot install option greyed out on pv dom0 tkmsr Linux - Virtualization and Cloud 2 03-01-2011 04:09 AM
LXer: Hacking libvirt/virsh/virt-manager/virt-install at Xen 4.0 Dom0 on top of Ubunt LXer Syndicated Linux News 0 05-06-2010 02:50 PM
LXer: Virt-install&Virt-manager at Xen 4.0-rc8 (2.6.32.10 pvops) Dom0 on top Ubuntu K LXer Syndicated Linux News 0 03-26-2010 09:41 PM
FTP Server Up and running... how do I hide ftp users from local login screen? joe1031 Mandriva 2 03-18-2005 04:24 PM
how? install from LOCAL ftp server? thas Mandriva 1 12-12-2004 11:11 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration