LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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-21-2015, 09:02 AM   #1
ixion22600
LQ Newbie
 
Registered: Nov 2013
Posts: 23

Rep: Reputation: Disabled
Unable to create a disk-less vm (pxe boot) in KVM (VMM)


When I try to create a disk-less vm (for pxe boot) in KVM (opensuse13.2) I receive the following error message:

Unable to complete install: 'list index out of range'

----------------------------------------------------------------------------------------
-qemu-kvm-2.1.0-2.9.x86_64
-Virtual Machine Manager - 1.0.1
-Linux ddsw01 3.16.7-7-desktop #1 SMP PREEMPT Wed Dec 17 18:00:44 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
----------------------------------------------------------------------------------------
More details:

Unable to complete install: 'list index out of range'

Traceback (most recent call last):
File "/usr/share/virt-manager/virtManager/asyncjob.py", line 91, in cb_wrapper
callback(asyncjob, *args, **kwargs)
File "/usr/share/virt-manager/virtManager/create.py", line 1908, in do_install
guest.start_install(meter=meter)
File "/usr/share/virt-manager/virtinst/guest.py", line 416, in start_install
start_xml, final_xml = self._build_xml(is_initial)
File "/usr/share/virt-manager/virtinst/guest.py", line 469, in _build_xml
start_xml = self.get_install_xml(install=True, disk_boot=disk_boot)
File "/usr/share/virt-manager/virtinst/guest.py", line 319, in get_install_xml
return self._do_get_install_xml(*args, **kwargs)
File "/usr/share/virt-manager/virtinst/guest.py", line 354, in _do_get_install_xml
target_disk = self.get_devices("disk")[0]
IndexError: list index out of range


Have you see this king of error before?

Thanks in advance
 
Old 04-21-2015, 09:18 AM   #2
ixion22600
LQ Newbie
 
Registered: Nov 2013
Posts: 23

Original Poster
Rep: Reputation: Disabled
From terminal using "virt-install --hvm --connect qemu:///system --network=nat:installation --pxe --graphics spice --name rhel6-machine --ram=756 --vcpus=4 --os-type=linux --os-variant=rhel6 --nodisk", received the same issue.

Starting install...
ERROR list index out of range
Domain installation does not appear to have been successful.
If it was, you can restart your domain by running:
virsh --connect qemu:///system start rhel6-machine
otherwise, please restart your installation.

free -m
total used free shared buffers cached
Mem: 12032 8820 3211 77 0 3673
-/+ buffers/cache: 5146 6885
Swap: 2053 248 1805

16:18:06 up 8 days, 6:44, 3 users, load average: 1.09, 0.61, 0.46
 
Old 04-21-2015, 10:38 AM   #3
dyasny
Member
 
Registered: Dec 2007
Location: Canada
Distribution: RHEL,Fedora
Posts: 995

Rep: Reputation: 115Reputation: 115
Looks like the installation expects to have a disk, and when it gets none, the disk list index is out of range (of at least one).

I'd just create a new VM in VMM without disks, change the boot order to PXE first, and start it normally, not via virt-install or the first installation sequence you get in VMM when you initially create a VM
 
Old 04-21-2015, 02:52 PM   #4
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,937

Rep: Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619
Maybe this may help? I'd think above suggestion of no disk then pxe boot may work too. Other web examples exist.

https://access.redhat.com/documentat..._with_PXE.html


"network=nat:installation --"

PXE installation with virt-install
virt-install PXE installations require both the --network=bridge:installation parameter, where installation is the name of your bridge, and the --pxe parameter.

# virt-install --hvm --connect qemu:///system \
--network=bridge:installation --pxe --graphics spice \
--name rhel6-machine --ram=756 --vcpus=4 \
--os-type=linux --os-variant=rhel6 \
--disk path=/var/lib/libvirt/images/rhel6-machine.img,size=10
 
Old 04-22-2015, 03:37 AM   #5
ixion22600
LQ Newbie
 
Registered: Nov 2013
Posts: 23

Original Poster
Rep: Reputation: Disabled
@dyasny - this is the thing that I cannot create the vm without the disk. I cannot reach the vm creation stage to modify the boot order. it's the same error message with virt-install or from VMM.

@jefro - the vm creation works when assigning a disk, but from my point of view it should be possible to create a disk-less vm if the VMM is offering it. Probably I should file a bug for this. I will wait maybe somebody had a similar situation and a fix.

Thanks
 
Old 04-22-2015, 07:47 AM   #6
dyasny
Member
 
Registered: Dec 2007
Location: Canada
Distribution: RHEL,Fedora
Posts: 995

Rep: Reputation: 115Reputation: 115
I just create a VM in VMM without a disk and booted it with absolutely no problems. Fedora 20.
 
Old 04-22-2015, 02:43 PM   #7
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,937

Rep: Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619
Making a small storage disk is the way posted on the RH site. It should have no negative effect. Sometimes you just do what the instructions say and not worry about it. Maybe it is a coded issue for some reason.

Last edited by jefro; 04-22-2015 at 02:45 PM.
 
  


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
Create PXE boot of running system ando1 Linux - Newbie 1 08-25-2014 08:19 PM
kvm: virsh create error: Unable to allow access for disk path ... chrism01 Linux - Virtualization and Cloud 1 10-08-2012 12:42 PM
DHCP not handing IP to KVM in PXE boot drschloss Linux - Networking 2 09-03-2010 05:31 PM
Unable to create a KVM in Fedora 7, please HELP lighthouse Fedora 3 04-16-2009 08:14 AM
Unable to boot with PXE managed.service Linux - Enterprise 1 10-18-2005 11:28 AM

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

All times are GMT -5. The time now is 03:37 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